form-two-columns.pcss.css

Same filename in other branches
  1. 10 core/themes/claro/css/layout/form-two-columns.pcss.css
/**
 * 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(360px, 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.pcss.css

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

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