diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-24 23:29:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 23:29:39 +0200 |
commit | a949f676368b2ea885a5f76f09c831c8a13a3c39 (patch) | |
tree | 90c7a0d60e5b87552117ba49b27e2e6fa35bc7b9 /client/src | |
parent | 2e7f262724dd64a209e0bad5930ba29bb4f801c3 (diff) | |
download | PeerTube-a949f676368b2ea885a5f76f09c831c8a13a3c39.tar.gz PeerTube-a949f676368b2ea885a5f76f09c831c8a13a3c39.tar.zst PeerTube-a949f676368b2ea885a5f76f09c831c8a13a3c39.zip |
correct regressions on sub-menu for account and admin (#3004)
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/shared-main/misc/top-menu-dropdown.component.scss | 6 | ||||
-rw-r--r-- | client/src/sass/application.scss | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.scss b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.scss index 655c38489..84dd7dce3 100644 --- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.scss +++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.scss | |||
@@ -1,12 +1,6 @@ | |||
1 | @import '_variables'; | 1 | @import '_variables'; |
2 | @import '_mixins'; | 2 | @import '_mixins'; |
3 | 3 | ||
4 | :host { | ||
5 | display: block; | ||
6 | height: $sub-menu-height; | ||
7 | margin-bottom: $sub-menu-margin-bottom; | ||
8 | } | ||
9 | |||
10 | .parent-entry { | 4 | .parent-entry { |
11 | span[role=button] { | 5 | span[role=button] { |
12 | cursor: pointer; | 6 | cursor: pointer; |
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index c76e5db7b..ea89ca9ce 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss | |||
@@ -136,6 +136,10 @@ label { | |||
136 | flex-grow: 1; | 136 | flex-grow: 1; |
137 | } | 137 | } |
138 | 138 | ||
139 | my-top-menu-dropdown + .margin-content { | ||
140 | padding-top: $sub-menu-height + $sub-menu-margin-bottom; | ||
141 | } | ||
142 | |||
139 | .sub-menu { | 143 | .sub-menu { |
140 | background-color: pvar(--submenuColor); | 144 | background-color: pvar(--submenuColor); |
141 | width: 100%; | 145 | width: 100%; |
@@ -145,7 +149,11 @@ label { | |||
145 | padding-left: $not-expanded-horizontal-margins; | 149 | padding-left: $not-expanded-horizontal-margins; |
146 | padding-right: $not-expanded-horizontal-margins; | 150 | padding-right: $not-expanded-horizontal-margins; |
147 | position: fixed; | 151 | position: fixed; |
148 | z-index: 1; | 152 | z-index: #{z('header') - 1}; |
153 | |||
154 | & + .margin-content { | ||
155 | margin-top: $sub-menu-margin-bottom; | ||
156 | } | ||
149 | } | 157 | } |
150 | 158 | ||
151 | // Override some properties if the main content is expanded (no menu on the left) | 159 | // Override some properties if the main content is expanded (no menu on the left) |