]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Improve video tag in edit form
[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
C
21body {
22 font-family: 'Source Sans Pro';
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 {
121 -animation: spin .7s infinite linear;
122 -ms-animation: spin .7s infinite linear;
123 -webkit-animation: spinw .7s infinite linear;
124 -moz-animation: spinm .7s infinite linear;
125}
126
127@keyframes spin {
128 from { transform: scale(1) rotate(0deg);}
129 to { transform: scale(1) rotate(360deg);}
130}
131
132@-webkit-keyframes spinw {
133 from { -webkit-transform: rotate(0deg);}
134 to { -webkit-transform: rotate(360deg);}
135}
136
137@-moz-keyframes spinm {
138 from { -moz-transform: rotate(0deg);}
139 to { -moz-transform: rotate(360deg);}
140}
141
04e0fc48 142// ngprime data table customizations
d592e0a9 143p-datatable {
cd83ea1b
C
144 font-size: 15px !important;
145
146 .ui-datatable-scrollable-header {
147 background-color: #fff !important;
148 }
149
150 .ui-widget-content {
151 border: none !important;
152 }
153
154 .ui-datatable-virtual-table {
155 border-top: none !important;
156 }
157
158 td {
159 border: 1px solid #E5E5E5 !important;
f595d394 160 padding-left: 15px !important;
cd83ea1b
C
161 }
162
163 tr {
164 background-color: #fff !important;
165 height: 46px;
166
167 &:hover {
168 background-color: #f0f0f0 !important;
169 }
170
171 &:not(:hover) {
172 .action-cell * {
173 display: none !important;
174 }
175 }
176
177 &:first-child td {
178 border-top: none !important;
179 }
f595d394
C
180
181 &:last-child td {
182 border-bottom: none !important;
183 }
cd83ea1b
C
184 }
185
186 th {
187 border: none !important;
188 border-bottom: 1px solid #f0f0f0 !important;
189 text-align: left !important;
190 padding: 5px 0 5px 15px !important;
191 font-weight: $font-semibold !important;
192 color: #000 !important;
193
c2830fa8 194 &.ui-sortable-column:hover:not(.ui-state-active) {
cd83ea1b
C
195 background-color: #f0f0f0 !important;
196 border: 1px solid #f0f0f0 !important;
f595d394 197 border-width: 0 1px !important;
cd83ea1b 198 }
c2830fa8
C
199
200 &.ui-state-active {
201 color: #fff !important;
202 background-color: $orange-color !important;
203 border: 1px solid $orange-color !important;
204 border-width: 0 1px !important;
205 }
cd83ea1b
C
206 }
207
d592e0a9 208 .action-cell {
cd83ea1b
C
209 width: 250px !important;
210 padding: 0 !important;
d592e0a9 211 text-align: center;
cd83ea1b 212 }
28798b5d 213
cd83ea1b 214 p-paginator {
cd83ea1b
C
215 .ui-paginator-bottom {
216 position: relative;
217 border: none !important;
f595d394 218 border: 1px solid #f0f0f0 !important;
cd83ea1b
C
219 height: 40px;
220 display: flex;
221 justify-content: center;
222 align-items: center;
223
224 a {
225 color: #000 !important;
226 font-weight: $font-semibold !important;
227 margin-right: 20px !important;
228 outline: 0 !important;
229 border-radius: 3px !important;
230 padding: 5px 2px !important;
231
232 &.ui-state-active {
233 &, &:hover, &:active, &:focus {
234 color: #fff !important;
235 background-color: $orange-color !important;
236 }
237 }
238 }
d592e0a9 239 }
ad42bea3 240 }
21496304 241}
7b272fd7 242
04e0fc48 243// Bootstrap customizations
7b272fd7
C
244.dropdown-menu {
245 border-radius: 3px;
246 box-shadow: 0 3px 6px;
247 font-size: 15px;
248
249 .dropdown-item {
250 padding: 3px 15px;
251 }
252
253 a {
254 color: #000 !important;
255 }
256}
0727cab0
C
257
258.modal {
259 .modal-header {
260 border-bottom: none;
261
262 .title-page-single {
263 margin: 0;
264 }
265 }
266}
267
04e0fc48 268.nav {
04e0fc48
C
269 font-size: 16px !important;
270 border: none !important;
271
272 .nav-item .nav-link {
04e0fc48 273 margin-right: 30px;
e600e1fe 274 padding: 0;
04e0fc48
C
275 border-radius: 3px;
276 border: none !important;
277
e600e1fe
C
278 .tab-link {
279 display: flex !important;
280 align-items: center;
281 height: 30px !important;
282 padding: 0 15px;
283 }
284
04e0fc48
C
285 &, & a {
286 color: #000 !important;
e600e1fe 287 @include disable-default-a-behaviour;
04e0fc48
C
288 }
289
290 &.active, &:hover {
291 background-color: #F0F0F0;
292 }
293
294 &.active {
295 font-weight: $font-semibold !important;
296 }
297 }
04e0fc48
C
298}
299
0727cab0
C
300.orange-button {
301 @include peertube-button;
302 @include orange-button;
303}
304
305.orange-button-link {
306 @include peertube-button-link;
307 @include orange-button;
308}
309
310.grey-button {
311 @include peertube-button;
312 @include grey-button;
313}
314
315.grey-button-link {
316 @include peertube-button-link;
317 @include grey-button;
318}
20206dfb
C
319
320// On small screen, menu is absolute
321@media screen and (max-width: 800px) {
322 .title-menu-left {
323 width: 150px !important;
324 position: absolute !important;
325 z-index: 10000;
326 }
327
328 .main-col {
329 margin-left: 0;
330
331 &, &.expanded {
332 .margin-content {
333 margin-left: 10px;
334 margin-right: 10px;
335 }
336
337 .sub-menu {
338 padding-left: 10px;
339 margin-bottom: 10px;
340 }
341
342 input[type=text], input[type=password] {
343 width: 100% !important;
344 }
345 }
346 }
347}