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