72 lines
1.5 KiB
SCSS
72 lines
1.5 KiB
SCSS
/* ------------------------------------------------------------------------------
|
|
*
|
|
* # Custom template mixins
|
|
*
|
|
* All custom mixins are prefixed with "ll-" to avoid conflicts
|
|
*
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
|
// Content
|
|
// ------------------------------
|
|
|
|
// Font smoothing
|
|
@mixin ll-font-smoothing() {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
// Sizing shortcut. Bootstrap deprecated it, but I find it very handy.
|
|
// From now on this mixin lives here.
|
|
@mixin size($width, $height: $width) {
|
|
width: $width;
|
|
height: $height;
|
|
}
|
|
|
|
|
|
//
|
|
// Colors (for color system)
|
|
//
|
|
|
|
// For .bg-* classes
|
|
@mixin ll-background-variant($color) {
|
|
background-color: $color;
|
|
}
|
|
|
|
// For .text-* classes
|
|
@mixin ll-text-color-variant($color) {
|
|
color: $color;
|
|
|
|
// Darken link color on hover
|
|
&[href] {
|
|
@include hover-focus {
|
|
color: darken($color, 7.5%);
|
|
}
|
|
}
|
|
}
|
|
|
|
// For .border-* classes
|
|
@mixin ll-border-color-variant($color) {
|
|
border-color: $color;
|
|
}
|
|
|
|
// For .border-top-* classes
|
|
@mixin ll-border-top-color-variant($color) {
|
|
border-top-color: $color;
|
|
}
|
|
|
|
// For .border-bottom-* classes
|
|
@mixin ll-border-bottom-color-variant($color) {
|
|
border-bottom-color: $color;
|
|
}
|
|
|
|
// For .border-left-* classes
|
|
@mixin ll-border-left-color-variant($color) {
|
|
border-left-color: $color;
|
|
}
|
|
|
|
// For .border-right-* classes
|
|
@mixin ll-border-right-color-variant($color) {
|
|
border-right-color: $color;
|
|
}
|