| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- @import '../../themes/default.less';
- @flexPrefixCls: lz-flexbox;
- /* flexbox */
- .@{flexPrefixCls} {
- text-align: left;
- overflow: hidden;
- display: flex;
- align-items: center;
- &&-dir-row {
- flex-direction: row;
- }
- &&-dir-row-reverse {
- flex-direction: row-reverse;
- }
- &&-dir-column {
- flex-direction: column;
- .@{flexPrefixCls}-item {
- margin-left: 0;
- }
- }
- &&-dir-column-reverse {
- flex-direction: column-reverse;
- .@{flexPrefixCls}-item {
- margin-left: 0;
- }
- }
- &&-nowrap {
- flex-wrap: nowrap;
- }
- &&-wrap {
- flex-wrap: wrap;
- }
- &&-wrap-reverse {
- flex-wrap: wrap-reverse;
- }
- &&-justify-start {
- justify-content: flex-start;
- }
- &&-justify-end {
- justify-content: flex-end;
- }
- &&-justify-center {
- justify-content: center;
- }
- &&-justify-between {
- justify-content: space-between;
- }
- &&-justify-around {
- justify-content: space-around;
- }
- &&-align-start {
- align-items: flex-start;
- }
- &&-align-end {
- align-items: flex-end;
- }
- &&-align-center {
- align-items: center;
- }
- &&-align-stretch {
- align-items: stretch;
- }
- &&-align-baseline {
- align-items: baseline;
- }
- &&-align-content-start {
- align-content: flex-start;
- }
- &&-align-content-end {
- align-items: flex-end;
- }
- &&-align-content-center {
- align-items: center;
- }
- &&-align-content-between {
- align-items: stretch;
- }
- &&-align-content-around {
- align-items: baseline;
- }
- &&-align-content-stretch {
- align-items: baseline;
- }
- & &-item {
- box-sizing: border-box;
- flex: 1;
- margin-left: @h-spacing-md;
- min-width: 10 * @hd;
- &:first-child {
- margin-left: 0;
- }
- }
- & &-basis {
- &-xs {
- flex-basis: 20%;
- }
- &-sm {
- flex-basis: 40%;
- }
- &-df {
- flex-basis: 50%;
- }
- &-lg {
- flex-basis: 60%;
- }
- &-xl {
- flex-basis: 80%;
- }
- }
- }
|