]>
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 { |
ef80c66c C |
13 | @include ellipsis; |
14 | ||
1d9d9cfd | 15 | background-color: var(--menuBackgroundColor); |
b33f657c C |
16 | margin: 0; |
17 | padding: 0; | |
18 | height: 100%; | |
606793b9 | 19 | overflow-x: 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 | ||
a55052c9 C |
29 | &.logged-in { |
30 | .panel-block { | |
31 | margin-bottom: 25px; | |
32 | } | |
33 | ||
34 | .block-title { | |
35 | margin-bottom: 15px; | |
36 | } | |
37 | } | |
38 | ||
66467298 RK |
39 | .top-menu { |
40 | flex-grow: 1; | |
c13e2bf3 | 41 | width: $menu-width; |
66467298 RK |
42 | } |
43 | ||
b33f657c C |
44 | .logged-in-block { |
45 | height: 100px; | |
46 | background-color: rgba(255, 255, 255, 0.15); | |
47 | display: flex; | |
48 | align-items: center; | |
49 | justify-content: center; | |
a55052c9 | 50 | margin-bottom: 20px; |
b33f657c C |
51 | |
52 | .logged-in-info { | |
ef80c66c C |
53 | @include ellipsis; |
54 | ||
b33f657c | 55 | flex-grow: 1; |
b33f657c | 56 | |
b7a7e801 | 57 | .logged-in-display-name { |
b33f657c C |
58 | font-size: 16px; |
59 | font-weight: $font-semibold; | |
1d9d9cfd | 60 | color: var(--menuForegroundColor); |
c30745f3 C |
61 | cursor: pointer; |
62 | ||
63 | @include disable-default-a-behaviour; | |
b33f657c C |
64 | } |
65 | ||
b7a7e801 | 66 | .logged-in-username { |
ef80c66c C |
67 | @include ellipsis; |
68 | ||
b33f657c C |
69 | font-size: 13px; |
70 | color: #C6C6C6; | |
cadb46d8 | 71 | max-width: 140px; |
b33f657c C |
72 | } |
73 | } | |
74 | ||
75 | .logged-in-more { | |
76 | margin-right: 20px; | |
77 | ||
e5b432e0 | 78 | my-global-icon.dropdown-toggle { |
b33f657c | 79 | cursor: pointer; |
63347a0f C |
80 | |
81 | &::after { | |
82 | border: none; | |
83 | } | |
e5b432e0 | 84 | |
03652b31 | 85 | ::ng-deep { |
e5b432e0 C |
86 | @include apply-svg-color(var(--menuForegroundColor)); |
87 | } | |
b33f657c | 88 | } |
a55052c9 C |
89 | |
90 | .dropdown-item { | |
91 | @include dropdown-with-icon-item; | |
92 | ||
93 | my-global-icon { | |
a55052c9 C |
94 | width: 22px; |
95 | height: 22px; | |
96 | ||
97 | &[iconName="sign-out"] { | |
98 | position: relative; | |
99 | right: -1px; | |
100 | height: 21px; | |
101 | width: 21px; | |
102 | } | |
103 | } | |
104 | } | |
b33f657c C |
105 | } |
106 | } | |
107 | ||
108 | .button-block { | |
109 | margin: 30px 25px 35px 25px; | |
110 | ||
9bce8112 C |
111 | .login-button { |
112 | @include peertube-button-link; | |
113 | @include orange-button; | |
114 | ||
c30745f3 | 115 | display: block; |
9bce8112 C |
116 | width: 100%; |
117 | margin-bottom: 10px; | |
118 | } | |
c30745f3 | 119 | |
9bce8112 C |
120 | .create-account-button { |
121 | @include peertube-button-link; | |
b33f657c | 122 | |
9bce8112 C |
123 | display: block; |
124 | width: 100%; | |
125 | ||
126 | color: #fff; | |
127 | background-color: rgba(255, 255, 255, 0.25); | |
b33f657c | 128 | |
9bce8112 C |
129 | &:hover { |
130 | background-color: rgba(255, 255, 255, 0.28); | |
b33f657c C |
131 | } |
132 | } | |
133 | } | |
134 | ||
135 | .block-title { | |
136 | text-transform: uppercase; | |
137 | font-weight: $font-bold; // Bold | |
138 | font-size: 13px; | |
139 | margin-bottom: 25px; | |
829be6e8 | 140 | margin-left: 26px; |
b33f657c C |
141 | } |
142 | ||
143 | .panel-block { | |
144 | margin-bottom: 45px; | |
b33f657c C |
145 | |
146 | a { | |
24e0d900 C |
147 | @include disable-default-a-behaviour; |
148 | ||
b33f657c | 149 | display: flex; |
829be6e8 | 150 | align-items: center; |
35c29307 | 151 | padding-left: $menu-lateral-padding; |
1d9d9cfd | 152 | color: var(--menuForegroundColor); |
c30745f3 | 153 | cursor: pointer; |
24e0d900 | 154 | min-height: 40px; |
c30745f3 | 155 | font-size: 16px; |
829be6e8 | 156 | transition: background-color .1s ease-in-out; |
24e0d900 C |
157 | white-space: normal; |
158 | word-break: break-word; | |
159 | padding-right: 20px; | |
b33f657c | 160 | |
e6d5a4f1 | 161 | &.active { |
829be6e8 CL |
162 | background-color: rgba(255, 255, 255, 0.15); |
163 | } | |
164 | ||
e6d5a4f1 C |
165 | &:hover, &.focus-visible { |
166 | background-color: rgba(255, 255, 255, 0.10); | |
167 | } | |
168 | ||
a55052c9 C |
169 | my-global-icon { |
170 | @include apply-svg-color(#808080); | |
0727cab0 | 171 | |
a55052c9 C |
172 | display: flex; |
173 | width: 22px; | |
174 | height: 22px; | |
b33f657c | 175 | margin-right: 18px; |
b33f657c | 176 | |
a55052c9 C |
177 | &[iconName="playlists"] { |
178 | height: 24px; | |
179 | width: 24px; | |
b33f657c | 180 | |
a55052c9 | 181 | margin-right: 16px; |
b33f657c C |
182 | } |
183 | ||
a55052c9 | 184 | &[iconName="videos"] { |
066e94c5 | 185 | position: relative; |
a55052c9 | 186 | right: -1px; |
b33f657c | 187 | } |
a55052c9 | 188 | } |
36f9424f | 189 | |
a55052c9 C |
190 | .icon { |
191 | @include icon(22px); | |
36f9424f | 192 | |
a55052c9 | 193 | margin-right: 18px; |
b33f657c C |
194 | } |
195 | } | |
196 | } | |
8afc19a6 C |
197 | |
198 | .footer { | |
9a0fc840 | 199 | padding-bottom: 15px; |
35c29307 RK |
200 | padding-left: $menu-lateral-padding; |
201 | padding-right: $menu-lateral-padding; | |
c13e2bf3 | 202 | width: $menu-width; |
8afc19a6 | 203 | |
4a216666 | 204 | .language, .shortcuts, .color-palette { |
8afc19a6 C |
205 | display: inline-block; |
206 | color: $menu-bottom-color; | |
207 | cursor: pointer; | |
208 | font-size: 12px; | |
209 | font-weight: $font-semibold; | |
210 | ||
211 | .icon { | |
e78980eb | 212 | @include disable-outline; |
8afc19a6 C |
213 | @include icon(28px); |
214 | opacity: 0.9; | |
215 | ||
216 | &.icon-language { | |
217 | position: relative; | |
218 | top: -1px; | |
219 | width: 28px; | |
220 | height: 24px; | |
221 | ||
222 | background-image: url('../../assets/images/menu/language.png'); | |
223 | } | |
224 | ||
4a216666 RK |
225 | &.icon-shortcuts { |
226 | position: relative; | |
227 | top: -1px; | |
228 | width: 24px; | |
229 | height: 24px; | |
230 | ||
231 | background-image: url('../../assets/images/menu/keyboard.png'); | |
4a216666 RK |
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 | 252 | |
fdebd9a3 | 253 | @media screen and (max-width: $mobile-view) { |
46ae6f67 C |
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 | } |