node-add.pcss.css

Same filename in other branches
  1. 8.9.x core/themes/claro/css/layout/node-add.pcss.css
/**
 * Layout overrides for node add/edit form.
 */

@import "../base/variables.pcss.css";

:root {
  --node-meta-width: 22.5rem;
  --node-meta-xl-width: 25vw;
}

.layout-region {
  box-sizing: border-box;
}

.layout-region--node-footer .layout-region__content {
  margin-top: var(--space-l);
}

/**
 * Wide screens
 */
@media screen and (min-width: 61rem) {
  .layout-region--node-main,
  .layout-region--node-footer {
    float: left; /* LTR */
    width: calc(100% - var(--node-meta-width));
    padding-right: var(--space-l); /* LTR */
  }
  [dir="rtl"] .layout-region--node-main,
  [dir="rtl"] .layout-region--node-footer {
    float: right;
    padding-right: 0;
    padding-left: var(--space-l);
  }

  .layout-region--node-main .layout-region__content,
  .layout-region--node-footer .layout-region__content {
    max-width: 52rem;
    margin-right: auto;
    margin-left: auto;
  }

  .layout-region--node-footer .layout-region__content {
    margin-top: var(--space-xs);
  }

  .layout-region--node-secondary {
    float: right; /* LTR */
    width: var(--node-meta-width);
  }
  [dir="rtl"] .layout-region--node-secondary {
    float: left;
  }

  /* Push sidebar down to horizontal align with form section */
  .layout-region--node-secondary {
    margin-top: var(--space-l);
  }
}

/**
 * Extra Wide screens
 */
@media screen and (min-width: 112rem) {
  .layout-region--node-main,
  .layout-region--node-footer {
    width: calc(100% - var(--node-meta-xl-width));
  }

  .layout-region--node-secondary {
    width: var(--node-meta-xl-width);
  }
}

File

core/themes/claro/css/layout/node-add.pcss.css

View source
  1. /**
  2. * Layout overrides for node add/edit form.
  3. */
  4. @import "../base/variables.pcss.css";
  5. :root {
  6. --node-meta-width: 22.5rem;
  7. --node-meta-xl-width: 25vw;
  8. }
  9. .layout-region {
  10. box-sizing: border-box;
  11. }
  12. .layout-region--node-footer .layout-region__content {
  13. margin-top: var(--space-l);
  14. }
  15. /**
  16. * Wide screens
  17. */
  18. @media screen and (min-width: 61rem) {
  19. .layout-region--node-main,
  20. .layout-region--node-footer {
  21. float: left; /* LTR */
  22. width: calc(100% - var(--node-meta-width));
  23. padding-right: var(--space-l); /* LTR */
  24. }
  25. [dir="rtl"] .layout-region--node-main,
  26. [dir="rtl"] .layout-region--node-footer {
  27. float: right;
  28. padding-right: 0;
  29. padding-left: var(--space-l);
  30. }
  31. .layout-region--node-main .layout-region__content,
  32. .layout-region--node-footer .layout-region__content {
  33. max-width: 52rem;
  34. margin-right: auto;
  35. margin-left: auto;
  36. }
  37. .layout-region--node-footer .layout-region__content {
  38. margin-top: var(--space-xs);
  39. }
  40. .layout-region--node-secondary {
  41. float: right; /* LTR */
  42. width: var(--node-meta-width);
  43. }
  44. [dir="rtl"] .layout-region--node-secondary {
  45. float: left;
  46. }
  47. /* Push sidebar down to horizontal align with form section */
  48. .layout-region--node-secondary {
  49. margin-top: var(--space-l);
  50. }
  51. }
  52. /**
  53. * Extra Wide screens
  54. */
  55. @media screen and (min-width: 112rem) {
  56. .layout-region--node-main,
  57. .layout-region--node-footer {
  58. width: calc(100% - var(--node-meta-xl-width));
  59. }
  60. .layout-region--node-secondary {
  61. width: var(--node-meta-xl-width);
  62. }
  63. }

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