mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
f94fd44ff6
- Intended to improve RTL support in the interface. - Also adds hebrew to language dropdown since that was missing. Related to #1794
32 lines
1.0 KiB
SCSS
32 lines
1.0 KiB
SCSS
// Here we generate spacing utility classes for our sizes for all box sides and axis.
|
|
// These will output to classes like .px-m (Padding on x-axis, medium size) or .mr-l (Margin right, large size)
|
|
|
|
@mixin spacing($prop, $propLetter) {
|
|
@each $sizeLetter, $size in $spacing {
|
|
.#{$propLetter}-#{$sizeLetter} {
|
|
#{$prop}: $size !important;
|
|
}
|
|
.#{$propLetter}x-#{$sizeLetter} {
|
|
#{$prop}-inline-start: $size !important;
|
|
#{$prop}-inline-end: $size !important;
|
|
}
|
|
.#{$propLetter}y-#{$sizeLetter} {
|
|
#{$prop}-top: $size !important;
|
|
#{$prop}-bottom: $size !important;
|
|
}
|
|
.#{$propLetter}t-#{$sizeLetter} {
|
|
#{$prop}-top: $size !important;
|
|
}
|
|
.#{$propLetter}r-#{$sizeLetter} {
|
|
#{$prop}-inline-end: $size !important;
|
|
}
|
|
.#{$propLetter}b-#{$sizeLetter} {
|
|
#{$prop}-bottom: $size !important;
|
|
}
|
|
.#{$propLetter}l-#{$sizeLetter} {
|
|
#{$prop}-inline-start: $size !important;
|
|
}
|
|
}
|
|
}
|
|
@include spacing('margin', 'm')
|
|
@include spacing('padding', 'p') |