sutty-base-jekyll-theme/_sass/helpers.scss

55 lines
965 B
SCSS
Raw Normal View History

2020-06-17 19:52:43 +00:00
$bezier: cubic-bezier(0.75, 0, 0.25, 1);
2020-06-17 19:34:42 +00:00
/*
* Crea una propiedad con prefijos de navegador
*/
$vendor-prefixes: ("", "-webkit-", "-ms-", "-o-", "-moz-");
@mixin vendor-prefix($property, $definition...) {
@each $prefix in $vendor-prefixes {
#{$prefix}$property: $definition;
}
}
/*
* Crea clases para asignar colores según la lista de colores.
*/
@each $color, $_ in $colors {
.background-#{$color} {
background-color: var(--#{$color});
}
.#{$color} {
color: var(--#{$color});
::-moz-selection,
::selection {
background: var(--#{$color});
color: white;
}
svg {
* {
fill: var(--#{$color});
}
}
.form-control {
border-color: var(--#{$color});
}
.btn {
background-color: var(--#{$color});
color: white;
border-color: var(--#{$color});
}
hr {
border-color: var(--#{$color});
}
a {
color: var(--#{$color});
}
}
}