2020-12-10 16:49:59 +08:00
|
|
|
/*!markdown
|
|
|
|
|
|
|
|
---
|
|
|
|
title: Flex Direction
|
|
|
|
---
|
|
|
|
|
2020-12-22 14:58:36 +08:00
|
|
|
| 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 |
|
2020-12-10 16:49:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-11-26 19:43:32 +08:00
|
|
|
@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 ?
|