amis/packages/amis-ui/scss/helper/flex/_grow.scss

29 lines
498 B
SCSS
Raw Normal View History

2020-12-10 16:49:59 +08:00
/*!markdown
---
title: Flex Grow
---
| Class | Properties |
| ----------- | ------------------------ |
| flex-grow-0 | flex-grow: 0 |
| flex-grow | flex-grow: 1 |
2020-12-10 16:49:59 +08:00
*/
2020-11-26 19:43:32 +08:00
@mixin make-flex-grow($prefix: '.') {
#{$prefix}flex-grow-0 {
flex-grow: 0;
}
#{$prefix}flex-grow {
flex-grow: 1;
}
}
@include make-flex-grow();
@each $deivce in map-keys($devices) {
@include media-device($deivce) {
@include make-flex-grow('.' + selector-escape($deivce + ':'));
}
}