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