_zindex.scss 765 Bytes
Newer Older
Benni Mack's avatar
Benni Mack committed
1 2 3 4 5 6 7 8
// do not use "!important"

/*
	use z-index-list to add selectors to the global sorted list of z-index-values.
	use z-index-defaults in addition to the list if you need to set a specific value.
*/

$z-index-list: (
9 10
	'.b_form__checkbox',
	'.b_form__label--checkbox:before',
Benni Mack's avatar
Benni Mack committed
11 12 13 14 15 16
	'.b_footer__top',
	'.b_navi',
	'.b_navi__submenu',
	'.b_header__meta',
	'.b_header',
	'.b_resetbanner__overlay',
17 18
	'.b_resetbanner',
	'.b_resetbanner__trigger'
Benni Mack's avatar
Benni Mack committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
);

$z-index-defaults: (
);

// create all z-index values
$temp-z: 10;
@each $class in $z-index-list {
	#{$class} {
		@if map-has-key($z-index-defaults, $class) {
			z-index: map-get($z-index-defaults, $class);
			$temp-z: map-get($z-index-defaults, $class);
		} @else {
			z-index: $temp-z + 10;
			$temp-z: $temp-z + 10;
		}
	}
}