aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/menu/top-menu-dropdown.component.scss
diff options
context:
space:
mode:
authorKim <1877318+kimsible@users.noreply.github.com>2020-04-30 19:23:54 +0200
committerGitHub <noreply@github.com>2020-04-30 19:23:54 +0200
commitd363ef5360b479d5f494ac1559fba59b2069fe9e (patch)
tree25aaf8505f9d3e826f4a1242f69abc497a074005 /client/src/app/shared/menu/top-menu-dropdown.component.scss
parentc285180a45e6cd342184512cae2bb56af51fe833 (diff)
downloadPeerTube-d363ef5360b479d5f494ac1559fba59b2069fe9e.tar.gz
PeerTube-d363ef5360b479d5f494ac1559fba59b2069fe9e.tar.zst
PeerTube-d363ef5360b479d5f494ac1559fba59b2069fe9e.zip
Use modal instead of dropdown menu in small/mobile views (#2674)
Co-Authored-By: Rigel Kent <par@rigelk.eu>
Diffstat (limited to 'client/src/app/shared/menu/top-menu-dropdown.component.scss')
-rw-r--r--client/src/app/shared/menu/top-menu-dropdown.component.scss29
1 files changed, 29 insertions, 0 deletions
diff --git a/client/src/app/shared/menu/top-menu-dropdown.component.scss b/client/src/app/shared/menu/top-menu-dropdown.component.scss
index 1be699a88..5f90dcf80 100644
--- a/client/src/app/shared/menu/top-menu-dropdown.component.scss
+++ b/client/src/app/shared/menu/top-menu-dropdown.component.scss
@@ -25,3 +25,32 @@
25 25
26 top: -1px; 26 top: -1px;
27} 27}
28
29.sub-menu.no-scroll {
30 overflow-x: hidden;
31}
32
33.modal-body {
34 .hidden {
35 display: none;
36 }
37
38 a {
39 @include disable-default-a-behaviour;
40
41 color: currentColor;
42 box-sizing: border-box;
43 display: block;
44 font-size: 1.2rem;
45 padding: 9px 12px;
46 text-align: initial;
47 text-transform: unset;
48 width: 100%;
49
50 &.active {
51 color: var(--mainBackgroundColor) !important;
52 background-color: var(--mainHoverColor);
53 opacity: .9;
54 }
55 }
56}