scss-library/components/01_Layouts/alignment/_alignment.scss

76 lines
1.1 KiB
SCSS
Raw Normal View History

2020-08-23 14:38:59 +02:00
@mixin RV-Alignment--top {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
align-content: start;
}
@mixin RV-Alignment--bottom {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
align-content: end;
}
@mixin RV-Alignment--left {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
justify-content: start;
}
@mixin RV-Alignment--right {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
justify-content: end;
}
@mixin RV-Alignment--horizontalCenter {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
justify-content: center;
}
@mixin RV-Alignment--verticalCenter {
2020-08-23 19:19:53 +02:00
display: grid;
2020-08-23 14:38:59 +02:00
align-content: center;
}
@mixin RV-Alignment--center {
@include RV-Alignment--horizontalCenter;
@include RV-Alignment--verticalCenter;
}
2020-08-23 19:19:53 +02:00
@mixin RV-Alignment__Container {
display: grid;
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--top {
@include RV-Alignment--top;
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--bottom {
@include RV-Alignment--bottom;
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--left {
@include RV-Alignment--left;
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--right {
@include RV-Alignment--right;
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--horizontalCenter {
@include RV-Alignment--horizontalCenter;
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
&--verticalCenter {
@include RV-Alignment--verticalCenter;
}
&--center {
@include RV-Alignment--center;
}
}
2020-08-23 14:38:59 +02:00
2020-08-23 19:19:53 +02:00
@mixin RV-Alignment {
&__Container {
2020-08-25 15:53:55 +02:00
@include RV-Alignment__Container;
2020-08-23 14:38:59 +02:00
}
}
.RV-Alignment {
@include RV-Alignment;
}