vendor: amis 6.13.0 base (fork root)
This commit is contained in:
41
packages/amis-ui/scss/helper/flex/_direction.scss
Normal file
41
packages/amis-ui/scss/helper/flex/_direction.scss
Normal file
@@ -0,0 +1,41 @@
|
||||
/*!markdown
|
||||
|
||||
---
|
||||
title: Flex Direction
|
||||
---
|
||||
|
||||
| Class | Properties |
|
||||
| ----------- | ------------------------ |
|
||||
| flex-row | flex-direction: row |
|
||||
| flex-row-reverse | flex-direction: row-reverse |
|
||||
| flex-col | flex-direction: column |
|
||||
| flex-col-reverse | flex-direction: column-reverse |
|
||||
|
||||
|
||||
*/
|
||||
|
||||
@mixin make-flex-direction($prefix: '.') {
|
||||
#{$prefix}flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#{$prefix}flex-row-reverse {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
#{$prefix}flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
#{$prefix}flex-col-reverse {
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
}
|
||||
|
||||
@include make-flex-direction();
|
||||
@each $deivce in map-keys($devices) {
|
||||
@include media-device($deivce) {
|
||||
@include make-flex-direction('.' + selector-escape($deivce + ':'));
|
||||
}
|
||||
}
|
||||
|
||||
// hover ?
|
||||
Reference in New Issue
Block a user