| @@ -1,9 +1,108 @@ | ||
| 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 | + | |
| 1 | 87 | /* languages admin panel */ |
| 2 | 88 | #add-lang select { |
| 3 | 89 | width: 95%; |
| 4 | 90 | } |
| 5 | 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 | + | |
| 6 | 105 | .column-locale, |
| 7 | 106 | .languages .column-slug { |
| 8 | 107 | width : 15% |
| 9 | 108 | } |
| @@ -16,12 +115,14 @@ | ||
| 16 | 115 | .column-flag, .column-count { |
| 17 | 116 | width : 10%; |
| 18 | 117 | } |
| 19 | 118 | |
| 20 | -.icon-default-lang:before { | |
| 119 | +td.column-default_lang .icon-default-lang:before, | |
| 120 | +.pll-wizard-content .icon-default-lang:before { | |
| 21 | 121 | font-family: 'dashicons'; |
| 22 | 122 | content: "\f155"; |
| 23 | 123 | } |
| 124 | + | |
| 24 | 125 | .pll-icon:before{ |
| 25 | 126 | display: inline-block; |
| 26 | 127 | text-align: left; |
| 27 | 128 | width: 15px; |
| @@ -29,13 +130,8 @@ | ||
| 29 | 130 | .pll-circle:before{ |
| 30 | 131 | content: "\25cf"; |
| 31 | 132 | } |
| 32 | 133 | |
| 33 | -.form-field input[type="radio"] { | |
| 34 | - width: auto; | |
| 35 | - margin-right: 2px; | |
| 36 | -} | |
| 37 | - | |
| 38 | 134 | /* about Polylang metabox */ |
| 39 | 135 | #pll-about-box p, |
| 40 | 136 | #pll-recommended p { |
| 41 | 137 | text-align: justify; |
| @@ -149,9 +245,9 @@ | ||
| 149 | 245 | vertical-align: top; |
| 150 | 246 | } |
| 151 | 247 | |
| 152 | 248 | /* settings Activation keys */ |
| 153 | -#pll-licenses-table td { | |
| 249 | +.pll-table-top td { | |
| 154 | 250 | vertical-align: top; |
| 155 | 251 | } |
| 156 | 252 | |
| 157 | 253 | #pll-licenses-table label { |
| @@ -186,12 +282,21 @@ | ||
| 186 | 282 | direction: inherit; |
| 187 | 283 | } |
| 188 | 284 | |
| 189 | 285 | /* languages metabox in post.php */ |
| 286 | +#ml_box p { | |
| 287 | + margin-top: 1em; | |
| 288 | +} | |
| 289 | + | |
| 190 | 290 | #post-translations p { |
| 191 | 291 | float: left; |
| 292 | + margin-top: 1em; | |
| 192 | 293 | } |
| 193 | 294 | |
| 295 | +.rtl #post-translations p { | |
| 296 | + float: right; | |
| 297 | +} | |
| 298 | + | |
| 194 | 299 | #post-translations table { |
| 195 | 300 | table-layout: fixed; |
| 196 | 301 | width: 100%; |
| 197 | 302 | clear: both; |
| @@ -221,15 +326,17 @@ | ||
| 221 | 326 | background-position: center; |
| 222 | 327 | width: auto; |
| 223 | 328 | } |
| 224 | 329 | |
| 225 | -.pll-column-icon { | |
| 226 | - text-align: center; | |
| 330 | +#select-post-language .pll-select-flag { | |
| 331 | + padding: 4px; | |
| 332 | + margin-right: 10px; | |
| 227 | 333 | } |
| 228 | 334 | |
| 229 | -#select-post-language .pll-select-flag { | |
| 230 | - padding: 4px; | |
| 231 | - margin-right: 32px; | |
| 335 | +.rtl #select-post-language .pll-select-flag { | |
| 336 | + padding: 4px; | |
| 337 | + margin-right: 0px; | |
| 338 | + margin-left: 10px; | |
| 232 | 339 | } |
| 233 | 340 | |
| 234 | 341 | /* specific cases for media */ |
| 235 | 342 | #select-media-language .pll-select-flag { |
| @@ -312,8 +419,32 @@ | ||
| 312 | 419 | content: "\f326"; |
| 313 | 420 | top: 1px; |
| 314 | 421 | } |
| 315 | 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 | + | |
| 316 | 447 | /* Notices */ |
| 317 | 448 | .pll-notice.notice { |
| 318 | 449 | padding-right: 38px; |
| 319 | 450 | position: relative; |
| @@ -326,27 +457,52 @@ | ||
| 326 | 457 | .pll-notice .button { |
| 327 | 458 | margin-right: 10px; |
| 328 | 459 | } |
| 329 | 460 | |
| 330 | -/* Metaboxes holder in Strings translations screen */ | |
| 331 | -.languages_page_mlang_strings .metabox-holder > div { | |
| 332 | - display: flex; | |
| 461 | +/* Widgets */ | |
| 462 | +.polylang-language-switcher-widget-content { | |
| 463 | + width: 100%; | |
| 464 | + border-collapse: collapse; | |
| 333 | 465 | } |
| 334 | -.languages_page_mlang_strings .metabox-holder > div > div { | |
| 335 | - flex-grow: 1; | |
| 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. */ | |
| 336 | 470 | } |
| 337 | -.languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) { | |
| 338 | - margin-left: 1rem; | |
| 471 | +.polylang-language-switcher-widget-content th { | |
| 472 | + width: 10em; | |
| 473 | + padding: 0 10px 10px 0; | |
| 474 | + text-align: start; | |
| 339 | 475 | } |
| 340 | -.languages_page_mlang_strings .metabox-holder > div > div.closed { | |
| 341 | - border:0; | |
| 342 | - background: none; | |
| 476 | +body.rtl .polylang-language-switcher-widget-content th { | |
| 477 | + padding: 0 0 10px 10px; | |
| 343 | 478 | } |
| 344 | -.languages_page_mlang_strings .metabox-holder > div > div.closed .postbox-header{ | |
| 345 | - border: 1px solid #ccd0d4; | |
| 346 | - background: #fff; | |
| 479 | +.polylang-language-switcher-widget-content td { | |
| 480 | + padding: 0 0 10px 0; | |
| 347 | 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 | +} | |
| 348 | 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 | + | |
| 349 | 505 | @media screen and ( max-width: 782px ) { |
| 350 | 506 | /* settings */ |
| 351 | 507 | #wpbody-content .pll-settings .pll-configure > td { |
| 352 | 508 | padding: 20px; |
| @@ -386,16 +542,8 @@ | ||
| 386 | 542 | .translation textarea { |
| 387 | 543 | width: 95%; |
| 388 | 544 | } |
| 389 | 545 | |
| 390 | - /* Metaboxes holder in Strings translations screen */ | |
| 391 | - .languages_page_mlang_strings .metabox-holder > div { | |
| 392 | - flex-direction: column; | |
| 393 | - } | |
| 394 | - .languages_page_mlang_strings .metabox-holder > div > div:nth-child(2n) { | |
| 395 | - margin-left: 0; | |
| 396 | - } | |
| 397 | - | |
| 398 | 546 | /* hide selected language flag and translations language name */ |
| 399 | 547 | #select-add-term-language .pll-select-flag, |
| 400 | 548 | #select-edit-term-language .pll-select-flag, |
| 401 | 549 | #edit-term-translations .pll-language-name { |
| @@ -454,4 +602,5 @@ | ||
| 454 | 602 | font-size: 20px !important; |
| 455 | 603 | line-height: 20px !important; |
| 456 | 604 | } |
| 457 | 605 | } |
| 606 | + | |