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