diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 15:09:31 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 15:09:36 +0100 |
commit | 36f2981f7d586cea206e4c143c18cf866a4e3acd (patch) | |
tree | b1704dc4711499e226fd108c5b8062ec5731b664 /client/src/sass/include | |
parent | 5a208b004ad147091586f2d3eafaca07eaa021c4 (diff) | |
download | PeerTube-36f2981f7d586cea206e4c143c18cf866a4e3acd.tar.gz PeerTube-36f2981f7d586cea206e4c143c18cf866a4e3acd.tar.zst PeerTube-36f2981f7d586cea206e4c143c18cf866a4e3acd.zip |
Manage z-indexes in variables
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_variables.scss | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index e087a2548..d0e1a8c9c 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -93,8 +93,24 @@ $variables: ( | |||
93 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) | 93 | --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) |
94 | ); | 94 | ); |
95 | 95 | ||
96 | /*** theme helper ***/ | ||
97 | |||
98 | @function var($variable) { | 96 | @function var($variable) { |
99 | @return map-get($variables, $variable); | 97 | @return map-get($variables, $variable); |
100 | } | 98 | } |
99 | |||
100 | /*** z-index groups ***/ | ||
101 | |||
102 | $zindex: ( | ||
103 | header : 1000, | ||
104 | /* header context */ | ||
105 | headerLeft : 10, | ||
106 | menu : 11000, | ||
107 | dropdown : 12000, | ||
108 | loadbar : 13000, | ||
109 | modal : 14000, | ||
110 | notification : 15000, | ||
111 | hotkeys : 16000 | ||
112 | ); | ||
113 | |||
114 | @function z($label) { | ||
115 | @return map-get($zindex, $label); | ||
116 | } | ||