main-content.css

Same filename in other branches
  1. 9 core/themes/bartik/css/components/main-content.css

Visual styles for Bartik's main-content component.

File

core/themes/bartik/css/components/main-content.css

View source
  1. /**
  2. * @file
  3. * Visual styles for Bartik's main-content component.
  4. */
  5. .main-content .section {
  6. padding: 0 15px;
  7. }
  8. .main-content h2 {
  9. margin-bottom: 2px;
  10. font-size: 1.429em;
  11. line-height: 1.4;
  12. }
  13. @media all and (min-width: 851px) {
  14. .main-content {
  15. position: relative;
  16. float: left; /* LTR */
  17. }
  18. [dir="rtl"] .main-content {
  19. float: right;
  20. }
  21. .layout-two-sidebars .main-content {
  22. width: 50%;
  23. margin-right: 25%;
  24. margin-left: 25%;
  25. }
  26. .layout-one-sidebar .main-content {
  27. width: 75%;
  28. }
  29. .layout-no-sidebars .main-content {
  30. width: 100%;
  31. }
  32. .layout-sidebar-first .main-content {
  33. margin-right: 0; /* LTR */
  34. margin-left: 25%; /* LTR */
  35. }
  36. [dir="rtl"] .layout-sidebar-first .main-content {
  37. margin-right: 25%;
  38. margin-left: 0;
  39. }
  40. .layout-sidebar-second .main-content {
  41. margin-right: 25%; /* LTR */
  42. margin-left: 0; /* LTR */
  43. }
  44. [dir="rtl"] .layout-sidebar-second .main-content {
  45. margin-right: 0;
  46. margin-left: 25%;
  47. }
  48. }

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