]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Dislike bar in the same color as the button
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
b34a444e 1$icon-font-path: '../../node_modules/@neos21/bootstrap3-glyphicons/assets/fonts/';
e203f2e0 2@import '_bootstrap';
63c4db6d 3
dcbc29d5
C
4@import '_variables';
5@import '_mixins';
6
fa40cbc3 7@import '_fonts';
63c4db6d 8
d592e0a9 9@import '~video.js/dist/video-js.css';
c893d451 10
2a19a1e4
C
11$assets-path: '../assets/';
12@import './player/player';
c893d451 13@import './loading-bar';
e31f6ad6 14
bbe0f064
C
15@import './primeng-custom';
16
383bfc83
C
17[hidden] {
18 display: none !important;
19}
a64668c0 20
b33f657c 21body {
dcbc29d5
C
22 /*** theme ***/
23 // now beware node-sass requires interpolation
24 // for css custom properties #{$var}
25 --mainColor: #{$orange-color};
26 --mainHoverColor: #{$orange-hoover-color};
27 --mainBackgroundColor: #{$bg-color};
28 --mainForegroundColor: #{$fg-color};
29 --submenuColor: #{$sub-menu-color};
30 --inputColor: #{$input-color};
31 --inputPlaceholderColor: #{$input-placeholder-color};
32
8a8e02a4 33 font-family: $main-fonts;
b33f657c 34 font-weight: $font-regular;
9a0fc840 35 color: var(--mainForegroundColor);
b34a444e 36 font-size: 14px;
b33f657c
C
37}
38
73e09f27
C
39#incompatible-browser {
40 display: none;
41 text-align: center;
42 position: absolute;
43 width: 100%;
44 top: 45%;
45}
46
07fa4c97
C
47strong {
48 font-weight: $font-semibold;
49}
50
383bfc83
C
51input.readonly {
52 /* Force blank on readonly inputs */
53 background-color: #fff !important;
0ac5edd9 54}
55
63347a0f
C
56input, textarea {
57 outline: none;
58}
59
d235f6b0
C
60label {
61 font-weight: $font-bold;
62 font-size: 15px;
09223546
C
63}
64
a2b817d3
C
65.form-error {
66 display: block;
41a676db 67 color: $red;
a2b817d3
C
68 margin-top: 5px;
69}
70
71.input-error {
41a676db 72 border-color: $red !important;
a2b817d3
C
73}
74
2d9fea16
RK
75.fullWidth {
76 width: 100%;
77 margin-left: auto;
78 margin-right: auto;
79 max-width: initial;
80}
81
383bfc83
C
82.glyphicon-black {
83 color: black;
84}
85
383bfc83 86.main-col {
c30745f3 87 margin-left: $menu-width;
b34a444e 88 width: auto;
9bf9d2a5 89
c30745f3 90 .margin-content {
d178b5c1
C
91 margin-left: $not-expanded-horizontal-margins;
92 margin-right: $not-expanded-horizontal-margins;
b34a444e 93 flex-grow: 1;
c30745f3
C
94 }
95
96 .sub-menu {
9a0fc840 97 background-color: var(--submenuColor);
c30745f3
C
98 width: 100%;
99 height: 81px;
100 margin-bottom: 30px;
101 display: flex;
102 align-items: center;
d178b5c1 103 padding-left: $not-expanded-horizontal-margins;
22a16e36 104 padding-right: $not-expanded-horizontal-margins;
c30745f3
C
105 }
106
107 // Override some properties if the main content is expanded (no menu on the left)
108 &.expanded {
109 margin-left: 0;
110
111 .margin-content {
112 margin-left: $expanded-horizontal-margins;
113 margin-right: $expanded-horizontal-margins;
114 }
115
116 .sub-menu {
117 padding-left: $expanded-horizontal-margins;
22a16e36 118 padding-right: $expanded-horizontal-margins;
c30745f3 119 }
602eb142 120 }
383bfc83 121}
602eb142 122
59aa1e5e 123.title-page {
9a0fc840 124 color: var(--mainForegroundColor);
59aa1e5e
C
125 font-size: 16px;
126 display: inline-block;
127 margin-right: 55px;
128 font-weight: $font-semibold;
129 @include disable-default-a-behaviour;
130
131 &.active, &.title-page-single {
9a0fc840 132 border-bottom: 2px solid var(--mainColor);
59aa1e5e
C
133 font-weight: $font-bold;
134 margin-top: 30px;
135 margin-bottom: 25px;
136 }
cadb46d8
C
137
138 &:hover, &:active, &:focus {
9a0fc840 139 color: var(--mainForegroundColor);
04e0fc48 140 }
1952a538
C
141
142 @media screen and (max-width: 500px) {
143 margin-right: 20px;
144 }
cadb46d8 145}
04e0fc48 146
cd83ea1b
C
147.admin-sub-header {
148 display: flex;
149 align-items: center;
150 margin-bottom: 30px;
151
08c1efbe 152 .form-sub-title {
cd83ea1b
C
153 flex-grow: 1;
154 }
65b247dd
C
155
156 .admin-sub-nav a {
157 @include disable-default-a-behaviour;
158
159 font-size: 16px;
9a0fc840 160 color: var(--mainForegroundColor);
65b247dd
C
161 padding: 5px 15px;
162 border-radius: 0.25rem;
163
164 &.active {
165 font-weight: $font-semibold;
166 background-color: #f0f0f0;
9a0fc840 167 color: #000;
65b247dd
C
168 }
169 }
cd83ea1b
C
170}
171
08c1efbe 172.form-sub-title {
04e0fc48
C
173 font-size: 20px;
174 font-weight: bold;
59aa1e5e
C
175}
176
315cc0cc
C
177// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
178.glyphicon-refresh-animate {
4635f59d 179 animation: spin .7s infinite linear;
315cc0cc
C
180}
181
182@keyframes spin {
183 from { transform: scale(1) rotate(0deg);}
184 to { transform: scale(1) rotate(360deg);}
185}
186
04e0fc48 187// Bootstrap customizations
7b272fd7
C
188.dropdown-menu {
189 border-radius: 3px;
190 box-shadow: 0 3px 6px;
191 font-size: 15px;
192
193 .dropdown-item {
194 padding: 3px 15px;
195 }
196
197 a {
198 color: #000 !important;
199 }
200}
0727cab0
C
201
202.modal {
9a0fc840
RK
203 .modal-content {
204 background-color: var(--mainBackgroundColor);
205 }
206
0727cab0
C
207 .modal-header {
208 border-bottom: none;
5f0805d3 209 margin-bottom: 5px;
0727cab0 210
5f0805d3
C
211 .modal-title {
212 font-size: 20px;
213 font-weight: $font-semibold;
214 }
215
216 .close {
217 @include icon(24px);
218
219 position: relative;
63347a0f 220 top: 3px;
5f0805d3
C
221 float: right;
222 background-image: url('../assets/images/global/cross.svg');
63347a0f
C
223
224 margin: 0;
225 padding: 0;
226 opacity: 1;
5f0805d3
C
227 }
228 }
229
230 .inputs {
231 margin-top: 40px;
232 margin-bottom: 0;
233 text-align: right;
234
235 .action-button-cancel {
236 @include peertube-button;
237 @include grey-button;
238
239 display: inline-block;
240 margin-right: 10px;
241 }
242
243 .action-button-submit {
244 @include peertube-button;
245 @include orange-button;
0727cab0
C
246 }
247 }
248}
249
63347a0f
C
250// Nav customizations
251.nav .nav-link {
252 display: flex !important;
253 align-items: center;
254 height: 30px !important;
255 padding: 10px 15px !important;
256}
04e0fc48 257
63347a0f
C
258.nav.nav-pills {
259 font-size: 16px !important;
260
261 .nav-link.active {
262 font-weight: $font-semibold !important;
263 }
264
265 a {
266 @include disable-default-a-behaviour;
267
9a0fc840 268 color: var(--mainForegroundColor);
6de36768
C
269 }
270}
04e0fc48 271
63347a0f 272ngb-tabset.bootstrap {
bbe0f064 273
63347a0f 274 .nav-link {
6de36768 275 &, & a {
6de36768 276 @include disable-default-a-behaviour;
63347a0f 277
9a0fc840 278 color: var(--mainForegroundColor) !important;
04e0fc48
C
279 }
280 }
04e0fc48
C
281}
282
0727cab0
C
283.orange-button {
284 @include peertube-button;
285 @include orange-button;
286}
287
288.orange-button-link {
289 @include peertube-button-link;
290 @include orange-button;
291}
292
293.grey-button {
294 @include peertube-button;
295 @include grey-button;
296}
297
298.grey-button-link {
299 @include peertube-button-link;
300 @include grey-button;
301}
20206dfb 302
fb4fd623
C
303// In tables, don't have a hover different background
304table {
305 .action-button-edit, .action-button-delete {
306 &:hover, &:active, &:focus, &[disabled], &.disabled {
307 background-color: $grey-color !important;
308 }
309 }
310}
311
2d3741d6
C
312.no-results {
313 height: 40vh;
314 display: flex;
315 align-items: center;
316 justify-content: center;
317 font-size: 16px;
318 font-weight: $font-semibold;
319}
320
8ff3f883 321@media screen and (max-width: 1200px) {
2303a803
RK
322 .main-col {
323 &.expanded {
324 .margin-content {
325 margin-left: $expanded-horizontal-margins/2;
326 margin-right: $expanded-horizontal-margins/2;
327 }
328 }
329 }
330}
331
1f788f20
C
332@media screen and (max-width: 900px) {
333 .main-col {
2303a803 334 &.expanded {
1f788f20 335 .margin-content {
2303a803
RK
336 margin-left: $expanded-horizontal-margins/3;
337 margin-right: $expanded-horizontal-margins/3;
1f788f20 338 }
dd778941
C
339
340 .sub-menu {
341 padding-left: 50px;
22a16e36
C
342
343 .title-page {
344 font-size: 15px;
345 }
dd778941 346 }
1f788f20
C
347 }
348 }
349}
350
8ff3f883 351@media screen and (max-width: $small-view) {
20206dfb
C
352 .main-col {
353 margin-left: 0;
354
355 &, &.expanded {
356 .margin-content {
6693df9d
C
357 margin-left: 15px;
358 margin-right: 15px;
20206dfb
C
359 }
360
361 .sub-menu {
dd778941 362 padding-left: 15px;
22a16e36 363 padding-right: 15px;
20206dfb
C
364 margin-bottom: 10px;
365 }
366
367 input[type=text], input[type=password] {
368 width: 100% !important;
369 }
370 }
371 }
46ae6f67 372}