mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03:00
6ea0e7ea8a
Co-Authored-By: Andreas Hennings <andreas@dqxtech.net>
25 lines
684 B
SCSS
25 lines
684 B
SCSS
|
|
$utilities-map: build-utilities-map(); // stylelint-disable-line scss/dollar-variable-default
|
|
|
|
@mixin utl($class) {
|
|
@if map-has-key($utilities-map, $class) {
|
|
$definition: map-get($utilities-map, $class);
|
|
$breakpoint: map-get($definition, breakpoint);
|
|
@if $breakpoint != null {
|
|
@include media-breakpoint-up($breakpoint) {
|
|
@each $property in map-get($definition, properties) {
|
|
#{$property}: map-get($definition, value);
|
|
}
|
|
}
|
|
}
|
|
@else {
|
|
@each $property in map-get($definition, properties) {
|
|
#{$property}: map-get($definition, value);
|
|
}
|
|
}
|
|
}
|
|
@else {
|
|
@debug "Unknown utility class " + $class;
|
|
}
|
|
}
|