-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
46 lines (37 loc) · 863 Bytes
/
_mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Helper mixins for z-index management
*
* @author paul
* @package z-manager
* @date 25/11/15
*/
/**
* Sets the z-index to above a specific target.
*
* @param $target {string}
* @param $layerName {string}
*/
@mixin z-index-above( $target, $layer-name ){
z-index: z-index-manager( $target, true, $layer-name );
}
/**
* Sets the z-index to below a specific target.
*
* @param $target {string}
* @param $layer-name {string}
*/
@mixin z-index-below( $target, $layer-name ){
z-index: z-index-manager( $target, false, $layer-name );
}
/**
* Sets the z-index to above all layers.
*/
@mixin z-index-top( $layer-name ){
z-index: z-index-manager( '*', true, $layer-name );
}
/**
* Sets the z-index to below all layers.
*/
@mixin z-index-bottom( $layer-name ){
z-index: z-index-manager( '*', false, $layer-name );
}