2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
@import './mixin';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2015-06-09 18:22:52 +08:00
|
|
|
// Grid system
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls} {
|
2015-06-09 18:22:52 +08:00
|
|
|
display: flex;
|
2017-08-07 17:59:47 +08:00
|
|
|
flex-flow: row wrap;
|
2015-06-09 18:22:52 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2015-06-09 18:22:52 +08:00
|
|
|
display: flex;
|
|
|
|
}
|
2020-10-30 22:13:23 +08:00
|
|
|
|
|
|
|
// No wrap of flex
|
|
|
|
&-no-wrap {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
2015-06-09 18:22:52 +08:00
|
|
|
}
|
|
|
|
|
2015-06-09 22:19:35 +08:00
|
|
|
// x轴原点
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-start {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴居中
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-center {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴反方向
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-end {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴平分
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-space-between {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴有间隔地平分
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-space-around {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: space-around;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 顶部对齐
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-top {
|
2015-06-09 22:19:35 +08:00
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 居中对齐
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-middle {
|
2016-02-25 15:53:28 +08:00
|
|
|
align-items: center;
|
2015-06-09 22:19:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 底部对齐
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{row-prefix-cls}-bottom {
|
2016-02-25 15:53:28 +08:00
|
|
|
align-items: flex-end;
|
2015-06-09 22:19:35 +08:00
|
|
|
}
|
|
|
|
|
2022-02-10 11:13:25 +08:00
|
|
|
.@{col-prefix-cls} {
|
2019-08-02 18:21:24 +08:00
|
|
|
position: relative;
|
2019-11-20 11:13:24 +08:00
|
|
|
max-width: 100%;
|
2019-07-19 20:34:12 +08:00
|
|
|
// Prevent columns from collapsing when empty
|
|
|
|
min-height: 1px;
|
2015-06-09 22:19:35 +08:00
|
|
|
}
|
|
|
|
|
2020-01-03 15:20:28 +08:00
|
|
|
.make-grid();
|
|
|
|
|
|
|
|
// Extra small grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for extra small devices like
|
|
|
|
// smartphones.
|
|
|
|
|
|
|
|
.make-grid(-xs);
|
|
|
|
|
|
|
|
// Small grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
|
|
|
// to tablets.
|
|
|
|
|
|
|
|
@media (min-width: @screen-sm-min) {
|
|
|
|
.make-grid(-sm);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Medium grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the desktop device range.
|
|
|
|
|
|
|
|
@media (min-width: @screen-md-min) {
|
|
|
|
.make-grid(-md);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Large grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
|
|
|
|
|
|
|
@media (min-width: @screen-lg-min) {
|
|
|
|
.make-grid(-lg);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Extra Large grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the full hd device range.
|
|
|
|
|
|
|
|
@media (min-width: @screen-xl-min) {
|
|
|
|
.make-grid(-xl);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Extra Extra Large grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the full hd device range.
|
|
|
|
|
|
|
|
@media (min-width: @screen-xxl-min) {
|
|
|
|
.make-grid(-xxl);
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|