2020-10-28 23:47:44 +00:00
|
|
|
/*
|
|
|
|
* Usar en animaciones, empiezan rápido y desaceleran hacia el final.
|
|
|
|
*/
|
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
|
|
|
|
2020-10-28 23:47:44 +00:00
|
|
|
/*
|
|
|
|
* Ocultar la barra de scroll, útil para sliders horizontales.
|
|
|
|
*/
|
|
|
|
.no-scrollbar {
|
|
|
|
scrollbar-width: none;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar { display: none; }
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Poder aumentar o disminuir el alto de la tipografía, se usa de la
|
|
|
|
* misma forma que los modificadores de padding y margin.
|
|
|
|
*/
|
|
|
|
@each $size, $length in $spacers {
|
|
|
|
.f-#{$size} {
|
|
|
|
font-size: $length !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Modificadores de Bootstrap que no tienen versión responsive.
|
|
|
|
*/
|
|
|
|
@each $grid-breakpoint, $_ in $grid-breakpoints {
|
|
|
|
@include media-breakpoint-up($grid-breakpoint) {
|
|
|
|
// border
|
|
|
|
.border-#{$grid-breakpoint} { border: $border-width solid $border-color !important; }
|
|
|
|
.border-#{$grid-breakpoint}-top { border-top: $border-width solid $border-color !important; }
|
|
|
|
.border-#{$grid-breakpoint}-right { border-right: $border-width solid $border-color !important; }
|
|
|
|
.border-#{$grid-breakpoint}-bottom { border-bottom: $border-width solid $border-color !important; }
|
|
|
|
.border-#{$grid-breakpoint}-left { border-left: $border-width solid $border-color !important; }
|
|
|
|
.border-#{$grid-breakpoint}-0 { border: 0 !important; }
|
|
|
|
.border-#{$grid-breakpoint}-top-0 { border-top: 0 !important; }
|
|
|
|
.border-#{$grid-breakpoint}-right-0 { border-right: 0 !important; }
|
|
|
|
.border-#{$grid-breakpoint}-bottom-0 { border-bottom: 0 !important; }
|
|
|
|
.border-#{$grid-breakpoint}-left-0 { border-left: 0 !important; }
|
|
|
|
|
|
|
|
// alineación
|
|
|
|
.text-#{$grid-breakpoint}-left { text-align: left !important; }
|
|
|
|
.text-#{$grid-breakpoint}-right { text-align: right !important; }
|
|
|
|
.text-#{$grid-breakpoint}-center { text-align: center !important; }
|
|
|
|
|
|
|
|
// posición
|
|
|
|
@each $position in $positions {
|
|
|
|
.position-#{$grid-breakpoint}-#{$position} { position: $position !important; }
|
|
|
|
}
|
|
|
|
|
|
|
|
// anchos y altos
|
|
|
|
@each $prop, $abbrev in (width: w, height: h) {
|
|
|
|
@each $size, $length in $sizes {
|
|
|
|
.#{$abbrev}-#{$grid-breakpoint}-#{$size} { #{$prop}: $length !important; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// versión responsive de f
|
|
|
|
@each $size, $length in $spacers {
|
|
|
|
.f-#{$grid-breakpoint}-#{$size} {
|
|
|
|
font-size: $length !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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});
|
2020-10-28 23:47:44 +00:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background-color: var(--#{$color});
|
|
|
|
}
|
2020-06-17 19:34:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.#{$color} {
|
2020-10-28 23:47:44 +00:00
|
|
|
color: var(--#{$color}) !important;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: var(--#{$color}) !important;
|
|
|
|
}
|
2020-06-17 19:34:42 +00:00
|
|
|
|
|
|
|
::-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});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|