You are here

layout-builder-base-library.css in Layout Builder Base 8

/* Background styles. */
.layout--background--none {
  background: none;
}
.layout--background--black {
  background: black;
}
.layout--background--white {
  background: white;
}
.layout--background--grey {
  background: grey;
}

/* Background attachment styles. */
.layout--background-attachment--fixed {
  background-attachment: fixed;
}

/* Background position styles. */
.layout--background-position--center {
  background-position: center;
}

/* Background size styles. */
.layout--background-size--cover {
  background-size: cover;
}
.layout--background-size--contain {
  background-size: contain;
}

/* Top Bottom Margin styles. */
.layout--top-bottom-margin--none {
  margin-top: 0;
  margin-bottom: 0;
}
.layout--top-bottom-margin--small {
  margin-top: 20px;
  margin-bottom: 20px;
}
.layout--top-bottom-margin--default {
  margin-top: 40px;
  margin-bottom: 40px;
}
.layout--top-bottom-margin--big {
  margin-top: 60px;
  margin-bottom: 60px;
}

/* Left Right Margin styles. */
.layout--left-right-margin--none {
  margin-left: 0;
  margin-right: 0;
}
.layout--left-right-margin--small {
  margin-left: 20px;
  margin-right: 20px;
}
.layout--left-right-margin--default {
  margin-left: 40px;
  margin-right: 40px;
}
.layout--left-right-margin--big {
  margin-left: 60px;
  margin-right: 60px;
}

/* Top Margin styles. */
.layout--top-margin--none {
  margin-top: 0;
}
.layout--top-margin--small {
  margin-top: 20px;
}
.layout--top-margin--default {
  margin-top: 40px;
}
.layout--top-margin--big {
  margin-top: 60px;
}

/* Bottom Margin styles. */
.layout--bottom-margin--none {
  margin-bottom: 0;
}
.layout--bottom-margin--small {
  margin-bottom: 20px;
}
.layout--bottom-margin--default {
  margin-bottom: 40px;
}
.layout--bottom-margin--big {
  margin-bottom: 60px;
}

/* Left Margin styles. */
.layout--left-margin--none {
  margin-left: 0;
}
.layout--left-margin--small {
  margin-left: 20px;
}
.layout--left-margin--default {
  margin-left: 40px;
}
.layout--left-margin--big {
  margin-left: 60px;
}

/* Right Margin styles. */
.layout--right-margin--none {
  margin-right: 0;
}
.layout--right-margin--small {
  margin-right: 20px;
}
.layout--right-margin--default {
  margin-right: 40px;
}
.layout--right-margin--big {
  margin-right: 60px;
}

/* Top Bottom Padding styles. */
.layout--top-bottom-padding--none {
  padding-top: 0;
  padding-bottom: 0;
}
.layout--top-bottom-padding--small {
  padding-top: 20px;
  padding-bottom: 20px;
}
.layout--top-bottom-padding--default {
  padding-top: 40px;
  padding-bottom: 40px;
}
.layout--top-bottom-padding--big {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Left Right Padding styles. */
.layout--left-right-padding--none {
  padding-left: 0;
  padding-right: 0;
}
.layout--left-right-padding--small {
  padding-left: 20px;
  padding-right: 20px;
}
.layout--left-right-padding--default {
  padding-left: 40px;
  padding-right: 40px;
}
.layout--left-right-padding--big {
  padding-left: 60px;
  padding-right: 60px;
}

/* Top Padding styles. */
.layout--top-padding--none {
  padding-top: 0;
}
.layout--top-padding--small {
  padding-top: 20px;
}
.layout--top-padding--default {
  padding-top: 40px;
}
.layout--top-padding--big {
  padding-top: 60px;
}

/* Bottom Padding styles. */
.layout--bottom-padding--none {
  padding-bottom: 0;
}
.layout--bottom-padding--small {
  padding-bottom: 20px;
}
.layout--bottom-padding--default {
  padding-bottom: 40px;
}
.layout--bottom-padding--big {
  padding-bottom: 60px;
}

/* Left Padding styles. */
.layout--left-padding--none {
  padding-left: 0;
}
.layout--left-padding--small {
  padding-left: 20px;
}
.layout--left-padding--default {
  padding-left: 40px;
}
.layout--left-padding--big {
  padding-left: 60px;
}

/* Right Padding styles. */
.layout--right-padding--none {
  padding-right: 0;
}
.layout--right-padding--small {
  padding-right: 20px;
}
.layout--right-padding--default {
  padding-right: 40px;
}
.layout--right-padding--big {
  padding-right: 60px;
}

/* Container styles. */
.layout--container--default {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.layout--container--small {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.layout--container--large {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Content container styles. */
.layout--content-container--default .layout-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.layout--content-container--small .layout-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.layout--content-container--large .layout-content {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Height styles. */
.layout--height--100vh {
  min-height: 100vh;
}

.layout--height--80vh {
  min-height: 80vh;
}

/* Color styles. */
.layout--color--black {
  color: black;
}
.layout--color--white {
  color: white;
}
.layout--color--grey {
  color: grey;
}

/* Alignment styles. */
.layout--alignment--left {
  text-align: left;
}
.layout--alignment--right {
  text-align: right;
}
.layout--alignment--center {
  text-align: center;
}
.layout--alignment--justify {
  text-align: justify;
}

/* Column gap styles. */
.layout--column-gap--small .layout-content {
  column-gap: 20px;
}

.layout--column-gap--default .layout-content {
  column-gap: 40px;
}

.layout--column-gap--big .layout-content {
  column-gap: 60px;
}

/* Row gap styles. */
.layout--row-gap--small .layout-content {
  row-gap: 20px;
}

.layout--row-gap--default .layout-content {
  row-gap: 40px;
}

.layout--row-gap--big .layout-content {
  row-gap: 60px;
}

/* Align styles. */
.layout--align-items--stretch .layout-content {
  align-items: stretch;
}

.layout--align-items--center .layout-content {
  align-items: center;
}

.layout--align-items--start .layout-content {
  align-items: start;
}

.layout--align-items--end .layout-content {
  align-items: end;
}

/* Overlay styles. */
.layout--background-overlay--dark-light {
  position: relative;
}

.layout--background-overlay--dark-light:before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: 0;
}

.layout--background-overlay--dark-light>* {
  z-index: 100;
  position:relative;
}

.layout--background-overlay--dark {
  position: relative;
}

.layout--background-overlay--dark:before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 0;
}

.layout--background-overlay--dark>* {
  z-index: 100;
  position:relative;
}

.layout--background-overlay--darker {
  position: relative;
}

.layout--background-overlay--darker:before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 0;
}

.layout--background-overlay--darker>* {
  z-index: 100;
  position:relative;
}

/* Two columns styles. */
.layout-builder-base--two-columns .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.layout-builder-base--two-columns.layout--column-width--33-67 .layout-content {
  grid-template-columns: 0.33fr 0.67fr;
}

.layout-builder-base--two-columns.layout--column-width--67-33 .layout-content {
  grid-template-columns: 0.67fr 0.33fr;
}

.layout-builder-base--two-columns.layout--column-width--25-75 .layout-content {
  grid-template-columns: 0.25fr 0.75fr;
}

.layout-builder-base--two-columns.layout--column-width--75-25 .layout-content {
  grid-template-columns: 0.75fr 0.25fr;
}

/* Three columns styles. */
.layout-builder-base--three-columns .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.layout-builder-base--three-columns.layout--column-width--25-50-25 .layout-content {
  grid-template-columns: 0.25fr 0.50fr 0.25fr;
}

.layout-builder-base--three-columns.layout--column-width--25-25-50 .layout-content {
  grid-template-columns: 0.25fr 0.25fr 0.50fr;
}

.layout-builder-base--three-columns.layout--column-width--50-25-25 .layout-content {
  grid-template-columns: 0.50fr 0.25fr 0.25fr;
}

/* Four columns styles. */
.layout-builder-base--four-columns .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Column breakpoint styles. */
@media only screen and (max-width: 600px) {
  .layout--column-breakpoint--small .layout-content {
    grid-template-columns: 1fr !important;
  }
}

@media only screen and (max-width: 800px) {
  .layout--column-breakpoint--medium .layout-content {
    grid-template-columns: 1fr !important;
  }
}

@media only screen and (max-width: 1200px) {
  .layout-builder-base--standard .layout-content {
    grid-template-columns: 1fr !important;
  }
}

@media only screen and (max-width: 1400px) {
  .layout-builder-base--large .layout-content {
    grid-template-columns: 1fr !important;
  }
}

/* Customizable layout columns. */
.layout--customizable-columns--autofill .layout-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.layout--customizable-columns--autofit .layout-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.layout--customizable-columns--2-col .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.layout--customizable-columns--3-col .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.layout--customizable-columns--4-col .layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

File

modules/layout_builder_base_library/css/layout-builder-base-library.css
View source
  1. /* Background styles. */
  2. .layout--background--none {
  3. background: none;
  4. }
  5. .layout--background--black {
  6. background: black;
  7. }
  8. .layout--background--white {
  9. background: white;
  10. }
  11. .layout--background--grey {
  12. background: grey;
  13. }
  14. /* Background attachment styles. */
  15. .layout--background-attachment--fixed {
  16. background-attachment: fixed;
  17. }
  18. /* Background position styles. */
  19. .layout--background-position--center {
  20. background-position: center;
  21. }
  22. /* Background size styles. */
  23. .layout--background-size--cover {
  24. background-size: cover;
  25. }
  26. .layout--background-size--contain {
  27. background-size: contain;
  28. }
  29. /* Top Bottom Margin styles. */
  30. .layout--top-bottom-margin--none {
  31. margin-top: 0;
  32. margin-bottom: 0;
  33. }
  34. .layout--top-bottom-margin--small {
  35. margin-top: 20px;
  36. margin-bottom: 20px;
  37. }
  38. .layout--top-bottom-margin--default {
  39. margin-top: 40px;
  40. margin-bottom: 40px;
  41. }
  42. .layout--top-bottom-margin--big {
  43. margin-top: 60px;
  44. margin-bottom: 60px;
  45. }
  46. /* Left Right Margin styles. */
  47. .layout--left-right-margin--none {
  48. margin-left: 0;
  49. margin-right: 0;
  50. }
  51. .layout--left-right-margin--small {
  52. margin-left: 20px;
  53. margin-right: 20px;
  54. }
  55. .layout--left-right-margin--default {
  56. margin-left: 40px;
  57. margin-right: 40px;
  58. }
  59. .layout--left-right-margin--big {
  60. margin-left: 60px;
  61. margin-right: 60px;
  62. }
  63. /* Top Margin styles. */
  64. .layout--top-margin--none {
  65. margin-top: 0;
  66. }
  67. .layout--top-margin--small {
  68. margin-top: 20px;
  69. }
  70. .layout--top-margin--default {
  71. margin-top: 40px;
  72. }
  73. .layout--top-margin--big {
  74. margin-top: 60px;
  75. }
  76. /* Bottom Margin styles. */
  77. .layout--bottom-margin--none {
  78. margin-bottom: 0;
  79. }
  80. .layout--bottom-margin--small {
  81. margin-bottom: 20px;
  82. }
  83. .layout--bottom-margin--default {
  84. margin-bottom: 40px;
  85. }
  86. .layout--bottom-margin--big {
  87. margin-bottom: 60px;
  88. }
  89. /* Left Margin styles. */
  90. .layout--left-margin--none {
  91. margin-left: 0;
  92. }
  93. .layout--left-margin--small {
  94. margin-left: 20px;
  95. }
  96. .layout--left-margin--default {
  97. margin-left: 40px;
  98. }
  99. .layout--left-margin--big {
  100. margin-left: 60px;
  101. }
  102. /* Right Margin styles. */
  103. .layout--right-margin--none {
  104. margin-right: 0;
  105. }
  106. .layout--right-margin--small {
  107. margin-right: 20px;
  108. }
  109. .layout--right-margin--default {
  110. margin-right: 40px;
  111. }
  112. .layout--right-margin--big {
  113. margin-right: 60px;
  114. }
  115. /* Top Bottom Padding styles. */
  116. .layout--top-bottom-padding--none {
  117. padding-top: 0;
  118. padding-bottom: 0;
  119. }
  120. .layout--top-bottom-padding--small {
  121. padding-top: 20px;
  122. padding-bottom: 20px;
  123. }
  124. .layout--top-bottom-padding--default {
  125. padding-top: 40px;
  126. padding-bottom: 40px;
  127. }
  128. .layout--top-bottom-padding--big {
  129. padding-top: 60px;
  130. padding-bottom: 60px;
  131. }
  132. /* Left Right Padding styles. */
  133. .layout--left-right-padding--none {
  134. padding-left: 0;
  135. padding-right: 0;
  136. }
  137. .layout--left-right-padding--small {
  138. padding-left: 20px;
  139. padding-right: 20px;
  140. }
  141. .layout--left-right-padding--default {
  142. padding-left: 40px;
  143. padding-right: 40px;
  144. }
  145. .layout--left-right-padding--big {
  146. padding-left: 60px;
  147. padding-right: 60px;
  148. }
  149. /* Top Padding styles. */
  150. .layout--top-padding--none {
  151. padding-top: 0;
  152. }
  153. .layout--top-padding--small {
  154. padding-top: 20px;
  155. }
  156. .layout--top-padding--default {
  157. padding-top: 40px;
  158. }
  159. .layout--top-padding--big {
  160. padding-top: 60px;
  161. }
  162. /* Bottom Padding styles. */
  163. .layout--bottom-padding--none {
  164. padding-bottom: 0;
  165. }
  166. .layout--bottom-padding--small {
  167. padding-bottom: 20px;
  168. }
  169. .layout--bottom-padding--default {
  170. padding-bottom: 40px;
  171. }
  172. .layout--bottom-padding--big {
  173. padding-bottom: 60px;
  174. }
  175. /* Left Padding styles. */
  176. .layout--left-padding--none {
  177. padding-left: 0;
  178. }
  179. .layout--left-padding--small {
  180. padding-left: 20px;
  181. }
  182. .layout--left-padding--default {
  183. padding-left: 40px;
  184. }
  185. .layout--left-padding--big {
  186. padding-left: 60px;
  187. }
  188. /* Right Padding styles. */
  189. .layout--right-padding--none {
  190. padding-right: 0;
  191. }
  192. .layout--right-padding--small {
  193. padding-right: 20px;
  194. }
  195. .layout--right-padding--default {
  196. padding-right: 40px;
  197. }
  198. .layout--right-padding--big {
  199. padding-right: 60px;
  200. }
  201. /* Container styles. */
  202. .layout--container--default {
  203. max-width: 1200px;
  204. margin-left: auto;
  205. margin-right: auto;
  206. }
  207. .layout--container--small {
  208. max-width: 800px;
  209. margin-left: auto;
  210. margin-right: auto;
  211. }
  212. .layout--container--large {
  213. max-width: 1400px;
  214. margin-left: auto;
  215. margin-right: auto;
  216. }
  217. /* Content container styles. */
  218. .layout--content-container--default .layout-content {
  219. max-width: 1200px;
  220. margin-left: auto;
  221. margin-right: auto;
  222. }
  223. .layout--content-container--small .layout-content {
  224. max-width: 800px;
  225. margin-left: auto;
  226. margin-right: auto;
  227. }
  228. .layout--content-container--large .layout-content {
  229. max-width: 1400px;
  230. margin-left: auto;
  231. margin-right: auto;
  232. }
  233. /* Height styles. */
  234. .layout--height--100vh {
  235. min-height: 100vh;
  236. }
  237. .layout--height--80vh {
  238. min-height: 80vh;
  239. }
  240. /* Color styles. */
  241. .layout--color--black {
  242. color: black;
  243. }
  244. .layout--color--white {
  245. color: white;
  246. }
  247. .layout--color--grey {
  248. color: grey;
  249. }
  250. /* Alignment styles. */
  251. .layout--alignment--left {
  252. text-align: left;
  253. }
  254. .layout--alignment--right {
  255. text-align: right;
  256. }
  257. .layout--alignment--center {
  258. text-align: center;
  259. }
  260. .layout--alignment--justify {
  261. text-align: justify;
  262. }
  263. /* Column gap styles. */
  264. .layout--column-gap--small .layout-content {
  265. column-gap: 20px;
  266. }
  267. .layout--column-gap--default .layout-content {
  268. column-gap: 40px;
  269. }
  270. .layout--column-gap--big .layout-content {
  271. column-gap: 60px;
  272. }
  273. /* Row gap styles. */
  274. .layout--row-gap--small .layout-content {
  275. row-gap: 20px;
  276. }
  277. .layout--row-gap--default .layout-content {
  278. row-gap: 40px;
  279. }
  280. .layout--row-gap--big .layout-content {
  281. row-gap: 60px;
  282. }
  283. /* Align styles. */
  284. .layout--align-items--stretch .layout-content {
  285. align-items: stretch;
  286. }
  287. .layout--align-items--center .layout-content {
  288. align-items: center;
  289. }
  290. .layout--align-items--start .layout-content {
  291. align-items: start;
  292. }
  293. .layout--align-items--end .layout-content {
  294. align-items: end;
  295. }
  296. /* Overlay styles. */
  297. .layout--background-overlay--dark-light {
  298. position: relative;
  299. }
  300. .layout--background-overlay--dark-light:before {
  301. content: "";
  302. position: absolute;
  303. left: 0; right: 0;
  304. top: 0; bottom: 0;
  305. background-color: rgba(0,0,0,0.3);
  306. z-index: 0;
  307. }
  308. .layout--background-overlay--dark-light>* {
  309. z-index: 100;
  310. position:relative;
  311. }
  312. .layout--background-overlay--dark {
  313. position: relative;
  314. }
  315. .layout--background-overlay--dark:before {
  316. content: "";
  317. position: absolute;
  318. left: 0; right: 0;
  319. top: 0; bottom: 0;
  320. background-color: rgba(0,0,0,0.5);
  321. z-index: 0;
  322. }
  323. .layout--background-overlay--dark>* {
  324. z-index: 100;
  325. position:relative;
  326. }
  327. .layout--background-overlay--darker {
  328. position: relative;
  329. }
  330. .layout--background-overlay--darker:before {
  331. content: "";
  332. position: absolute;
  333. left: 0; right: 0;
  334. top: 0; bottom: 0;
  335. background-color: rgba(0,0,0,0.7);
  336. z-index: 0;
  337. }
  338. .layout--background-overlay--darker>* {
  339. z-index: 100;
  340. position:relative;
  341. }
  342. /* Two columns styles. */
  343. .layout-builder-base--two-columns .layout-content {
  344. display: grid;
  345. grid-template-columns: 1fr 1fr;
  346. }
  347. .layout-builder-base--two-columns.layout--column-width--33-67 .layout-content {
  348. grid-template-columns: 0.33fr 0.67fr;
  349. }
  350. .layout-builder-base--two-columns.layout--column-width--67-33 .layout-content {
  351. grid-template-columns: 0.67fr 0.33fr;
  352. }
  353. .layout-builder-base--two-columns.layout--column-width--25-75 .layout-content {
  354. grid-template-columns: 0.25fr 0.75fr;
  355. }
  356. .layout-builder-base--two-columns.layout--column-width--75-25 .layout-content {
  357. grid-template-columns: 0.75fr 0.25fr;
  358. }
  359. /* Three columns styles. */
  360. .layout-builder-base--three-columns .layout-content {
  361. display: grid;
  362. grid-template-columns: 1fr 1fr 1fr;
  363. }
  364. .layout-builder-base--three-columns.layout--column-width--25-50-25 .layout-content {
  365. grid-template-columns: 0.25fr 0.50fr 0.25fr;
  366. }
  367. .layout-builder-base--three-columns.layout--column-width--25-25-50 .layout-content {
  368. grid-template-columns: 0.25fr 0.25fr 0.50fr;
  369. }
  370. .layout-builder-base--three-columns.layout--column-width--50-25-25 .layout-content {
  371. grid-template-columns: 0.50fr 0.25fr 0.25fr;
  372. }
  373. /* Four columns styles. */
  374. .layout-builder-base--four-columns .layout-content {
  375. display: grid;
  376. grid-template-columns: 1fr 1fr 1fr 1fr;
  377. }
  378. /* Column breakpoint styles. */
  379. @media only screen and (max-width: 600px) {
  380. .layout--column-breakpoint--small .layout-content {
  381. grid-template-columns: 1fr !important;
  382. }
  383. }
  384. @media only screen and (max-width: 800px) {
  385. .layout--column-breakpoint--medium .layout-content {
  386. grid-template-columns: 1fr !important;
  387. }
  388. }
  389. @media only screen and (max-width: 1200px) {
  390. .layout-builder-base--standard .layout-content {
  391. grid-template-columns: 1fr !important;
  392. }
  393. }
  394. @media only screen and (max-width: 1400px) {
  395. .layout-builder-base--large .layout-content {
  396. grid-template-columns: 1fr !important;
  397. }
  398. }
  399. /* Customizable layout columns. */
  400. .layout--customizable-columns--autofill .layout-content {
  401. display: grid;
  402. grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  403. }
  404. .layout--customizable-columns--autofit .layout-content {
  405. display: grid;
  406. grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  407. }
  408. .layout--customizable-columns--2-col .layout-content {
  409. display: grid;
  410. grid-template-columns: 1fr 1fr;
  411. }
  412. .layout--customizable-columns--3-col .layout-content {
  413. display: grid;
  414. grid-template-columns: 1fr 1fr 1fr;
  415. }
  416. .layout--customizable-columns--4-col .layout-content {
  417. display: grid;
  418. grid-template-columns: 1fr 1fr 1fr 1fr;
  419. }