amis/packages/amis-ui/scss/helper/flex/_grow.scss
2022-06-01 15:06:00 +08:00

29 lines
498 B
SCSS

/*!markdown
---
title: Flex Grow
---
| Class | Properties |
| ----------- | ------------------------ |
| flex-grow-0 | flex-grow: 0 |
| flex-grow | flex-grow: 1 |
*/
@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 + ':'));
}
}