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