aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/bootstrap.scss
diff options
context:
space:
mode:
authorKim <1877318+kimsible@users.noreply.github.com>2020-07-23 15:09:15 +0200
committerGitHub <noreply@github.com>2020-07-23 15:09:15 +0200
commited5bb517266c80904c44bf44a335f1003f5aa277 (patch)
tree80671a21fb8c13ab47a65f01b64222a3a1e96a47 /client/src/sass/bootstrap.scss
parent345b4a22a8432cfd8c9c9f24634821d58c215b9a (diff)
downloadPeerTube-ed5bb517266c80904c44bf44a335f1003f5aa277.tar.gz
PeerTube-ed5bb517266c80904c44bf44a335f1003f5aa277.tar.zst
PeerTube-ed5bb517266c80904c44bf44a335f1003f5aa277.zip
Improve navigation sub-menu and tabs effects (#2971)
* Improve nav border and colors on active and non-active * Remove margin-top effect on active nav * Use opacity / bold instead of color change on nav * Remove dropdown items label in sub-menu and add a class active * Position sub-menu to fixed * Autoclose dropdown sub-menu only on outside click * Remove open dropdown on hover in sub-menu * Show reusable h1 for dropdown item in sub-menu * Put reusable sub-menu h1 styles to mixins * Add icons to sub-menu dropdown-item h1 * Make all the sub-menu accessible with focus Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/sass/bootstrap.scss')
-rw-r--r--client/src/sass/bootstrap.scss39
1 files changed, 19 insertions, 20 deletions
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index dd5824b7a..897182e53 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -161,9 +161,14 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
161 161
162.nav.nav-pills { 162.nav.nav-pills {
163 font-size: 16px !important; 163 font-size: 16px !important;
164 font-weight: $font-semibold !important;
164 165
165 .nav-link.active { 166 .nav-link {
166 font-weight: $font-semibold !important; 167 opacity: 0.6 !important;
168
169 &.active, &:hover, &:active, &:focus {
170 opacity: 1 !important;
171 }
167 } 172 }
168 173
169 a { 174 a {
@@ -173,29 +178,23 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
173 } 178 }
174} 179}
175 180
176.nav-tabs { 181.nav-tabs .nav-link {
177 182 @include disable-default-a-behaviour;
178 .nav-link {
179 @include disable-default-a-behaviour;
180 183
181 color: pvar(--mainForegroundColor) !important; 184 color: pvar(--mainForegroundColor);
182 } 185 font-weight: $font-semibold;
183} 186 border: none;
187 border-bottom: 2px solid transparent;
188 opacity: 0.6;
184 189
185.nav-tabs .nav-link {
186 &:not(.active) {
187 border-bottom: 3px solid transparent;
188 }
189 &.active { 190 &.active {
190 font-weight: $font-semibold; 191 color: pvar(--mainForegroundColor);
191 background-color: pvar(--mainBackgroundColor) !important; 192 background-color: pvar(--mainBackgroundColor) !important;
192 border: none; 193 border-bottom-color: pvar(--mainColor);
193 border-bottom: 2px solid pvar(--mainColor);
194 } 194 }
195 &:hover { 195
196 border-top-color: transparent; 196 &.active, &:hover, &:active, &:focus {
197 border-left-color: transparent; 197 opacity: 1;
198 border-right-color: transparent;
199 } 198 }
200} 199}
201 200