rf-web/_sass/utils/layout-utils.scss

90 lines
1.3 KiB
SCSS
Raw Normal View History

@mixin center-content-flex() {
display: flex;
justify-content: center;
align-items: center;
}
@mixin padding-vertical($padding) {
padding-top: $padding;
padding-bottom: $padding;
}
@mixin padding-horizontal($padding) {
padding-left: $padding;
padding-right: $padding;
}
@mixin margin-vertical($margin) {
margin-top: $margin;
margin-bottom: $margin;
}
@mixin margin-horizontal($margin) {
margin-left: $margin;
margin-right: $margin;
}
@mixin dir-col() {
display: flex;
flex-direction: column;
}
@mixin dir-row() {
display: flex;
flex-direction: row;
}
.margin-0 {
margin: 0px !important;
}
.margin-4-bottom {
margin-bottom: $size-base !important;
}
.margin-8-bottom {
margin-bottom: $size-8 !important;
}
.margin-16-bottom {
margin-bottom: $size-16 !important;
}
.margin-16-bottom-m {
@include touch {
margin-bottom: $size-16 !important;
}
}
.margin-24-bottom {
margin-bottom: $size-24 !important;
}
.margin-32-bottom {
margin-bottom: $size-32 !important;
}
.margin-64-bottom {
margin-bottom: $size-64 !important;
}
.margin-128-bottom {
margin-bottom: $size-128 !important;
}
.margin-16-left {
margin-left: $size-16 !important;
}
.margin-16-left-m {
@include touch {
margin-left: $size-16 !important;
}
}
.margin-16-left-d {
@include desktop {
margin-left: $size-16 !important;
}
}