typical flexbox behavior
This commit is contained in:
parent
b2b32b190f
commit
46a428c516
@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
@mixin RV-FlexRow__Container--horizontal {
|
@mixin RV-FlexRow__Container--horizontal {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin RV-FlexRow__Container--vertical {
|
@mixin RV-FlexRow__Container--vertical {
|
||||||
@ -39,6 +38,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Flexbox behavior, Row is horizontal, but item are wraped individualy
|
||||||
|
*/
|
||||||
|
@mixin RV-FlexRow__Container--auto {
|
||||||
|
@include RV-FlexRow__Container--horizontal;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Shorthand for the modifiers above
|
* Shorthand for the modifiers above
|
||||||
*/
|
*/
|
||||||
@ -54,14 +61,17 @@
|
|||||||
&--vertical {
|
&--vertical {
|
||||||
@include RV-FlexRow__Container--vertical;
|
@include RV-FlexRow__Container--vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--auto {
|
||||||
|
@include RV-FlexRow__Container--auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ##########
|
/* ##########
|
||||||
* Item class
|
* Item class
|
||||||
########### */
|
########### */
|
||||||
@mixin RV-FlexRow__Item {
|
@mixin RV-FlexRow__Item {
|
||||||
min-width: min-content;
|
flex-basis: max-content;
|
||||||
width: 100%;
|
|
||||||
@include RV-FlexRow__Item--normal;
|
@include RV-FlexRow__Item--normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user