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;
  }
  #sidebar-first,
  #sidebar-second {
    width: 50%;
  }
  #sidebar-second {
    margin-left: 50%; /* LTR */
  }
  .one-sidebar #sidebar-first,
  .one-sidebar #sidebar-second {
    width: 100%;
  }
  .one-sidebar #sidebar-second {
    margin-left: 0; /* LTR */
  }
  .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%;
  }
  .no-sidebars #content {
    width: 100%;
  }
  .sidebar-first #content {
    margin-left: 25%; /* LTR */
    margin-right: 0; /* LTR */
  }
  .sidebar-second #content {
    margin-right: 25%; /* LTR */
    margin-left: 0; /* LTR */
  }
  #sidebar-first {
    width: 25%;
    margin-left: -100%; /* LTR */
  }
  #sidebar-second {
    width: 25%;
    margin-left: -25%; /* LTR */
    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. #sidebar-first,
  85. #sidebar-second {
  86. width: 50%;
  87. }
  88. #sidebar-second {
  89. margin-left: 50%; /* LTR */
  90. }
  91. .one-sidebar #sidebar-first,
  92. .one-sidebar #sidebar-second {
  93. width: 100%;
  94. }
  95. .one-sidebar #sidebar-second {
  96. margin-left: 0; /* LTR */
  97. }
  98. .region-triptych-first,
  99. .region-triptych-middle,
  100. .region-triptych-last {
  101. -moz-box-sizing: border-box;
  102. -webkit-box-sizing: border-box;
  103. box-sizing: border-box;
  104. padding: 20px 15px 30px;
  105. width: 33%;
  106. }
  107. .region-triptych-middle {
  108. padding: 20px 5px 30px;
  109. }
  110. .region-footer-firstcolumn,
  111. .region-footer-secondcolumn {
  112. -moz-box-sizing: border-box;
  113. -webkit-box-sizing: border-box;
  114. box-sizing: border-box;
  115. padding: 0 10px;
  116. width: 50%;
  117. }
  118. .region-footer-thirdcolumn,
  119. .region-footer-fourthcolumn {
  120. -moz-box-sizing: border-box;
  121. -webkit-box-sizing: border-box;
  122. box-sizing: border-box;
  123. padding: 0 10px;
  124. width: 50%;
  125. }
  126. .region-footer-thirdcolumn {
  127. clear: both;
  128. }
  129. }
  130. @media all and (min-width: 851px) {
  131. #header div.section,
  132. #featured div.section,
  133. #messages div.section,
  134. #main,
  135. #triptych,
  136. #footer-columns,
  137. #footer {
  138. max-width: 1290px;
  139. }
  140. #content,
  141. #sidebar-first,
  142. #sidebar-second,
  143. .region-triptych-first,
  144. .region-triptych-middle,
  145. .region-triptych-last,
  146. .region-footer-firstcolumn,
  147. .region-footer-secondcolumn,
  148. .region-footer-thirdcolumn,
  149. .region-footer-fourthcolumn {
  150. display: inline;
  151. float: left; /* LTR */
  152. position: relative;
  153. }
  154. .two-sidebars #content {
  155. margin-left: 25%;
  156. margin-right: 25%;
  157. width: 50%;
  158. }
  159. .one-sidebar #content {
  160. width: 75%;
  161. }
  162. .no-sidebars #content {
  163. width: 100%;
  164. }
  165. .sidebar-first #content {
  166. margin-left: 25%; /* LTR */
  167. margin-right: 0; /* LTR */
  168. }
  169. .sidebar-second #content {
  170. margin-right: 25%; /* LTR */
  171. margin-left: 0; /* LTR */
  172. }
  173. #sidebar-first {
  174. width: 25%;
  175. margin-left: -100%; /* LTR */
  176. }
  177. #sidebar-second {
  178. width: 25%;
  179. margin-left: -25%; /* LTR */
  180. clear: none;
  181. }
  182. .region-triptych-first,
  183. .region-triptych-middle,
  184. .region-triptych-last {
  185. width: 33%;
  186. }
  187. .region-footer-firstcolumn,
  188. .region-footer-secondcolumn,
  189. .region-footer-thirdcolumn,
  190. .region-footer-fourthcolumn {
  191. -moz-box-sizing: border-box;
  192. -webkit-box-sizing: border-box;
  193. box-sizing: border-box;
  194. padding: 0 10px;
  195. width: 25%;
  196. }
  197. }