layout.css

/* ---------- Basic Layout Styles ----------- */

html,
body,
#page  {
  height: 100%;
}
#page-wrapper {
  min-height: 100%;
}
#header div.section,
#featured div.section,
#messages div.section,
#main,
#triptych,
#footer-columns,
#footer {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
#header div.section {
  position: relative;
}
.region-header {
  float: right; /* LTR */
  margin: .5em 5px .75em;
  border: 1px solid #ccc;
}
#secondary-menu {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
#main-wrapper {
  min-height: 300px;
}
#content .section,
.sidebar .section {
  padding: 0 15px;
}
.breadcrumb {
  margin: 0 15px;
}
#footer-wrapper {
  padding: 35px 0 30px;
}
#footer-wrapper .section {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 15px;
}
.region-triptych-first,
.region-triptych-middle,
.region-triptych-last {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 20px 0;
}
.region-footer-firstcolumn,
.region-footer-secondcolumn,
.region-footer-thirdcolumn,
.region-footer-fourthcolumn {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 10px;
}

@media all and (min-width: 560px) and (max-width: 850px) {

  #sidebar-first,
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last,
  .region-footer-firstcolumn,
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    display: inline;
    float: left; /* LTR */
    position: relative;
  }
  .one-sidebar #sidebar {
    width: 100%;
  }
  #sidebar-first,
  #sidebar-second {
    width: 50%;
  }
  #sidebar-second {
    margin-left: 50%;
  }
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px 15px 30px;
    width: 33%;
  }
  .region-triptych-middle {
    padding: 20px 5px 30px;
  }
  .region-footer-firstcolumn,
  .region-footer-secondcolumn {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
    width: 50%;
  }
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
    width: 50%;
  }
  .region-footer-thirdcolumn {
    clear: both;
  }
}

@media all and (min-width: 851px) {

  #header div.section,
  #featured div.section,
  #messages div.section,
  #main,
  #triptych,
  #footer-columns,
  #footer {
    max-width: 1290px;
  }
  #content,
  #sidebar-first,
  #sidebar-second,
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last,
  .region-footer-firstcolumn,
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    display: inline;
    float: left; /* LTR */
    position: relative;
  }
  .two-sidebars #content {
    margin-left: 25%;
    margin-right: 25%;
    width: 50%;
  }
  .one-sidebar #content {
    width: 75%;
  }
  .sidebar-first #content {
    margin-left: 25%;
    margin-right: 0;
  }
  .sidebar-second #content {
    margin-right: 25%;
    margin-left: 0;
  }
  #sidebar-first {
    width: 25%;
    margin-left: -100%;
  }
  #sidebar-second {
    width: 25%;
    margin-left: -25%;
    clear: none;
  }
  .region-triptych-first,
  .region-triptych-middle,
  .region-triptych-last {
    width: 33%;
  }
  .region-footer-firstcolumn,
  .region-footer-secondcolumn,
  .region-footer-thirdcolumn,
  .region-footer-fourthcolumn {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px;
    width: 25%;
  }
}

File

drupal/core/themes/bartik/css/layout.css
View source
  1. /* ---------- Basic Layout Styles ----------- */
  2. html,
  3. body,
  4. #page {
  5. height: 100%;
  6. }
  7. #page-wrapper {
  8. min-height: 100%;
  9. }
  10. #header div.section,
  11. #featured div.section,
  12. #messages div.section,
  13. #main,
  14. #triptych,
  15. #footer-columns,
  16. #footer {
  17. width: 100%;
  18. max-width: 860px;
  19. margin-left: auto;
  20. margin-right: auto;
  21. }
  22. #header div.section {
  23. position: relative;
  24. }
  25. .region-header {
  26. float: right; /* LTR */
  27. margin: .5em 5px .75em;
  28. border: 1px solid #ccc;
  29. }
  30. #secondary-menu {
  31. width: 100%;
  32. margin: 0 auto;
  33. overflow: hidden;
  34. }
  35. #main-wrapper {
  36. min-height: 300px;
  37. }
  38. #content .section,
  39. .sidebar .section {
  40. padding: 0 15px;
  41. }
  42. .breadcrumb {
  43. margin: 0 15px;
  44. }
  45. #footer-wrapper {
  46. padding: 35px 0 30px;
  47. }
  48. #footer-wrapper .section {
  49. -moz-box-sizing: border-box;
  50. -webkit-box-sizing: border-box;
  51. box-sizing: border-box;
  52. padding: 0 15px;
  53. }
  54. .region-triptych-first,
  55. .region-triptych-middle,
  56. .region-triptych-last {
  57. -moz-box-sizing: border-box;
  58. -webkit-box-sizing: border-box;
  59. box-sizing: border-box;
  60. padding: 0 20px 0;
  61. }
  62. .region-footer-firstcolumn,
  63. .region-footer-secondcolumn,
  64. .region-footer-thirdcolumn,
  65. .region-footer-fourthcolumn {
  66. -moz-box-sizing: border-box;
  67. -webkit-box-sizing: border-box;
  68. box-sizing: border-box;
  69. padding: 0 10px;
  70. }
  71. @media all and (min-width: 560px) and (max-width: 850px) {
  72. #sidebar-first,
  73. .region-triptych-first,
  74. .region-triptych-middle,
  75. .region-triptych-last,
  76. .region-footer-firstcolumn,
  77. .region-footer-secondcolumn,
  78. .region-footer-thirdcolumn,
  79. .region-footer-fourthcolumn {
  80. display: inline;
  81. float: left; /* LTR */
  82. position: relative;
  83. }
  84. .one-sidebar #sidebar {
  85. width: 100%;
  86. }
  87. #sidebar-first,
  88. #sidebar-second {
  89. width: 50%;
  90. }
  91. #sidebar-second {
  92. margin-left: 50%;
  93. }
  94. .region-triptych-first,
  95. .region-triptych-middle,
  96. .region-triptych-last {
  97. -moz-box-sizing: border-box;
  98. -webkit-box-sizing: border-box;
  99. box-sizing: border-box;
  100. padding: 20px 15px 30px;
  101. width: 33%;
  102. }
  103. .region-triptych-middle {
  104. padding: 20px 5px 30px;
  105. }
  106. .region-footer-firstcolumn,
  107. .region-footer-secondcolumn {
  108. -moz-box-sizing: border-box;
  109. -webkit-box-sizing: border-box;
  110. box-sizing: border-box;
  111. padding: 0 10px;
  112. width: 50%;
  113. }
  114. .region-footer-thirdcolumn,
  115. .region-footer-fourthcolumn {
  116. -moz-box-sizing: border-box;
  117. -webkit-box-sizing: border-box;
  118. box-sizing: border-box;
  119. padding: 0 10px;
  120. width: 50%;
  121. }
  122. .region-footer-thirdcolumn {
  123. clear: both;
  124. }
  125. }
  126. @media all and (min-width: 851px) {
  127. #header div.section,
  128. #featured div.section,
  129. #messages div.section,
  130. #main,
  131. #triptych,
  132. #footer-columns,
  133. #footer {
  134. max-width: 1290px;
  135. }
  136. #content,
  137. #sidebar-first,
  138. #sidebar-second,
  139. .region-triptych-first,
  140. .region-triptych-middle,
  141. .region-triptych-last,
  142. .region-footer-firstcolumn,
  143. .region-footer-secondcolumn,
  144. .region-footer-thirdcolumn,
  145. .region-footer-fourthcolumn {
  146. display: inline;
  147. float: left; /* LTR */
  148. position: relative;
  149. }
  150. .two-sidebars #content {
  151. margin-left: 25%;
  152. margin-right: 25%;
  153. width: 50%;
  154. }
  155. .one-sidebar #content {
  156. width: 75%;
  157. }
  158. .sidebar-first #content {
  159. margin-left: 25%;
  160. margin-right: 0;
  161. }
  162. .sidebar-second #content {
  163. margin-right: 25%;
  164. margin-left: 0;
  165. }
  166. #sidebar-first {
  167. width: 25%;
  168. margin-left: -100%;
  169. }
  170. #sidebar-second {
  171. width: 25%;
  172. margin-left: -25%;
  173. clear: none;
  174. }
  175. .region-triptych-first,
  176. .region-triptych-middle,
  177. .region-triptych-last {
  178. width: 33%;
  179. }
  180. .region-footer-firstcolumn,
  181. .region-footer-secondcolumn,
  182. .region-footer-thirdcolumn,
  183. .region-footer-fourthcolumn {
  184. -moz-box-sizing: border-box;
  185. -webkit-box-sizing: border-box;
  186. box-sizing: border-box;
  187. padding: 0 10px;
  188. width: 25%;
  189. }
  190. }