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