diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-04 01:28:04 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2018-09-04 23:24:34 +0200 |
commit | 9a0fc8409c7a783348ec212fa9f38d0a98413467 (patch) | |
tree | 8b17264ef915e339d067abe6717c1574f1a2f36b /client/src/app/menu/menu.component.scss | |
parent | 3b766e181c59ce148fde73e507276c9fbaf37eb1 (diff) | |
download | PeerTube-9a0fc8409c7a783348ec212fa9f38d0a98413467.tar.gz PeerTube-9a0fc8409c7a783348ec212fa9f38d0a98413467.tar.zst PeerTube-9a0fc8409c7a783348ec212fa9f38d0a98413467.zip |
add theming via css custom properties
and a bonus dark color theme toggle
Diffstat (limited to 'client/src/app/menu/menu.component.scss')
-rw-r--r-- | client/src/app/menu/menu.component.scss | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 941c208e2..4ef330b2f 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -9,7 +9,7 @@ | |||
9 | } | 9 | } |
10 | 10 | ||
11 | menu { | 11 | menu { |
12 | background-color: $black-background; | 12 | background-color: $menu-background; |
13 | margin: 0; | 13 | margin: 0; |
14 | padding: 0; | 14 | padding: 0; |
15 | height: 100%; | 15 | height: 100%; |
@@ -190,10 +190,10 @@ menu { | |||
190 | } | 190 | } |
191 | 191 | ||
192 | .footer { | 192 | .footer { |
193 | margin-bottom: 15px; | 193 | padding-bottom: 15px; |
194 | padding-left: $menu-left-padding; | 194 | padding-left: $menu-left-padding; |
195 | 195 | ||
196 | .language { | 196 | .language, .color-palette { |
197 | display: inline-block; | 197 | display: inline-block; |
198 | color: $menu-bottom-color; | 198 | color: $menu-bottom-color; |
199 | cursor: pointer; | 199 | cursor: pointer; |
@@ -213,6 +213,16 @@ menu { | |||
213 | background-image: url('../../assets/images/menu/language.png'); | 213 | background-image: url('../../assets/images/menu/language.png'); |
214 | } | 214 | } |
215 | 215 | ||
216 | &.icon-moonsun { | ||
217 | margin-left: 10px; | ||
218 | position: relative; | ||
219 | top: -1px; | ||
220 | width: 24px; | ||
221 | height: 24px; | ||
222 | |||
223 | background-image: url('../../assets/images/menu/moonsun.svg'); | ||
224 | } | ||
225 | |||
216 | &:hover { | 226 | &:hover { |
217 | opacity: 1; | 227 | opacity: 1; |
218 | } | 228 | } |