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