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