form-two-columns.css

Same filename in other branches
  1. 11.x core/themes/claro/css/layout/form-two-columns.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
/**
 * Layout overrides for the menu link add/edit form.
 */
.layout-region {
  box-sizing: border-box;
}
.layout-region--footer .layout-region__content {
  margin-top: var(--space-l);
}
/**
 * Move to two column layout at wider widths.
 */
@media (min-width: 61rem) {
  .layout-form {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: minmax(0, 3fr) minmax(22.5rem, 1fr);
    gap: var(--space-l);
  }

  .layout-region--main,
  .layout-region--footer {
    grid-column: 1;
    margin-inline: auto;
    width: var(--layout-region-edit-width);
  }

  /* When the layout has vertical tabs */
  .layout-region--main:has(.vertical-tabs),
  .layout-region--main:has(.vertical-tabs) ~ .layout-region--footer {
    width: var(--layout-region-edit-extended-width);
  }

  /* Push sidebar down to horizontal align with form section. */
  .layout-region--secondary {
    grid-row: span 2;
    margin-block-start: var(--space-l);
  }
}

File

core/themes/claro/css/layout/form-two-columns.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * Layout overrides for the menu link add/edit form.
  9. */
  10. .layout-region {
  11. box-sizing: border-box;
  12. }
  13. .layout-region--footer .layout-region__content {
  14. margin-top: var(--space-l);
  15. }
  16. /**
  17. * Move to two column layout at wider widths.
  18. */
  19. @media (min-width: 61rem) {
  20. .layout-form {
  21. display: grid;
  22. grid-template-rows: auto 1fr;
  23. grid-template-columns: minmax(0, 3fr) minmax(22.5rem, 1fr);
  24. gap: var(--space-l);
  25. }
  26. .layout-region--main,
  27. .layout-region--footer {
  28. grid-column: 1;
  29. margin-inline: auto;
  30. width: var(--layout-region-edit-width);
  31. }
  32. /* When the layout has vertical tabs */
  33. .layout-region--main:has(.vertical-tabs),
  34. .layout-region--main:has(.vertical-tabs) ~ .layout-region--footer {
  35. width: var(--layout-region-edit-extended-width);
  36. }
  37. /* Push sidebar down to horizontal align with form section. */
  38. .layout-region--secondary {
  39. grid-row: span 2;
  40. margin-block-start: var(--space-l);
  41. }
  42. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.