@each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); /// Bordes. Bootstrap no define bordes _responsive_ /// /// @link node_modules/bootstrap/scss/utilities/_borders.scss /// @example html ///
.border#{$infix} { border: $border-width solid $border-color !important; } .border#{$infix}-0 { border: 0 !important; } @each $direction in $directions { .border#{$infix}-#{$direction} { border-#{$direction}: $border-width solid $border-color !important; } .border#{$infix}-#{$direction}-0 { border-#{$direction}: 0 !important; } .border#{$infix}-#{$direction}-dashed { border-#{$direction}: $border-width dashed $border-color !important; } } @each $border-width, $length in $border-widths { .border-width#{$infix}-#{$border-width} { border-width: $length !important; } } @each $color, $rgb in $theme-colors { .background#{$infix}-#{$color} { background-color: var(--#{$color}); &:focus { background-color: var(--#{$color}); } } } @each $color, $rgb in $colors { .background#{$infix}-#{$color} { background-color: var(--#{$color}); &:focus { background-color: var(--#{$color}); } } .#{$color}#{$infix} { color: var(--#{$color}); &:focus { color: var(--#{$color}); } } /// Cambiar el fondo al pasar por encima o hacer foco /// /// @example html ///
.background-hover#{$infix}-#{$color} { &:hover, &:focus-within { background-color: var(--#{$color}); } } @each $attr in $svg-attributes { /// Poder cambiar el relleno o la línea de un SVG /// /// @example html ///
/// ///
.#{$attr}#{$infix}-#{$color} { svg { * { #{$attr}: var(--#{$color}); } } } .#{$attr}-hover#{$infix}-#{$color} { &:hover, &:focus-within { svg { * { #{$attr}: var(--#{$color}); } } } } } /// Cambiar el color al pasar por encima o hacer foco /// /// @example html ///
.hover-#{$color} { &:hover, &:focus-within { color: var(--#{$color}) !important; } } /// Bordes de color /// /// @example html ///
.border#{$infix}-#{$color} { border-color: var(--#{$color}) !important; } .border-hover#{$infix}-#{$color} { &:hover, &:focus-within { border-color: var(--#{$color}) !important; } } @each $opacity, $degree in $opacities { /// Color de fondo con transparencia (opacidad) /// /// @example html ///
.background#{$infix}-#{$color}-t#{$opacity} { background-color: scale-color($rgb, $alpha: $degree); } .o#{$infix}-#{$opacity} { opacity: ($degree + 100%) / 100% !important; } } } /// Espacio entre caracteres /// /// @example html ///
@each $letter-spacing, $value in $letter-spacings { .letter-spacing#{$infix}-#{$letter-spacing} { letter-spacing: $value !important; } } .object-fit-cover#{$infix} { object-fit: cover; } .lead#{$infix} { font-size: $lead-font-size !important; } /// Poder aumentar o disminuir el alto de la tipografía. /// Se pueden definir con la variable font_size en theme.yml /// @example html ///
@each $font-size, $value in $font-sizes { .f#{$infix}-#{$font-size} { font-size: $font-size-base * $value !important; } } @each $cursor in $cursors { /// El elemento va a tener un cursor /// /// @example html ///
.cursor#{$infix}-#{$cursor} { cursor: $cursor; } } @each $spacer, $length in $spacers { @each $direction in $directions { /// Ubicación absoluta, usar con position-* /// /// @example html ///
.#{$direction}#{$infix}-#{$spacer} { #{$direction}: $length } .object-position#{$infix}-#{$direction} { object-position: $direction; } } .lh#{$infix}-#{$spacer} { line-height: $length !important; } ///
.rounded#{$infix}-#{$spacer} { border-radius: $length !important; } } /// Anchos y altos en base a `$sizes` definido por Bootstrap. Para /// personalizar los tamaños, modificarlos o agregarlos en `styles.scss` /// /// @link assets/css/styles.scss @each $prop, $abbrev in (width: w, height: h) { @each $size, $length in $sizes { .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; } .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; } .min-#{$abbrev}#{$infix}-#{$size} { min-#{$prop}: $length !important; } .max-#{$abbrev}#{$infix}-#{$size} { max-#{$prop}: $length !important; } } } @each $transform-scale, $value in $transform-scales { .transform-scale#{$infix}-#{$transform-scale} { transform: scale($value) !important; } .transform-scale-hover#{$infix}-#{$transform-scale} { &:hover, &:focus { transform: scale($value) !important; } } } @each $background-size, $value in $background-sizes { /// Tamaño de imagen de fondo /// /// @example html ///
.background-size#{$infix}-#{$background-size} { background-size: $value !important; } } @each $x in $background-positions-x { @each $y in $background-positions-y { .background-position#{$infix}-#{$x}-#{$y} { background-position: $x $y; } } } @each $background-image, $value in $background-images { .background-image#{$infix}-#{$background-image} { background-image: url("#{$value}"); } } } } .font-sm { font-size: 1rem * 1.0625; } .work-sans { font-family: 'Work Sans'; } .source-serif { font-family: 'Source Serif 4'; } .zindex-dropdown { z-index: 1000; } .zindex-sticky { z-index: 1020; } .zindex-fixed { z-index: 1030; } .zindex-modal-backdrop { z-index: 1040; } .zindex-modal { z-index: 1050; } .zindex-popover { z-index: 1060; } .zindex-tooltip { z-index: 1070; } b, strong { font-weight: $font-weight-bold; } code { background-color: $code-background; border-radius: $code-radius; font-family: $code-font-family; } .rotate { width: 60px; transform: rotate(90deg); flex: 0 1 auto; margin: 60px; } .break-wrap { word-break: break-word !important; word-wrap: break-word !important; }