PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / css / build / admin.css

admin.css in Polylang trunk, at css/build/admin.css

607 lines 11.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* By default Polylang dialog box use WordPress jQuery UI dialog styles.
2 However WooCommerce loads its own jQuery UI dialog styles and we need to override them by ours
3 to revert to the default WordPress ones.
4 */
5 .pll-confirmation-modal.ui-widget,
6 .pll-confirmation-modal.ui-widget .ui-widget,
7 .pll-confirmation-modal .ui-widget {
8 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
9 font-size: 13px;
10 }
11 .pll-confirmation-modal.ui-dialog {
12 padding: 0;
13 z-index: 100102;
14 background: #fff;
15 border: 0;
16 color: #444;
17 border-radius: 0; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
18 }
19 .ui-dialog.pll-confirmation-modal .ui-dialog-titlebar {
20 background: #fcfcfc;
21 border-radius: 0;
22 border: 0;
23 border-bottom: 1px solid #dfdfdf;
24 height: 36px;
25 font-size: 18px;
26 font-weight: 600;
27 line-height: 2;
28 padding: 0 36px 0 16px;
29 color: #444;
30 position: static;
31 }
32 .ui-dialog.pll-confirmation-modal .ui-dialog-title {
33 float: none;
34 width: auto;
35 margin: 0;
36 }
37 .pll-confirmation-modal .ui-widget-header .ui-icon {
38 background: none;
39 position: static;
40 }
41 .pll-confirmation-modal .ui-button.ui-dialog-titlebar-close {
42 padding: 0;
43 margin: 0;
44 top: 0;
45 right: 0;
46 width: 36px;
47 height: 36px;
48 border: 0; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
49 background: none; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
50 }
51 .ui-dialog.pll-confirmation-modal .ui-dialog-content {
52 border: 0;
53 padding: 16px;
54 color: #444;
55 position: static;
56 box-sizing: border-box;
57 }
58 .ui-dialog.pll-confirmation-modal .ui-dialog-buttonpane{
59 margin: 0;
60 padding: 16px;
61 border: 0;
62 background: #fcfcfc;
63 border-top: 1px solid #dfdfdf;
64 }
65 .ui-dialog.pll-confirmation-modal .ui-dialog-buttonpane .ui-button{
66 margin: 0 0 0 16px;
67 padding: 0 10px 1px;
68 background: #f7f7f7;
69 border: 1px solid #cccccc;
70 border-radius: 3px;
71 position: static;
72 line-height: 2;
73 vertical-align: top;
74 }
75 .ui-dialog.pll-confirmation-modal .ui-button:hover,
76 .ui-dialog.pll-confirmation-modal .ui-button:focus {
77 background: #fafafa;
78 border-color: #999;
79 color: #23282d;
80 }
81 .pll-confirmation-modal + .ui-widget-overlay {
82 background: #000;
83 opacity: 0.7;
84 z-index: 100101;
85 }
86
87 /* languages admin panel */
88 #add-lang select {
89 width: 95%;
90 }
91
92 #add-lang label {
93 margin: 0.35em 0 0.5em;
94 }
95
96 .pll-legend {
97 display: block;
98 padding: 2px 0;
99 color: #1d2327;
100 font-weight: 400;
101 text-shadow: none;
102 margin: 0.35em 0 0.5em;
103 }
104
105 .column-locale,
106 .languages .column-slug {
107 width : 15%
108 }
109
110 .column-default_lang {
111 width : 5%;
112 }
113
114 .column-term_group,
115 .column-flag, .column-count {
116 width : 10%;
117 }
118
119 td.column-default_lang .icon-default-lang:before,
120 .pll-wizard-content .icon-default-lang:before {
121 font-family: 'dashicons';
122 content: "\f155";
123 }
124
125 .pll-icon:before{
126 display: inline-block;
127 text-align: left;
128 width: 15px;
129 }
130 .pll-circle:before{
131 content: "\25cf";
132 }
133
134 /* about Polylang metabox */
135 #pll-about-box p,
136 #pll-recommended p {
137 text-align: justify;
138 }
139
140 #pll-about-box input {
141 margin: 0;
142 padding: 0;
143 float: right;
144 }
145
146 /* strings translation table */
147 .stringstranslations .column-name,
148 .stringstranslations .column-context {
149 width: 10%;
150 }
151
152 .stringstranslations .column-string {
153 width: 33%;
154 }
155
156 .translation label {
157 display: inline-block;
158 width: 23%;
159 vertical-align: top;
160 }
161
162 .translation {
163 display: flex; /* fix #691 to remove default margin bottom */
164 }
165 @media screen and (max-width: 782px) { /* reset default display property for small device */
166 .translation{
167 display: block;
168 }
169 }
170 .translation textarea{
171 display: block; /* fix #691 to remove default margin bottom */
172 }
173 .translation input,
174 .translation textarea {
175 width: 72%;
176 box-sizing: border-box; /* to be sure field don't overrun outside their wrapper */
177 margin-bottom: 4px; /* fix #691 set the same margin bottom for both textarea and input tags */
178 }
179
180 /* settings */
181 .pll-settings {
182 margin-top: 20px;
183 }
184
185 .pll-settings .plugin-title {
186 width: 25%;
187 }
188
189 #wpbody-content .pll-settings .pll-configure tr {
190 display: table-row;
191 }
192
193 #wpbody-content .pll-settings .pll-configure td {
194 display: table-cell;
195 }
196
197 #wpbody-content .pll-settings .pll-configure > td {
198 padding: 20px 20px 20px 40px;
199 }
200
201 .pll-configure legend {
202 font-size: 14px;
203 font-weight: 600;
204 margin-bottom: 0.5em;
205 }
206
207 .pll-configure td .description {
208 margin-top: 2px;
209 margin-bottom: 0.5em;
210 }
211
212 .pll-configure p.submit {
213 margin-top: 20px;
214 }
215
216 .pll-configure .button {
217 margin-right: 20px;
218 }
219
220 .pll-configure fieldset {
221 margin-bottom: 1.5em;
222 }
223
224 .pll-inline-block-list {
225 margin: 0;
226 }
227
228 .pll-inline-block-list li {
229 display: inline-block;
230 margin: 0;
231 width: 250px;
232 }
233
234 /* settings URL modifications */
235 #pll-domains-table td {
236 padding: 2px 2px 2px 1.5em;
237 -webkit-box-shadow: none;
238 box-shadow: none;
239 border: none;
240 }
241
242 .pll-settings-url-col {
243 display: inline-block;
244 width: 49%;
245 vertical-align: top;
246 }
247
248 /* settings Activation keys */
249 .pll-table-top td {
250 vertical-align: top;
251 }
252
253 #pll-licenses-table label {
254 font-size: 1em;
255 font-weight: 600;
256 }
257
258 .pll-configure .pll-deactivate-license {
259 margin: 0 0 0 20px;
260 }
261
262 /* language columns in edit.php and edit-tags.php */
263 .wp-list-table th[class*='column-language_'],
264 .wp-list-table td[class*='column-language_'] {
265 width: 1.5em;
266 box-sizing: content-box; /* Override ACF 5.9.0 styles */
267 }
268
269 /* Text direction in post.php and edit-tags.php */
270 .pll-dir-rtl textarea,
271 .pll-dir-rtl input[type="text"] {
272 direction: rtl;
273 }
274
275 .pll-dir-ltr textarea,
276 .pll-dir-ltr input[type="text"] {
277 direction: ltr;
278 }
279
280 .pll-dir-ltr .tr_lang,
281 .pll-dir-rtl .tr_lang {
282 direction: inherit;
283 }
284
285 /* languages metabox in post.php */
286 #ml_box p {
287 margin-top: 1em;
288 }
289
290 #post-translations p {
291 float: left;
292 margin-top: 1em;
293 }
294
295 .rtl #post-translations p {
296 float: right;
297 }
298
299 #post-translations table {
300 table-layout: fixed;
301 width: 100%;
302 clear: both;
303 }
304
305 #post-translations a {
306 text-decoration: none;
307 }
308
309 #post-translations .pll-language-column,
310 #post-translations .pll-column-icon {
311 width: 20px;
312 }
313
314 #post-translations .tr_lang {
315 width: 100%;
316 }
317
318 #post-translations td {
319 padding: 2px;
320 }
321
322 #post-translations .spinner,
323 #term-translations .spinner {
324 float: none;
325 margin: 0;
326 background-position: center;
327 width: auto;
328 }
329
330 #select-post-language .pll-select-flag {
331 padding: 4px;
332 margin-right: 10px;
333 }
334
335 .rtl #select-post-language .pll-select-flag {
336 padding: 4px;
337 margin-right: 0px;
338 margin-left: 10px;
339 }
340
341 /* specific cases for media */
342 #select-media-language .pll-select-flag {
343 padding: 4px;
344 margin-right: 10px;
345 }
346
347 .pll-media-edit-column {
348 float: right;
349 }
350
351 /* language and translations in edit-tags.php */
352 .pll-translation-flag { /* also for media */
353 margin-right: 14px;
354 }
355
356 #select-add-term-language .pll-select-flag {
357 padding: 11px;
358 margin-right: 13px;
359 }
360
361 #select-edit-term-language .pll-select-flag {
362 padding: 11px;
363 margin-right: 4px;
364 }
365
366 #term-translations p {
367 /* same style as label */
368 font-weight: 400;
369 font-style: normal;
370 padding: 2px;
371 color: #23282d;
372 }
373
374 #add-term-translations,
375 #edit-term-translations {
376 width: 95%;
377 }
378
379 #term-translations .pll-language-column {
380 line-height: 28px;
381 width: 20%;
382 }
383
384 #term-translations .pll-edit-column,
385 #add-term-translations .pll-language-column {
386 width: 20px;
387 }
388
389 #edit-term-translations .pll-language-column {
390 padding: 15px 10px;
391 font-weight: normal;
392 }
393
394 /* icon fonts */
395 .pll_icon_add:before {
396 content: "\f132";
397 }
398
399 .pll_icon_edit:before {
400 content: "\f464";
401 }
402
403 [class^="pll_icon_"] {
404 font: 20px/1 'dashicons';
405 vertical-align: middle;
406 }
407
408 /* admin bar */
409 #wpadminbar #wp-admin-bar-languages .ab-item img {
410 margin: 0 8px 0 2px;
411 }
412
413 #wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
414 float: none;
415 top: 4px;
416 }
417
418 #wpadminbar #wp-admin-bar-languages .ab-icon:before {
419 content: "\f326";
420 top: 1px;
421 }
422
423 #wp-admin-bar-languages.pll-filtered-languages {
424 background-color:var(--wp-admin-theme-color);
425 }
426
427 .admin-color-coffee #wp-admin-bar-languages.pll-filtered-languages {
428 background-color: #c7a589;
429 }
430
431 .admin-color-ectoplasm #wp-admin-bar-languages.pll-filtered-languages {
432 background-color: #a3b745;
433 }
434
435 .admin-color-light #wp-admin-bar-languages.pll-filtered-languages {
436 background-color: #888;
437 }
438
439 .admin-color-light #wpadminbar #wp-admin-bar-languages.pll-filtered-languages span.ab-label {
440 color: #fff;
441 }
442
443 .admin-color-ocean #wp-admin-bar-languages.pll-filtered-languages {
444 background-color: #9ebaa0;
445 }
446
447 /* Notices */
448 .pll-notice.notice {
449 padding-right: 38px;
450 position: relative;
451 }
452
453 .pll-notice a.notice-dismiss {
454 text-decoration: none;
455 }
456
457 .pll-notice .button {
458 margin-right: 10px;
459 }
460
461 /* Widgets */
462 .polylang-language-switcher-widget-content {
463 width: 100%;
464 border-collapse: collapse;
465 }
466 .polylang-language-switcher-widget-content h4 {
467 padding: 1em 15px .33em;
468 border-top: 1px solid #c3c4c7; /* Acts as a separator. */
469 margin: 0 -15px; /* Makes the separator full widget width. */
470 }
471 .polylang-language-switcher-widget-content th {
472 width: 10em;
473 padding: 0 10px 10px 0;
474 text-align: start;
475 }
476 body.rtl .polylang-language-switcher-widget-content th {
477 padding: 0 0 10px 10px;
478 }
479 .polylang-language-switcher-widget-content td {
480 padding: 0 0 10px 0;
481 }
482 [class*="pll-hidden-by-"] {
483 display: none;
484 }
485 .polylang-language-switcher-widget-content label {
486 font-weight: normal;
487 }
488 .polylang-language-switcher-widget-content + p {
489 padding: 1em 15px .33em;
490 border-top: 1px solid #c3c4c7; /* Acts as a separator. */
491 margin: 1em -15px; /* Makes the separator full width. */
492 }
493
494 /* Nav menus */
495 .polylang-language-switcher-menu-content fieldset {
496 padding: 0 10px .67em;
497 border-bottom: 1px solid #c3c4c7; /* Acts as a separator. */
498 margin: 0 -10px; /* Makes the separator full width. */
499 }
500 .polylang-language-switcher-menu-content legend {
501 padding: .67em 10px;
502 margin: 0 -10px; /* Makes the separator full width. */
503 }
504
505 @media screen and ( max-width: 782px ) {
506 /* settings */
507 #wpbody-content .pll-settings .pll-configure > td {
508 padding: 20px;
509 }
510
511 #wpbody-content .pll-settings #cb {
512 padding: 20px 9px;
513 }
514
515 /* settings URL modifications */
516 .pll-inline-block {
517 width: auto;
518 }
519
520 .pll-settings-url-col {
521 display: block;
522 width: 100%;
523 }
524
525 /* settings licenses */
526 #wpbody-content .pll-settings #pll-licenses-table td {
527 display: block;
528 }
529
530 .pll-configure .pll-deactivate-license {
531 margin: 10px 0 5px;
532 }
533
534 /* strings translations table */
535 .translation label {
536 display: block;
537 width: 95%;
538 padding-left: 0;
539 }
540
541 .translation input,
542 .translation textarea {
543 width: 95%;
544 }
545
546 /* hide selected language flag and translations language name */
547 #select-add-term-language .pll-select-flag,
548 #select-edit-term-language .pll-select-flag,
549 #edit-term-translations .pll-language-name {
550 display: none;
551 }
552
553 #edit-term-translations {
554 width: 100%;
555 }
556
557 #add-term-translations .pll-language-column {
558 line-height: 38px;
559 }
560
561 #edit-term-translations td {
562 padding: 8px 10px;
563 }
564
565 #edit-term-translations .pll-language-column,
566 #edit-term-translations .pll-edit-column {
567 width: 20px;
568 }
569
570 /* translations tables should be kept as table */
571 .term-translations .pll-language-column,
572 .term-translations .pll-edit-column,
573 .term-translations .pll-translation-column {
574 display: table-cell;
575 }
576
577 .term-translations .hidden {
578 display: none;
579 }
580
581 /* admin bar */
582 #wpadminbar #wp-admin-bar-languages {
583 display: block; /*shows our menu on mobile devices */
584 }
585
586 #wpadminbar #wp-admin-bar-languages > .ab-item {
587 width: 50px;
588 text-align: center;
589 }
590
591 #wpadminbar #wp-admin-bar-languages > .ab-item .ab-icon:before {
592 font: 32px/1 'dashicons';
593 top: -1px;
594 }
595
596 #wpadminbar #wp-admin-bar-languages > .ab-item img {
597 margin: 19px 0;
598 }
599
600 #wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
601 margin-right: 6px;
602 font-size: 20px !important;
603 line-height: 20px !important;
604 }
605 }
606
607