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