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