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