2019-09-20 17:35:54 +08:00
|
|
|
@import './mixins/mixins.scss';
|
|
|
|
|
|
|
|
@include b(row) {
|
2019-11-06 14:03:00 +08:00
|
|
|
@include m(flex) {
|
|
|
|
display: flex;
|
|
|
|
}
|
2019-09-20 17:35:54 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin col-size-mixin ($span) {
|
|
|
|
@include m($span + '-span') {
|
|
|
|
width: percentage($number: 1 / 24 * $span);
|
|
|
|
}
|
2019-10-28 18:29:52 +08:00
|
|
|
@include m($span + '-offset') {
|
|
|
|
margin-left: percentage($number: 1 / 24 * $span);
|
|
|
|
}
|
|
|
|
@include m($span + '-push') {
|
|
|
|
left: percentage($number: 1 / 24 * $span);
|
|
|
|
}
|
|
|
|
@include m($span + '-pull') {
|
|
|
|
right: percentage($number: 1 / 24 * $span);
|
|
|
|
}
|
2019-09-20 17:35:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include b(col) {
|
|
|
|
vertical-align: top;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: inline-block;
|
2019-12-06 12:22:10 +08:00
|
|
|
// position: relative;
|
2019-09-20 17:35:54 +08:00
|
|
|
@for $i from 1 through 24 {
|
|
|
|
@include col-size-mixin($i);
|
|
|
|
}
|
2019-10-28 18:29:52 +08:00
|
|
|
@include e(box) {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2019-09-20 17:35:54 +08:00
|
|
|
}
|
|
|
|
}
|