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