Better usebility of mixins
This commit is contained in:
parent
e61d21071a
commit
4705ed0d39
@ -1,24 +1,30 @@
|
||||
@mixin RV-Alignment--top {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment--bottom {
|
||||
display: grid;
|
||||
align-content: end;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment--left {
|
||||
display: grid;
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment--right {
|
||||
display: grid;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment--horizontalCenter {
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment--verticalCenter {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
@ -27,37 +33,41 @@
|
||||
@include RV-Alignment--verticalCenter;
|
||||
}
|
||||
|
||||
@mixin RV-Alignment__Container {
|
||||
display: grid;
|
||||
|
||||
&--top {
|
||||
@include RV-Alignment--top;
|
||||
}
|
||||
|
||||
&--bottom {
|
||||
@include RV-Alignment--bottom;
|
||||
}
|
||||
|
||||
&--left {
|
||||
@include RV-Alignment--left;
|
||||
}
|
||||
|
||||
&--right {
|
||||
@include RV-Alignment--right;
|
||||
}
|
||||
|
||||
&--horizontalCenter {
|
||||
@include RV-Alignment--horizontalCenter;
|
||||
}
|
||||
|
||||
&--verticalCenter {
|
||||
@include RV-Alignment--verticalCenter;
|
||||
}
|
||||
|
||||
&--center {
|
||||
@include RV-Alignment--center;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin RV-Alignment {
|
||||
&__Container {
|
||||
display: grid;
|
||||
|
||||
&--top {
|
||||
@include RV-Alignment--top;
|
||||
}
|
||||
|
||||
&--bottom {
|
||||
@include RV-Alignment--bottom;
|
||||
}
|
||||
|
||||
&--left {
|
||||
@include RV-Alignment--left;
|
||||
}
|
||||
|
||||
&--right {
|
||||
@include RV-Alignment--right;
|
||||
}
|
||||
|
||||
&--horizontalCenter {
|
||||
@include RV-Alignment--horizontalCenter;
|
||||
}
|
||||
|
||||
&--verticalCenter {
|
||||
@include RV-Alignment--verticalCenter;
|
||||
}
|
||||
|
||||
&--center {
|
||||
@include RV-Alignment--center;
|
||||
}
|
||||
@include RV-FlexRow__Container;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user