ant-design/components/layout/style/index.less
afc163 0ca6a1c24a css modularize (#1448)
* css modularize

* Add alert style

* Move more component style

* Move iconfont to common style

* Move layout style

* Move more component style

* Move all components

* Fix lots of mixin deps

* remove css-prefix from less

* fix a button icon style bug

* restructure

* fix index

* add dist

* fix jest

* fix some components style

* clean webpack config

* check more components style

* update tabs

* update scripts

* update scripts

* fix form style

* fix more style

* Fix select width

* Fix form and tabs style
2016-04-27 20:44:36 +08:00

103 lines
1.5 KiB
Plaintext

@import "../../style/themes/default";
@import "../../style/mixins/index";
@import "./mixin";
// Grid system
.row {
.make-row();
display: block;
}
.row-flex {
display: flex;
flex-direction: row;
flex-wrap: wrap;
&:before,
&:after {
display: flex;
}
}
// x轴原点
.row-flex-start {
justify-content: flex-start;
}
// x轴居中
.row-flex-center {
justify-content: center;
}
// x轴反方向
.row-flex-end {
justify-content: flex-end;
}
// x轴平分
.row-flex-space-between {
justify-content: space-between;
}
// x轴有间隔地平分
.row-flex-space-around {
justify-content: space-around;
}
// 顶部对齐
.row-flex-top {
align-items: flex-start;
}
// 居中对齐
.row-flex-middle {
align-items: center;
}
// 底部对齐
.row-flex-bottom {
align-items: flex-end;
}
.col {
position: relative;
display: block;
}
.make-grid-columns();
.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);
}