diff options
author | Kimsible <kimsible@users.noreply.github.com> | 2021-07-21 13:33:14 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-07-21 15:33:59 +0200 |
commit | 435990290a61ca6fdb679e6b076ef9157b89a6ce (patch) | |
tree | 4996e472b23009ab0f1aca541550581c2ab36e60 /client | |
parent | 81d5be91adf4d8274b6c2b19945ac6267b94c6b2 (diff) | |
download | PeerTube-435990290a61ca6fdb679e6b076ef9157b89a6ce.tar.gz PeerTube-435990290a61ca6fdb679e6b076ef9157b89a6ce.tar.zst PeerTube-435990290a61ca6fdb679e6b076ef9157b89a6ce.zip |
Correct privacymsg z-index to avoid hover dropdown on scroll
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss | 7 | ||||
-rw-r--r-- | client/src/sass/bootstrap.scss | 2 | ||||
-rw-r--r-- | client/src/sass/include/_variables.scss | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss index b42be318f..a6479c7ec 100644 --- a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss +++ b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss | |||
@@ -25,6 +25,13 @@ | |||
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
28 | // Avoid higher z-index when overlay on touchscreens | ||
29 | :host-context(.menu-open) { | ||
30 | .privacy-concerns { | ||
31 | z-index: z(overlay) - 1; | ||
32 | } | ||
33 | } | ||
34 | |||
28 | // Or if we are in the small view | 35 | // Or if we are in the small view |
29 | @media screen and (max-width: $small-view) { | 36 | @media screen and (max-width: $small-view) { |
30 | .privacy-concerns { | 37 | .privacy-concerns { |
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 586f558fe..4f6e08c1b 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss | |||
@@ -214,7 +214,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; | |||
214 | content: ''; | 214 | content: ''; |
215 | display: block; | 215 | display: block; |
216 | position: fixed; | 216 | position: fixed; |
217 | z-index: z('menu') - 1; | 217 | z-index: z(overlay); |
218 | } | 218 | } |
219 | } | 219 | } |
220 | } | 220 | } |
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index 396dae0e2..e0a4c7d3f 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -159,8 +159,8 @@ $variables: ( | |||
159 | 159 | ||
160 | $zindex: ( | 160 | $zindex: ( |
161 | miniature : 10, | 161 | miniature : 10, |
162 | privacymsg : 20, | ||
163 | sub-menu : 12500, | 162 | sub-menu : 12500, |
163 | overlay : 12550, | ||
164 | menu : 12600, | 164 | menu : 12600, |
165 | search-typeahead: 12650, | 165 | search-typeahead: 12650, |
166 | popover : 13000, | 166 | popover : 13000, |
@@ -169,6 +169,7 @@ $zindex: ( | |||
169 | modal : 16000, | 169 | modal : 16000, |
170 | dropdown : 17000, | 170 | dropdown : 17000, |
171 | help-popover : 17000, | 171 | help-popover : 17000, |
172 | privacymsg : 17500, | ||
172 | header : 17500, | 173 | header : 17500, |
173 | notification : 18000, | 174 | notification : 18000, |
174 | hotkeys : 19000 | 175 | hotkeys : 19000 |