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