amis/scss/helper/box-alignment/_place-items.scss

41 lines
867 B
SCSS
Raw Normal View History

2020-12-10 16:49:59 +08:00
/*!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 |
2020-12-10 16:49:59 +08:00
*/
2020-11-27 00:11:42 +08:00
@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 + ':'));
}
}