diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-05 10:19:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-05 10:19:45 +0200 |
commit | 46ae6f67249dea59176488ad1775f80109b8b8db (patch) | |
tree | 04db541e19418b598b4c10659667857ea6fde2c1 /client/src/app | |
parent | 8c985ef5cee948093a0c44bf9f09a96374a061d3 (diff) | |
download | PeerTube-46ae6f67249dea59176488ad1775f80109b8b8db.tar.gz PeerTube-46ae6f67249dea59176488ad1775f80109b8b8db.tar.zst PeerTube-46ae6f67249dea59176488ad1775f80109b8b8db.zip |
Fix menu on mobile
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/menu/menu.component.scss | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 4ef330b2f..c725580d1 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -20,16 +20,12 @@ menu { | |||
20 | color: $menu-color; | 20 | color: $menu-color; |
21 | display: flex; | 21 | display: flex; |
22 | flex-direction: column; | 22 | flex-direction: column; |
23 | width: 100%; | ||
23 | 24 | ||
24 | &:focus, &:hover { | 25 | &:focus, &:hover { |
25 | overflow-y: auto; | 26 | overflow-y: auto; |
26 | } | 27 | } |
27 | 28 | ||
28 | .top-menu { | ||
29 | flex-grow: 1; | ||
30 | width: $menu-width; | ||
31 | } | ||
32 | |||
33 | .logged-in-block { | 29 | .logged-in-block { |
34 | height: 100px; | 30 | height: 100px; |
35 | background-color: rgba(255, 255, 255, 0.15); | 31 | background-color: rgba(255, 255, 255, 0.15); |
@@ -230,3 +226,14 @@ menu { | |||
230 | } | 226 | } |
231 | } | 227 | } |
232 | } | 228 | } |
229 | |||
230 | @media screen and (max-width: 400px) { | ||
231 | .menu-wrapper { | ||
232 | width: 100% !important; | ||
233 | z-index: 10000; | ||
234 | } | ||
235 | |||
236 | .top-menu { | ||
237 | width: 100%; | ||
238 | } | ||
239 | } | ||