Compare commits
2 Commits
d5c3a60e37
...
be58a92df3
| Author | SHA1 | Date | |
|---|---|---|---|
| be58a92df3 | |||
| c522059d06 |
@@ -1,28 +1,32 @@
|
|||||||
// Header selector for interpolation
|
// Header selector for interpolation
|
||||||
// Example usage: #{$headings} { ... }
|
// Example usage: #{$headers} { ... }
|
||||||
$headings: "h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6";
|
$headers: "h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6";
|
||||||
|
|
||||||
|
// All text selector for interpolation
|
||||||
|
$text: "#{$headers}, p, span, a, li";
|
||||||
|
|
||||||
|
// Section Spacers. Just set the two variables below and it is fully responsive!
|
||||||
|
// $section-spacer-small applies on breakpoints lg and below, OR always if specified in the class with --small (ex. section-spacer--small).
|
||||||
|
|
||||||
// Section Spacers
|
|
||||||
$section-spacer: rem-calc(50px);
|
$section-spacer: rem-calc(50px);
|
||||||
$section-spacer-small: rem-calc(25px);
|
$section-spacer-small: rem-calc(25px);
|
||||||
|
|
||||||
.section-spacer-both {
|
.section-spacer-both {
|
||||||
margin-top: $section-spacer;
|
margin-top: $section-spacer-small;
|
||||||
margin-bottom: $section-spacer;
|
margin-bottom: $section-spacer-small;
|
||||||
@include bs5-media-breakpoint-up(lg) {
|
@include bs5-media-breakpoint-up(lg) {
|
||||||
margin-top: calc($section-spacer * 1.5);
|
margin-top: $section-spacer;
|
||||||
margin-bottom: calc($section-spacer * 1.5);
|
margin-bottom: $section-spacer;
|
||||||
}
|
}
|
||||||
&--small {
|
&--small {
|
||||||
margin-top: $section-spacer-small;
|
margin-top: $section-spacer-small;
|
||||||
margin-bottom: $section-spacer-small;
|
margin-bottom: $section-spacer-small;
|
||||||
@include bs5-media-breakpoint-up(lg) {
|
@include bs5-media-breakpoint-up(lg) {
|
||||||
margin-top: calc($section-spacer-small * 2);
|
margin-top: $section-spacer-small;
|
||||||
margin-bottom: calc($section-spacer-small * 2);
|
margin-bottom: $section-spacer-small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-spacer {
|
.section-spacer {
|
||||||
@extend .section-spacer-both;
|
@extend .section-spacer-both;
|
||||||
margin-bottom: unset;
|
margin-bottom: unset;
|
||||||
@@ -30,3 +34,10 @@ $section-spacer-small: rem-calc(25px);
|
|||||||
margin-bottom: unset;
|
margin-bottom: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.section-spacer-bottom {
|
||||||
|
@extend .section-spacer-both;
|
||||||
|
margin-top: unset;
|
||||||
|
&--small {
|
||||||
|
margin-top: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user