amis-rpc-design/libs/amis/packages/amis-ui/scss/helper/box-alignment/_place-items.scss
2023-10-07 19:42:30 +08:00

41 lines
867 B
SCSS

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