]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Add ability to reset our password
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
4$icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/';
e203f2e0 5@import '_bootstrap';
63c4db6d
C
6
7$FontPathSourceSansPro: '../../node_modules/npm-font-source-sans-pro/fonts';
8@import '~npm-font-source-sans-pro/source-sans-pro';
9
d592e0a9
C
10@import '~primeng/resources/themes/bootstrap/theme.css';
11@import '~primeng/resources/primeng.css';
12@import '~video.js/dist/video-js.css';
c893d451
C
13
14@import './video-js-custom';
15@import './loading-bar';
e31f6ad6 16
383bfc83
C
17[hidden] {
18 display: none !important;
19}
a64668c0 20
b33f657c 21body {
ecb4e35f 22 font-family: 'Source Sans Pro', sans-serif;
b33f657c
C
23 font-weight: $font-regular;
24 color: #000;
25}
26
383bfc83
C
27input.readonly {
28 /* Force blank on readonly inputs */
29 background-color: #fff !important;
0ac5edd9 30}
31
d235f6b0
C
32label {
33 font-weight: $font-bold;
34 font-size: 15px;
09223546
C
35}
36
a2b817d3
C
37.form-error {
38 display: block;
39 color: $red-error;
40 margin-top: 5px;
41}
42
43.input-error {
44 border-color: $red-error !important;
45}
46
383bfc83
C
47.glyphicon-black {
48 color: black;
49}
50
383bfc83 51.main-col {
c30745f3 52 margin-left: $menu-width;
9bf9d2a5 53
c30745f3 54 .margin-content {
d178b5c1
C
55 margin-left: $not-expanded-horizontal-margins;
56 margin-right: $not-expanded-horizontal-margins;
c30745f3
C
57 }
58
59 .sub-menu {
60 background-color: #F7F7F7;
61 width: 100%;
62 height: 81px;
63 margin-bottom: 30px;
64 display: flex;
65 align-items: center;
d178b5c1 66 padding-left: $not-expanded-horizontal-margins;
c30745f3
C
67 }
68
69 // Override some properties if the main content is expanded (no menu on the left)
70 &.expanded {
71 margin-left: 0;
72
73 .margin-content {
74 margin-left: $expanded-horizontal-margins;
75 margin-right: $expanded-horizontal-margins;
76 }
77
78 .sub-menu {
79 padding-left: $expanded-horizontal-margins;
80 }
602eb142 81 }
383bfc83 82}
602eb142 83
59aa1e5e
C
84.title-page {
85 color: #000;
86 font-size: 16px;
87 display: inline-block;
88 margin-right: 55px;
89 font-weight: $font-semibold;
90 @include disable-default-a-behaviour;
91
92 &.active, &.title-page-single {
93 border-bottom: 2px solid $orange-color;
94 font-weight: $font-bold;
95 margin-top: 30px;
96 margin-bottom: 25px;
97 }
cadb46d8
C
98
99 &:hover, &:active, &:focus {
100 color: #000;
04e0fc48 101 }
cadb46d8 102}
04e0fc48 103
cd83ea1b
C
104.admin-sub-header {
105 display: flex;
106 align-items: center;
107 margin-bottom: 30px;
108
109 .admin-sub-title {
110 flex-grow: 1;
111 }
112}
113
04e0fc48
C
114.admin-sub-title {
115 font-size: 20px;
116 font-weight: bold;
59aa1e5e
C
117}
118
315cc0cc
C
119// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
120.glyphicon-refresh-animate {
4635f59d 121 animation: spin .7s infinite linear;
315cc0cc
C
122}
123
124@keyframes spin {
125 from { transform: scale(1) rotate(0deg);}
126 to { transform: scale(1) rotate(360deg);}
127}
128
04e0fc48 129// ngprime data table customizations
d592e0a9 130p-datatable {
cd83ea1b
C
131 font-size: 15px !important;
132
133 .ui-datatable-scrollable-header {
134 background-color: #fff !important;
135 }
136
137 .ui-widget-content {
138 border: none !important;
139 }
140
141 .ui-datatable-virtual-table {
142 border-top: none !important;
143 }
144
145 td {
146 border: 1px solid #E5E5E5 !important;
f595d394 147 padding-left: 15px !important;
fb4fd623
C
148 overflow: hidden !important;
149 text-overflow: ellipsis !important;
150 white-space: nowrap !important;
cd83ea1b
C
151 }
152
153 tr {
154 background-color: #fff !important;
155 height: 46px;
156
157 &:hover {
158 background-color: #f0f0f0 !important;
159 }
160
161 &:not(:hover) {
162 .action-cell * {
163 display: none !important;
164 }
165 }
166
167 &:first-child td {
168 border-top: none !important;
169 }
f595d394
C
170
171 &:last-child td {
172 border-bottom: none !important;
173 }
cd83ea1b
C
174 }
175
176 th {
177 border: none !important;
178 border-bottom: 1px solid #f0f0f0 !important;
179 text-align: left !important;
180 padding: 5px 0 5px 15px !important;
181 font-weight: $font-semibold !important;
182 color: #000 !important;
183
fb4fd623 184 &.ui-sortable-column:hover {
cd83ea1b
C
185 background-color: #f0f0f0 !important;
186 border: 1px solid #f0f0f0 !important;
f595d394 187 border-width: 0 1px !important;
fb4fd623
C
188
189 &:first-child {
190 border-width: 0 1px 0 0 !important;
191 }
cd83ea1b 192 }
c2830fa8
C
193
194 &.ui-state-active {
fb4fd623
C
195 background-color: #fff !important;
196
197 .fa {
198 @extend .glyphicon;
199 font-size: 11px;
200
201 &.fa-sort-asc {
202 @extend .glyphicon-triangle-top;
203 }
204
205 &.fa-sort-desc {
206 @extend .glyphicon-triangle-bottom;
207 }
208 }
c2830fa8 209 }
cd83ea1b
C
210 }
211
d592e0a9 212 .action-cell {
cd83ea1b
C
213 width: 250px !important;
214 padding: 0 !important;
d592e0a9 215 text-align: center;
cd83ea1b 216 }
28798b5d 217
cd83ea1b 218 p-paginator {
cd83ea1b
C
219 .ui-paginator-bottom {
220 position: relative;
221 border: none !important;
f595d394 222 border: 1px solid #f0f0f0 !important;
cd83ea1b
C
223 height: 40px;
224 display: flex;
225 justify-content: center;
226 align-items: center;
227
228 a {
229 color: #000 !important;
230 font-weight: $font-semibold !important;
231 margin-right: 20px !important;
232 outline: 0 !important;
233 border-radius: 3px !important;
234 padding: 5px 2px !important;
235
236 &.ui-state-active {
237 &, &:hover, &:active, &:focus {
238 color: #fff !important;
239 background-color: $orange-color !important;
240 }
241 }
242 }
d592e0a9 243 }
ad42bea3 244 }
21496304 245}
7b272fd7 246
04e0fc48 247// Bootstrap customizations
7b272fd7
C
248.dropdown-menu {
249 border-radius: 3px;
250 box-shadow: 0 3px 6px;
251 font-size: 15px;
252
253 .dropdown-item {
254 padding: 3px 15px;
255 }
256
257 a {
258 color: #000 !important;
259 }
260}
0727cab0
C
261
262.modal {
263 .modal-header {
264 border-bottom: none;
5f0805d3 265 margin-bottom: 5px;
0727cab0 266
5f0805d3
C
267 .modal-title {
268 font-size: 20px;
269 font-weight: $font-semibold;
270 }
271
272 .close {
273 @include icon(24px);
274
275 position: relative;
276 right: -1px;
277 float: right;
278 background-image: url('../assets/images/global/cross.svg');
279 }
280 }
281
282 .inputs {
283 margin-top: 40px;
284 margin-bottom: 0;
285 text-align: right;
286
287 .action-button-cancel {
288 @include peertube-button;
289 @include grey-button;
290
291 display: inline-block;
292 margin-right: 10px;
293 }
294
295 .action-button-submit {
296 @include peertube-button;
297 @include orange-button;
0727cab0
C
298 }
299 }
300}
301
04e0fc48 302.nav {
04e0fc48
C
303 font-size: 16px !important;
304 border: none !important;
305
306 .nav-item .nav-link {
04e0fc48 307 margin-right: 30px;
e600e1fe 308 padding: 0;
04e0fc48
C
309 border-radius: 3px;
310 border: none !important;
311
e600e1fe
C
312 .tab-link {
313 display: flex !important;
314 align-items: center;
315 height: 30px !important;
316 padding: 0 15px;
317 }
318
04e0fc48
C
319 &, & a {
320 color: #000 !important;
e600e1fe 321 @include disable-default-a-behaviour;
04e0fc48
C
322 }
323
324 &.active, &:hover {
325 background-color: #F0F0F0;
326 }
327
328 &.active {
329 font-weight: $font-semibold !important;
330 }
331 }
04e0fc48
C
332}
333
0727cab0
C
334.orange-button {
335 @include peertube-button;
336 @include orange-button;
337}
338
339.orange-button-link {
340 @include peertube-button-link;
341 @include orange-button;
342}
343
344.grey-button {
345 @include peertube-button;
346 @include grey-button;
347}
348
349.grey-button-link {
350 @include peertube-button-link;
351 @include grey-button;
352}
20206dfb 353
fb4fd623
C
354// In tables, don't have a hover different background
355table {
356 .action-button-edit, .action-button-delete {
357 &:hover, &:active, &:focus, &[disabled], &.disabled {
358 background-color: $grey-color !important;
359 }
360 }
361}
362
20206dfb
C
363// On small screen, menu is absolute
364@media screen and (max-width: 800px) {
365 .title-menu-left {
366 width: 150px !important;
367 position: absolute !important;
368 z-index: 10000;
369 }
370
371 .main-col {
372 margin-left: 0;
373
374 &, &.expanded {
375 .margin-content {
376 margin-left: 10px;
377 margin-right: 10px;
378 }
379
380 .sub-menu {
381 padding-left: 10px;
382 margin-bottom: 10px;
383 }
384
385 input[type=text], input[type=password] {
386 width: 100% !important;
387 }
388 }
389 }
390}