aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-10 09:42:50 +0200
committerChocobozzz <me@florianbigard.com>2020-08-10 09:43:44 +0200
commitae2dd04617d3983af1d42e5fddaddf9dc64eebcb (patch)
treee2f4b20986c8fe16c67fb82789784c58e3be5348 /client/src/sass
parent82f443de1aba70ce75c72a4a7f669385600ab3c6 (diff)
downloadPeerTube-ae2dd04617d3983af1d42e5fddaddf9dc64eebcb.tar.gz
PeerTube-ae2dd04617d3983af1d42e5fddaddf9dc64eebcb.tar.zst
PeerTube-ae2dd04617d3983af1d42e5fddaddf9dc64eebcb.zip
Correctly fix sub menu
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/application.scss15
1 files changed, 11 insertions, 4 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index f4e4d8977..1dbdd4064 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -145,16 +145,23 @@ label {
145 .sub-menu { 145 .sub-menu {
146 background-color: pvar(--submenuColor); 146 background-color: pvar(--submenuColor);
147 width: 100%; 147 width: 100%;
148 height: $sub-menu-height;
149 display: flex; 148 display: flex;
150 align-items: center; 149 align-items: center;
151 padding-left: $not-expanded-horizontal-margins; 150 padding-left: $not-expanded-horizontal-margins;
152 padding-right: $not-expanded-horizontal-margins; 151 padding-right: $not-expanded-horizontal-margins;
153 position: fixed;
154 z-index: #{z('header') - 1};
155 152
156 & + .margin-content { 153 & + .margin-content {
157 padding-top: $sub-menu-height + $sub-menu-margin-bottom; 154 padding-top: $sub-menu-margin-bottom;
155 }
156
157 &.sub-menu-fixed {
158 height: $sub-menu-height;
159 position: fixed;
160 z-index: #{z('header') - 1};
161
162 & + .margin-content {
163 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
164 }
158 } 165 }
159 } 166 }
160 167