node.module.css

Styles for administration pages.

File

drupal/core/modules/node/css/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. -webkit-box-sizing: border-box;
  11. -moz-box-sizing: border-box;
  12. box-sizing: border-box;
  13. }
  14. /* Wide screens */
  15. @media
  16. screen and (min-width: 780px),
  17. (orientation: landscape) and (min-device-height: 780px) {
  18. .layout-region-node-main,
  19. .layout-region-node-footer {
  20. float: left; /* LTR */
  21. width: 65%;
  22. padding-right: 2em;
  23. }
  24. .layout-region-node-secondary {
  25. float: right; /* LTR */
  26. width: 35%;
  27. }
  28. /* @todo File an issue to add a standard class to all text-like inputs */
  29. .layout-region-node-secondary .form-autocomplete,
  30. .layout-region-node-secondary .form-text,
  31. .layout-region-node-secondary .form-tel,
  32. .layout-region-node-secondary .form-email,
  33. .layout-region-node-secondary .form-url,
  34. .layout-region-node-secondary .form-search,
  35. .layout-region-node-secondary .form-number,
  36. .layout-region-node-secondary .form-color,
  37. .layout-region-node-secondary textarea {
  38. -webkit-box-sizing: border-box;
  39. -moz-box-sizing: border-box;
  40. box-sizing: border-box;
  41. width: 100%;
  42. max-width: 100%;
  43. }
  44. }
  45. /**
  46. * The vertical toolbar mode gets triggered for narrow screens, which throws off
  47. * the intent of media queries written for the viewport width. When the vertical
  48. * toolbar is on, we need to suppress layout for the original media width + the
  49. * toolbar width (240px). In this case, 240px + 780px.
  50. */
  51. @media
  52. screen and (max-width: 1020px),
  53. (orientation: landscape) and (max-device-height: 1020px) {
  54. .toolbar-vertical .layout-region-node-main,
  55. .toolbar-vertical .layout-region-node-footer,
  56. .toolbar-vertical .layout-region-node-secondary {
  57. float: none;
  58. width: auto;
  59. padding-right: 0;
  60. }
  61. }