node-add.css

Same filename in this branch
  1. 9 core/themes/seven/css/layout/node-add.css
Same filename in other branches
  1. 8.9.x core/themes/seven/css/layout/node-add.css
  2. 8.9.x core/themes/claro/css/layout/node-add.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * Layout overrides for node add/edit form.
 */

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

.layout-region--node-footer .layout-region__content {
  margin-top: 1.5rem;
}

/**
 * Wide screens
 */

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

  .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: 0.5rem;
  }

  .layout-region--node-secondary {
    float: right; /* LTR */
    width: 22.5rem;
  }
  [dir="rtl"] .layout-region--node-secondary {
    float: left;
  }

  /* Push sidebar down to horizontal align with form section */
  .layout-region--node-secondary {
    margin-top: 1.5rem;
  }
}

/**
 * Extra Wide screens
 */

@media screen and (min-width: 112rem) {
  .layout-region--node-main,
  .layout-region--node-footer {
    width: calc(100% - 25vw);
  }

  .layout-region--node-secondary {
    width: 25vw;
  }
}

File

core/themes/claro/css/layout/node-add.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 node add/edit form.
  9. */
  10. .layout-region {
  11. box-sizing: border-box;
  12. }
  13. .layout-region--node-footer .layout-region__content {
  14. margin-top: 1.5rem;
  15. }
  16. /**
  17. * Wide screens
  18. */
  19. @media screen and (min-width: 61rem) {
  20. .layout-region--node-main,
  21. .layout-region--node-footer {
  22. float: left; /* LTR */
  23. width: calc(100% - 22.5rem);
  24. padding-right: 1.5rem; /* LTR */
  25. }
  26. [dir="rtl"] .layout-region--node-main,
  27. [dir="rtl"] .layout-region--node-footer {
  28. float: right;
  29. padding-right: 0;
  30. padding-left: 1.5rem;
  31. }
  32. .layout-region--node-main .layout-region__content,
  33. .layout-region--node-footer .layout-region__content {
  34. max-width: 52rem;
  35. margin-right: auto;
  36. margin-left: auto;
  37. }
  38. .layout-region--node-footer .layout-region__content {
  39. margin-top: 0.5rem;
  40. }
  41. .layout-region--node-secondary {
  42. float: right; /* LTR */
  43. width: 22.5rem;
  44. }
  45. [dir="rtl"] .layout-region--node-secondary {
  46. float: left;
  47. }
  48. /* Push sidebar down to horizontal align with form section */
  49. .layout-region--node-secondary {
  50. margin-top: 1.5rem;
  51. }
  52. }
  53. /**
  54. * Extra Wide screens
  55. */
  56. @media screen and (min-width: 112rem) {
  57. .layout-region--node-main,
  58. .layout-region--node-footer {
  59. width: calc(100% - 25vw);
  60. }
  61. .layout-region--node-secondary {
  62. width: 25vw;
  63. }
  64. }

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