UNPKG

@zohodesk/layout

Version:

Unified Component Library - Layout

245 lines (237 loc) 5.41 kB
.flex { display: -webkit-box; display: -ms-flexbox; display: flex; } .fullSize{ height: 100% ; width: 100% ; } .inlineFlex { display: inline-flex; display: -webkit-inline-flex; display: -ms-inline-flexbox; } /*Container Props */ .row { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } .column { -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } .rowReverse { -webkit-box-orient: horizontal; -webkit-box-direction: reverse; -webkit-flex-direction: row-reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } .columnReverse { -webkit-box-orient: vertical; -webkit-box-direction: reverse; -webkit-flex-direction: column-reverse; -ms-flex-direction: column-reverse; flex-direction: column-reverse; } /* align-items props start */ .alignItems_center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .alignItems_start { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; } .alignItems_end { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; } .alignItems_baseline { -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; } .alignItems_stretch { -webkit-box-align: stretch; -ms-flex-align: stretch; align-items: stretch; } /* align-items props end */ /* justify-content props start */ .justifyContent_spaceBetween { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .justifyContent_center { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; } .justifyContent_start{ -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; } .justifyContent_end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } .justifyContent_spaceAround { -ms-flex-pack: distribute; justify-content: space-around; } .justifyContent_spaceEvenly { justify-content: space-evenly; } /* justify-content props end */ /* align-content props start*/ .alignContent_spaceBetween { align-content: space-between; } .alignContent_center { align-content: center; } .alignContent_start { align-content: flex-start; } .alignContent_end { align-content: flex-end; } .alignContent_spaceAround { align-content: space-around; } .alignContent_spaceEvenly { align-content: space-evenly; } .alignContent_stretch { -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; } /* align-content props end*/ /* flex-wrap props start*/ .wrap { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; } .wrapReverse { -webkit-flex-wrap: wrap-reverse; -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; } .noWrap { -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; } /* flex-wrap props start*/ /* Container Props */ /*Item Props */ .flexible { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; min-height: 0 ; min-width: 0 ; } .noShrink { flex-shrink: 0; -moz-flex-shrink: 0; -webkit-flex-shrink: 0; -ms-flex-shrink: 0; } .shrink { flex-shrink: 1; -moz-flex-shrink: 1; -webkit-flex-shrink: 1; -ms-flex-shrink: 1; min-width: 0 ; } .basis_zero { flex-basis: 0% ; -webkit-flex-basis: 0%; -moz-flex-basis: 0%; -ms-flex-basis: 0%; } .basis_auto { flex-basis: auto ; -webkit-flex-basis: auto; -moz-flex-basis: auto; -ms-flex-basis: auto; } .alignSelf_start { align-self: flex-start; } .alignSelf_end { align-self: flex-end; } .alignSelf_center { align-self: center; } .alignSelf_stretch { -webkit-align-self: stretch; -ms-flex-item-align: stretch; align-self: stretch; } .scroll_vertical { overflow-y: auto; overflow-x: hidden; } .scroll_horizontal { overflow-x: auto; overflow-y: hidden; } .scroll_both { overflow: auto; } .scroll_hidden { overflow: hidden; } /* Gap props */ .gap_2 { gap: var(--zd_size2) ; } .gap_4 { gap: var(--zd_size4) ; } .gap_6 { gap: var(--zd_size6) ; } .gap_8 { gap: var(--zd_size8) ; } .gap_10 { gap: var(--zd_size10) ; } .gap_12 { gap: var(--zd_size12) ; } .gap_14 { gap: var(--zd_size14) ; } .gap_16 { gap: var(--zd_size16) ; } .gap_18 { gap: var(--zd_size18) ; } .gap_20 { gap: var(--zd_size20) ; } /* Column Gap props */ .columnGap_2 { column-gap: var(--zd_size2) ; } .columnGap_4 { column-gap: var(--zd_size4) ; } .columnGap_6 { column-gap: var(--zd_size6) ; } .columnGap_8 { column-gap: var(--zd_size8) ; } .columnGap_10 { column-gap: var(--zd_size10) ; } .columnGap_12 { column-gap: var(--zd_size12) ; } .columnGap_14 { column-gap: var(--zd_size14) ; } .columnGap_16 { column-gap: var(--zd_size16) ; } .columnGap_18 { column-gap: var(--zd_size18) ; } .columnGap_20 { column-gap: var(--zd_size20) ; } /* Row Gap props */ .rowGap_2 { row-gap: var(--zd_size2) ; } .rowGap_4 { row-gap: var(--zd_size4) ; } .rowGap_6 { row-gap: var(--zd_size6) ; } .rowGap_8 { row-gap: var(--zd_size8) ; } .rowGap_10 { row-gap: var(--zd_size10) ; } .rowGap_12 { row-gap: var(--zd_size12) ; } .rowGap_14 { row-gap: var(--zd_size14) ; } .rowGap_16 { row-gap: var(--zd_size16) ; } .rowGap_18 { row-gap: var(--zd_size18) ; } .rowGap_20 { row-gap: var(--zd_size20) ; } /*Item Props */