hugo-theme-zzo/assets/sass/abstracts/_functions.scss

17 lines
395 B
SCSS

@function z($name) {
@if index($z-indexes, $name) {
@return (length($z-indexes) - index($z-indexes, $name)) + 1;
} @else {
@warn 'There is no item "#{$name}" in this list; choose one of: #{$z-indexes}';
@return null;
}
}
@function ls($name) {
$value: map_get($ls, $name);
@return $value / 1000 * 1em;
}
@function themed($key) {
@return map-get($theme-map, $key);
}