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';
|
2020-03-16 15:16:05 +08:00
|
|
|
@import './rtl';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2015-06-09 18:22:52 +08:00
|
|
|
// Grid system
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-row {
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-09 22:19:35 +08:00
|
|
|
// x轴原点
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-start {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴居中
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-center {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴反方向
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-end {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴平分
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-space-between {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
// x轴有间隔地平分
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-space-around {
|
2015-06-09 22:19:35 +08:00
|
|
|
justify-content: space-around;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 顶部对齐
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-top {
|
2015-06-09 22:19:35 +08:00
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 居中对齐
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-middle {
|
2016-02-25 15:53:28 +08:00
|
|
|
align-items: center;
|
2015-06-09 22:19:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 底部对齐
|
2019-11-20 11:13:24 +08:00
|
|
|
.@{ant-prefix}-row-bottom {
|
2016-02-25 15:53:28 +08:00
|
|
|
align-items: flex-end;
|
2015-06-09 22:19:35 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-col {
|
2019-08-02 18:21:24 +08:00
|
|
|
position: relative;
|
2020-03-10 22:15:27 +08:00
|
|
|
flex: 1 0 auto;
|
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);
|
|
|
|
}
|