amis2/packages/amis-ui/scss/helper/box-alignment/_place-self.scss
2022-06-01 15:06:00 +08:00

41 lines
843 B
SCSS

/*!markdown
---
title: Place Self
---
| Class | Properties |
| ----------- | ------------------------ |
| place-self-auto | place-self: auto |
| place-self-start | place-self: start |
| place-self-end | place-self: end |
| place-self-center | place-self: center |
| place-self-stretch | place-self: stretch |
*/
@mixin make-place-self($prefix: '.') {
#{$prefix}place-self-auto {
place-self: auto;
}
#{$prefix}place-self-start {
place-self: start;
}
#{$prefix}place-self-end {
place-self: end;
}
#{$prefix}place-self-center {
place-self: center;
}
#{$prefix}place-self-stretch {
place-self: stretch;
}
}
@include make-place-self();
@each $deivce in map-keys($devices) {
@include media-device($deivce) {
@include make-place-self('.' + selector-escape($deivce + ':'));
}
}