]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
8afc19a6 C |
4 | .menu-wrapper { |
5 | position: fixed; | |
6 | height: calc(100vh - #{$header-height}); | |
7 | padding: 0; | |
8 | width: $menu-width; | |
8ff3f883 | 9 | z-index: 10000; |
8afc19a6 C |
10 | } |
11 | ||
b33f657c | 12 | menu { |
1d9d9cfd | 13 | background-color: var(--menuBackgroundColor); |
b33f657c C |
14 | margin: 0; |
15 | padding: 0; | |
16 | height: 100%; | |
17 | white-space: nowrap; | |
18 | text-overflow: ellipsis; | |
185a4abd | 19 | overflow: auto; |
1d9d9cfd | 20 | color: var(--menuForegroundColor); |
8afc19a6 C |
21 | display: flex; |
22 | flex-direction: column; | |
46ae6f67 | 23 | width: 100%; |
8afc19a6 | 24 | |
a54991da RK |
25 | &:focus, &:hover { |
26 | overflow-y: auto; | |
27 | } | |
28 | ||
66467298 RK |
29 | .top-menu { |
30 | flex-grow: 1; | |
c13e2bf3 | 31 | width: $menu-width; |
66467298 RK |
32 | } |
33 | ||
b33f657c C |
34 | .logged-in-block { |
35 | height: 100px; | |
36 | background-color: rgba(255, 255, 255, 0.15); | |
37 | display: flex; | |
38 | align-items: center; | |
39 | justify-content: center; | |
40 | margin-bottom: 35px; | |
41 | ||
42 | .logged-in-info { | |
43 | flex-grow: 1; | |
b33f657c C |
44 | |
45 | .logged-in-username { | |
46 | font-size: 16px; | |
47 | font-weight: $font-semibold; | |
1d9d9cfd | 48 | color: var(--menuForegroundColor); |
c30745f3 C |
49 | cursor: pointer; |
50 | ||
51 | @include disable-default-a-behaviour; | |
b33f657c C |
52 | } |
53 | ||
54 | .logged-in-email { | |
55 | font-size: 13px; | |
56 | color: #C6C6C6; | |
cadb46d8 C |
57 | white-space: nowrap; |
58 | overflow: hidden; | |
59 | text-overflow: ellipsis; | |
60 | max-width: 140px; | |
b33f657c C |
61 | } |
62 | } | |
63 | ||
64 | .logged-in-more { | |
65 | margin-right: 20px; | |
66 | ||
67 | .glyphicon { | |
68 | cursor: pointer; | |
69 | font-size: 18px; | |
63347a0f C |
70 | |
71 | &::after { | |
72 | border: none; | |
73 | } | |
b33f657c C |
74 | } |
75 | } | |
76 | } | |
77 | ||
78 | .button-block { | |
79 | margin: 30px 25px 35px 25px; | |
80 | ||
9bce8112 C |
81 | .login-button { |
82 | @include peertube-button-link; | |
83 | @include orange-button; | |
84 | ||
c30745f3 | 85 | display: block; |
9bce8112 C |
86 | width: 100%; |
87 | margin-bottom: 10px; | |
88 | } | |
c30745f3 | 89 | |
9bce8112 C |
90 | .create-account-button { |
91 | @include peertube-button-link; | |
b33f657c | 92 | |
9bce8112 C |
93 | display: block; |
94 | width: 100%; | |
95 | ||
96 | color: #fff; | |
97 | background-color: rgba(255, 255, 255, 0.25); | |
b33f657c | 98 | |
9bce8112 C |
99 | &:hover { |
100 | background-color: rgba(255, 255, 255, 0.28); | |
b33f657c C |
101 | } |
102 | } | |
103 | } | |
104 | ||
105 | .block-title { | |
106 | text-transform: uppercase; | |
107 | font-weight: $font-bold; // Bold | |
108 | font-size: 13px; | |
109 | margin-bottom: 25px; | |
829be6e8 | 110 | margin-left: 26px; |
b33f657c C |
111 | } |
112 | ||
113 | .panel-block { | |
114 | margin-bottom: 45px; | |
b33f657c C |
115 | |
116 | a { | |
117 | display: flex; | |
829be6e8 | 118 | align-items: center; |
35c29307 | 119 | padding-left: $menu-lateral-padding; |
1d9d9cfd | 120 | color: var(--menuForegroundColor); |
c30745f3 | 121 | cursor: pointer; |
829be6e8 | 122 | height: 40px; |
c30745f3 | 123 | font-size: 16px; |
829be6e8 | 124 | transition: background-color .1s ease-in-out; |
c30745f3 | 125 | @include disable-default-a-behaviour; |
b33f657c | 126 | |
e6d5a4f1 | 127 | &.active { |
829be6e8 CL |
128 | background-color: rgba(255, 255, 255, 0.15); |
129 | } | |
130 | ||
e6d5a4f1 C |
131 | &:hover, &.focus-visible { |
132 | background-color: rgba(255, 255, 255, 0.10); | |
133 | } | |
134 | ||
b33f657c | 135 | .icon { |
0727cab0 C |
136 | @include icon(22px); |
137 | ||
b33f657c | 138 | margin-right: 18px; |
b33f657c | 139 | |
22a16e36 C |
140 | &.icon-videos-subscriptions { |
141 | position: relative; | |
4b54f136 | 142 | top: -1px; |
22a16e36 C |
143 | background-image: url('../../assets/images/menu/subscriptions.svg'); |
144 | } | |
145 | ||
2d3741d6 C |
146 | &.icon-videos-overview { |
147 | position: relative; | |
148 | background-image: url('../../assets/images/menu/globe.svg'); | |
149 | } | |
150 | ||
b33f657c C |
151 | &.icon-videos-trending { |
152 | position: relative; | |
4b54f136 | 153 | top: -1px; |
d2cc03aa | 154 | background-image: url('../../assets/images/menu/trending.svg'); |
b33f657c C |
155 | } |
156 | ||
157 | &.icon-videos-recently-added { | |
158 | width: 23px; | |
159 | height: 23px; | |
d2cc03aa | 160 | background-image: url('../../assets/images/menu/recently-added.svg'); |
b33f657c C |
161 | } |
162 | ||
066e94c5 C |
163 | &.icon-videos-local { |
164 | width: 23px; | |
165 | height: 23px; | |
4b54f136 | 166 | |
066e94c5 C |
167 | position: relative; |
168 | top: -1px; | |
4b54f136 | 169 | |
066e94c5 C |
170 | background-image: url('../../assets/images/menu/home.svg'); |
171 | } | |
172 | ||
b33f657c C |
173 | &.icon-administration { |
174 | width: 23px; | |
175 | height: 23px; | |
176 | ||
d2cc03aa | 177 | background-image: url('../../assets/images/menu/administration.svg'); |
b33f657c | 178 | } |
36f9424f C |
179 | |
180 | &.icon-about { | |
181 | width: 23px; | |
182 | height: 23px; | |
183 | ||
184 | background-image: url('../../assets/images/menu/about.svg'); | |
185 | } | |
b33f657c C |
186 | } |
187 | } | |
188 | } | |
8afc19a6 C |
189 | |
190 | .footer { | |
9a0fc840 | 191 | padding-bottom: 15px; |
35c29307 RK |
192 | padding-left: $menu-lateral-padding; |
193 | padding-right: $menu-lateral-padding; | |
c13e2bf3 | 194 | width: $menu-width; |
8afc19a6 | 195 | |
4a216666 | 196 | .language, .shortcuts, .color-palette { |
8afc19a6 C |
197 | display: inline-block; |
198 | color: $menu-bottom-color; | |
199 | cursor: pointer; | |
200 | font-size: 12px; | |
201 | font-weight: $font-semibold; | |
202 | ||
203 | .icon { | |
e78980eb | 204 | @include disable-outline; |
8afc19a6 C |
205 | @include icon(28px); |
206 | opacity: 0.9; | |
207 | ||
208 | &.icon-language { | |
209 | position: relative; | |
210 | top: -1px; | |
211 | width: 28px; | |
212 | height: 24px; | |
213 | ||
214 | background-image: url('../../assets/images/menu/language.png'); | |
215 | } | |
216 | ||
4a216666 RK |
217 | &.icon-shortcuts { |
218 | position: relative; | |
219 | top: -1px; | |
220 | width: 24px; | |
221 | height: 24px; | |
222 | ||
223 | background-image: url('../../assets/images/menu/keyboard.png'); | |
224 | background-color: #fff; | |
225 | filter: invert(100%); | |
226 | } | |
227 | ||
9a0fc840 RK |
228 | &.icon-moonsun { |
229 | margin-left: 10px; | |
230 | position: relative; | |
231 | top: -1px; | |
232 | width: 24px; | |
233 | height: 24px; | |
234 | ||
235 | background-image: url('../../assets/images/menu/moonsun.svg'); | |
236 | } | |
237 | ||
8afc19a6 C |
238 | &:hover { |
239 | opacity: 1; | |
240 | } | |
241 | } | |
242 | } | |
243 | } | |
b33f657c | 244 | } |
46ae6f67 | 245 | |
fdebd9a3 | 246 | @media screen and (max-width: $mobile-view) { |
46ae6f67 C |
247 | .menu-wrapper { |
248 | width: 100% !important; | |
46ae6f67 C |
249 | } |
250 | ||
c13e2bf3 RK |
251 | .top-menu, .footer { |
252 | width: 100% !important; | |
46ae6f67 C |
253 | } |
254 | } |