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