]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/application.scss
Finish admin design
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
1 $FontPathSourceSansPro: "../fonts/source-sans-pro";
2 @import '~source-sans-pro/source-sans-pro';
3 @import '~primeng/resources/themes/bootstrap/theme.css';
4 @import '~primeng/resources/primeng.css';
5 @import '~video.js/dist/video-js.css';
6 @import './video-js-custom.scss';
7
8 [hidden] {
9 display: none !important;
10 }
11
12 body {
13 font-family: 'Source Sans Pro';
14 font-weight: $font-regular;
15 color: #000;
16 }
17
18 input.readonly {
19 /* Force blank on readonly inputs */
20 background-color: #fff !important;
21 }
22
23 label {
24 font-weight: $font-bold;
25 font-size: 15px;
26 }
27
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
38 .glyphicon-black {
39 color: black;
40 }
41
42 .main-col {
43 margin-left: $menu-width;
44
45 .margin-content {
46 margin-left: $not-expanded-horizontal-margins;
47 margin-right: $not-expanded-horizontal-margins;
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;
57 padding-left: $not-expanded-horizontal-margins;
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 }
72 }
73 }
74
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 }
89
90 &:hover, &:active, &:focus {
91 color: #000;
92 }
93 }
94
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
105 .admin-sub-title {
106 font-size: 20px;
107 font-weight: bold;
108 }
109
110 // On small screen, menu is absolute and displayed over the page
111 @media screen and (max-width: 500px) {
112 .title-menu-left {
113 width: 120px;
114 position: absolute !important;
115 z-index: 10000;
116 }
117
118 .main-col {
119 width: 100% !important;
120 }
121
122 .fake-menu {
123 display: none;
124 }
125 }
126
127 // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
128 .glyphicon-refresh-animate {
129 -animation: spin .7s infinite linear;
130 -ms-animation: spin .7s infinite linear;
131 -webkit-animation: spinw .7s infinite linear;
132 -moz-animation: spinm .7s infinite linear;
133 }
134
135 @keyframes spin {
136 from { transform: scale(1) rotate(0deg);}
137 to { transform: scale(1) rotate(360deg);}
138 }
139
140 @-webkit-keyframes spinw {
141 from { -webkit-transform: rotate(0deg);}
142 to { -webkit-transform: rotate(360deg);}
143 }
144
145 @-moz-keyframes spinm {
146 from { -moz-transform: rotate(0deg);}
147 to { -moz-transform: rotate(360deg);}
148 }
149
150 // ngprime data table customizations
151 p-datatable {
152 font-size: 15px !important;
153
154 .ui-datatable-scrollable-header {
155 background-color: #fff !important;
156 }
157
158 .ui-widget-content {
159 border: none !important;
160 }
161
162 .ui-datatable-virtual-table {
163 border-top: none !important;
164 }
165
166 td {
167 border: 1px solid #E5E5E5 !important;
168 padding-left: 15px !important;
169 }
170
171 tr {
172 background-color: #fff !important;
173 height: 46px;
174
175 &:hover {
176 background-color: #f0f0f0 !important;
177 }
178
179 &:not(:hover) {
180 .action-cell * {
181 display: none !important;
182 }
183 }
184
185 &:first-child td {
186 border-top: none !important;
187 }
188
189 &:last-child td {
190 border-bottom: none !important;
191 }
192 }
193
194 th {
195 border: none !important;
196 border-bottom: 1px solid #f0f0f0 !important;
197 text-align: left !important;
198 padding: 5px 0 5px 15px !important;
199 font-weight: $font-semibold !important;
200 color: #000 !important;
201
202 &.ui-state-active, &.ui-sortable-column:hover {
203 background-color: #f0f0f0 !important;
204 border: 1px solid #f0f0f0 !important;
205 border-width: 0 1px !important;
206 }
207 }
208
209 .action-cell {
210 width: 250px !important;
211 padding: 0 !important;
212 text-align: center;
213 }
214
215 p-paginator {
216 .ui-paginator-bottom {
217 position: relative;
218 border: none !important;
219 border: 1px solid #f0f0f0 !important;
220 height: 40px;
221 display: flex;
222 justify-content: center;
223 align-items: center;
224
225 a {
226 color: #000 !important;
227 font-weight: $font-semibold !important;
228 margin-right: 20px !important;
229 outline: 0 !important;
230 border-radius: 3px !important;
231 padding: 5px 2px !important;
232
233 &.ui-state-active {
234 &, &:hover, &:active, &:focus {
235 color: #fff !important;
236 background-color: $orange-color !important;
237 }
238 }
239 }
240 }
241 }
242 }
243
244 // Bootstrap customizations
245 .dropdown-menu {
246 border-radius: 3px;
247 box-shadow: 0 3px 6px;
248 font-size: 15px;
249
250 .dropdown-item {
251 padding: 3px 15px;
252 }
253
254 a {
255 color: #000 !important;
256 }
257 }
258
259 .modal {
260 .modal-header {
261 border-bottom: none;
262
263 .title-page-single {
264 margin: 0;
265 }
266 }
267 }
268
269 .nav {
270 font-size: 16px !important;
271 border: none !important;
272
273 .nav-item .nav-link {
274 margin-right: 30px;
275 padding: 0;
276 border-radius: 3px;
277 border: none !important;
278
279 .tab-link {
280 display: flex !important;
281 align-items: center;
282 height: 30px !important;
283 padding: 0 15px;
284 }
285
286 &, & a {
287 color: #000 !important;
288 @include disable-default-a-behaviour;
289 }
290
291 &.active, &:hover {
292 background-color: #F0F0F0;
293 }
294
295 &.active {
296 font-weight: $font-semibold !important;
297 }
298 }
299 }
300
301
302 .orange-button {
303 @include peertube-button;
304 @include orange-button;
305 }
306
307 .orange-button-link {
308 @include peertube-button-link;
309 @include orange-button;
310 }
311
312 .grey-button {
313 @include peertube-button;
314 @include grey-button;
315 }
316
317 .grey-button-link {
318 @include peertube-button-link;
319 @include grey-button;
320 }