diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-23 15:09:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 15:09:15 +0200 |
commit | ed5bb517266c80904c44bf44a335f1003f5aa277 (patch) | |
tree | 80671a21fb8c13ab47a65f01b64222a3a1e96a47 /client/src/sass/include | |
parent | 345b4a22a8432cfd8c9c9f24634821d58c215b9a (diff) | |
download | PeerTube-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/include')
-rw-r--r-- | client/src/sass/include/_mixins.scss | 20 | ||||
-rw-r--r-- | client/src/sass/include/_variables.scss | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index 2cefaf73d..eec7b4a56 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -929,3 +929,23 @@ | |||
929 | @content; | 929 | @content; |
930 | } | 930 | } |
931 | } | 931 | } |
932 | |||
933 | @mixin sub-menu-h1 { | ||
934 | ::ng-deep h1 { | ||
935 | font-size: 1.3rem; | ||
936 | border-bottom: 2px solid $grey-background-color; | ||
937 | padding-bottom: 15px; | ||
938 | margin-bottom: $sub-menu-margin-bottom; | ||
939 | |||
940 | my-global-icon { | ||
941 | margin-right: 10px; | ||
942 | vertical-align: bottom; | ||
943 | width: 24px; | ||
944 | height: 24px; | ||
945 | } | ||
946 | |||
947 | .badge { | ||
948 | margin-left: 7px; | ||
949 | } | ||
950 | } | ||
951 | } | ||
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index fc13f6509..7b95bb8cc 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss | |||
@@ -49,6 +49,7 @@ $menu-width: 240px; | |||
49 | $menu-lateral-padding: 26px; | 49 | $menu-lateral-padding: 26px; |
50 | 50 | ||
51 | $sub-menu-color: #F7F7F7; | 51 | $sub-menu-color: #F7F7F7; |
52 | $sub-menu-height: 81px; | ||
52 | 53 | ||
53 | $footer-height: 30px; | 54 | $footer-height: 30px; |
54 | $footer-margin: 30px; | 55 | $footer-margin: 30px; |