Relativ CSS Class Names

This commit is contained in:
2020-08-21 17:20:29 +02:00
parent 232c869d43
commit 066de9a052
4 changed files with 65 additions and 68 deletions

View File

@@ -1,20 +1,22 @@
RV-FlexGrid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@mixin RV-FlexGrid {
&__Container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
&--sameHeight {
grid-auto-rows: 1fr;
&--sameHeight {
grid-auto-rows: 1fr;
}
&--spacing {
gap: 10px;
}
}
&--spacing {
gap: 10px;
&__Item {
@include align-content;
}
}
.RV-FlexGrid__Container {
@extend RV-FlexGrid;
.RV-FlexGrid__Item {
@include align-content;
}
}
.RV-FlexGrid{
@include RV-FlexGrid;
}

View File

@@ -1,22 +1,21 @@
RV-FlexRow {
display: flex;
flex-direction: row;
gap: 10px;
justify-content: space-around;
@mixin RV-FlexRow {
&__Container {
display: flex;
flex-direction: row;
gap: 10px;
justify-content: space-around;
&--wrap {
flex-wrap: wrap;
&--wrap {
flex-wrap: wrap;
}
}
* {
&__Item {
width: 100%;
@include align-content;
}
}
.RV-FlexRow__Container {
@extend RV-FlexRow;
.RV-FlexRow__Item {
@include align-content;
}
.RV-FlexRow{
@include RV-FlexRow;
}

View File

@@ -1,2 +1,2 @@
@import './components';
@import './pink.css';
@import './pink.css';
@import './components';