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