node.module.css 1.8 KB

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