node.module.css

Same filename in this branch
  1. 9 core/themes/stable/css/node/node.module.css
  2. 9 core/modules/node/css/node.module.css
Same filename in other branches
  1. 8.9.x core/themes/stable/css/node/node.module.css
  2. 8.9.x core/modules/node/css/node.module.css
  3. 10 core/themes/stable9/css/node/node.module.css
  4. 10 core/modules/node/css/node.module.css
  5. 11.x core/themes/stable9/css/node/node.module.css
  6. 11.x core/modules/node/css/node.module.css

Styles for administration pages.

File

core/themes/stable9/css/node/node.module.css

View source
  1. /**
  2. * @file
  3. * Styles for administration pages.
  4. */
  5. /**
  6. * Node add/edit form layout
  7. */
  8. /* Narrow screens */
  9. .layout-region {
  10. box-sizing: border-box;
  11. }
  12. /* Wide screens */
  13. @media
  14. screen and (min-width: 780px),
  15. (orientation: landscape) and (min-device-height: 780px) {
  16. .layout-region-node-main,
  17. .layout-region-node-footer {
  18. float: left; /* LTR */
  19. box-sizing: border-box;
  20. width: 65%;
  21. padding-right: 2em; /* LTR */
  22. }
  23. [dir="rtl"] .layout-region-node-main,
  24. [dir="rtl"] .layout-region-node-footer {
  25. float: right;
  26. padding-right: 0;
  27. padding-left: 2em;
  28. }
  29. .layout-region-node-secondary {
  30. float: right; /* LTR */
  31. width: 35%;
  32. }
  33. [dir="rtl"] .layout-region-node-secondary {
  34. float: left;
  35. }
  36. /* @todo File an issue to add a standard class to all text-like inputs */
  37. .layout-region-node-secondary .form-autocomplete,
  38. .layout-region-node-secondary .form-text,
  39. .layout-region-node-secondary .form-tel,
  40. .layout-region-node-secondary .form-email,
  41. .layout-region-node-secondary .form-url,
  42. .layout-region-node-secondary .form-search,
  43. .layout-region-node-secondary .form-number,
  44. .layout-region-node-secondary .form-color,
  45. .layout-region-node-secondary textarea {
  46. box-sizing: border-box;
  47. width: 100%;
  48. max-width: 100%;
  49. }
  50. }
  51. /**
  52. * The vertical toolbar mode gets triggered for narrow screens, which throws off
  53. * the intent of media queries written for the viewport width. When the vertical
  54. * toolbar is on, we need to suppress layout for the original media width + the
  55. * toolbar width (240px). In this case, 240px + 780px.
  56. */
  57. @media
  58. screen and (max-width: 1020px) {
  59. .toolbar-vertical.toolbar-tray-open .layout-region-node-main,
  60. .toolbar-vertical.toolbar-tray-open .layout-region-node-footer,
  61. .toolbar-vertical.toolbar-tray-open .layout-region-node-secondary {
  62. float: none;
  63. width: auto;
  64. padding-right: 0;
  65. }
  66. }

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