first commit

This commit is contained in:
2025-02-24 22:33:42 +01:00
commit 737c037e85
18358 changed files with 5392983 additions and 0 deletions

View File

@@ -0,0 +1,459 @@
/* languages admin panel */
#add-lang select {
width: 95%;
}
#add-lang label {
margin: 0.35em 0 0.5em;
}
.pll-legend {
display: block;
padding: 2px 0;
color: #1d2327;
font-weight: 400;
text-shadow: none;
margin: 0.35em 0 0.5em;
}
.column-locale,
.languages .column-slug {
width : 15%
}
.column-default_lang {
width : 5%;
}
.column-term_group,
.column-flag, .column-count {
width : 10%;
}
td.column-default_lang .icon-default-lang:before,
.pll-wizard-content .icon-default-lang:before {
font-family: 'dashicons';
content: "\f155";
}
.pll-icon:before{
display: inline-block;
text-align: left;
width: 15px;
}
.pll-circle:before{
content: "\25cf";
}
/* about Polylang metabox */
#pll-about-box p,
#pll-recommended p {
text-align: justify;
}
#pll-about-box input {
margin: 0;
padding: 0;
float: right;
}
/* strings translation table */
.stringstranslations .column-name,
.stringstranslations .column-context {
width: 10%;
}
.stringstranslations .column-string {
width: 33%;
}
.translation label {
display: inline-block;
width: 23%;
vertical-align: top;
}
.translation {
display: flex; /* fix #691 to remove default margin bottom */
}
@media screen and (max-width: 782px) { /* reset default display property for small device */
.translation{
display: block;
}
}
.translation textarea{
display: block; /* fix #691 to remove default margin bottom */
}
.translation input,
.translation textarea {
width: 72%;
box-sizing: border-box; /* to be sure field don't overrun outside their wrapper */
margin-bottom: 4px; /* fix #691 set the same margin bottom for both textarea and input tags */
}
/* settings */
.pll-settings {
margin-top: 20px;
}
.pll-settings .plugin-title {
width: 25%;
}
#wpbody-content .pll-settings .pll-configure tr {
display: table-row;
}
#wpbody-content .pll-settings .pll-configure td {
display: table-cell;
}
#wpbody-content .pll-settings .pll-configure > td {
padding: 20px 20px 20px 40px;
}
.pll-configure legend {
font-size: 14px;
font-weight: 600;
margin-bottom: 0.5em;
}
.pll-configure td .description {
margin-top: 2px;
margin-bottom: 0.5em;
}
.pll-configure p.submit {
margin-top: 20px;
}
.pll-configure .button {
margin-right: 20px;
}
.pll-configure fieldset {
margin-bottom: 1.5em;
}
.pll-inline-block-list {
margin: 0;
}
.pll-inline-block-list li {
display: inline-block;
margin: 0;
width: 250px;
}
/* settings URL modifications */
#pll-domains-table td {
padding: 2px 2px 2px 1.5em;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
}
.pll-settings-url-col {
display: inline-block;
width: 49%;
vertical-align: top;
}
/* settings Activation keys */
.pll-table-top td {
vertical-align: top;
}
#pll-licenses-table label {
font-size: 1em;
font-weight: 600;
}
.pll-configure .pll-deactivate-license {
margin: 0 0 0 20px;
}
/* language columns in edit.php and edit-tags.php */
.wp-list-table th[class*='column-language_'],
.wp-list-table td[class*='column-language_'] {
width: 1.5em;
box-sizing: content-box; /* Override ACF 5.9.0 styles */
}
/* Text direction in post.php and edit-tags.php */
.pll-dir-rtl textarea,
.pll-dir-rtl input[type="text"] {
direction: rtl;
}
.pll-dir-ltr textarea,
.pll-dir-ltr input[type="text"] {
direction: ltr;
}
.pll-dir-ltr .tr_lang,
.pll-dir-rtl .tr_lang {
direction: inherit;
}
/* languages metabox in post.php */
#ml_box p {
margin-top: 1em;
}
#post-translations p {
float: left;
margin-top: 1em;
}
.rtl #post-translations p {
float: right;
}
#post-translations table {
table-layout: fixed;
width: 100%;
clear: both;
}
#post-translations a {
text-decoration: none;
}
#post-translations .pll-language-column,
#post-translations .pll-column-icon {
width: 20px;
}
#post-translations .tr_lang {
width: 100%;
}
#post-translations td {
padding: 2px;
}
#post-translations .spinner,
#term-translations .spinner {
float: none;
margin: 0;
background-position: center;
width: auto;
}
#select-post-language .pll-select-flag {
padding: 4px;
margin-right: 10px;
}
.rtl #select-post-language .pll-select-flag {
padding: 4px;
margin-right: 0px;
margin-left: 10px;
}
/* specific cases for media */
#select-media-language .pll-select-flag {
padding: 4px;
margin-right: 10px;
}
.pll-media-edit-column {
float: right;
}
/* language and translations in edit-tags.php */
.pll-translation-flag { /* also for media */
margin-right: 14px;
}
#select-add-term-language .pll-select-flag {
padding: 11px;
margin-right: 13px;
}
#select-edit-term-language .pll-select-flag {
padding: 11px;
margin-right: 4px;
}
#term-translations p {
/* same style as label */
font-weight: 400;
font-style: normal;
padding: 2px;
color: #23282d;
}
#add-term-translations,
#edit-term-translations {
width: 95%;
}
#term-translations .pll-language-column {
line-height: 28px;
width: 20%;
}
#term-translations .pll-edit-column,
#add-term-translations .pll-language-column {
width: 20px;
}
#edit-term-translations .pll-language-column {
padding: 15px 10px;
font-weight: normal;
}
/* icon fonts */
.pll_icon_add:before {
content: "\f132";
}
.pll_icon_edit:before {
content: "\f464";
}
[class^="pll_icon_"] {
font: 20px/1 'dashicons';
vertical-align: middle;
}
/* admin bar */
#wpadminbar #wp-admin-bar-languages .ab-item img {
margin: 0 8px 0 2px;
}
#wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
float: none;
top: 4px;
}
#wpadminbar #wp-admin-bar-languages .ab-icon:before {
content: "\f326";
top: 1px;
}
#wp-admin-bar-languages.pll-filtered-languages {
background: #a03f3f;
}
#wpadminbar #wp-admin-bar-languages.pll-filtered-languages span.ab-label{ /* Enforce white color for WordPress admin light theme. */
color: #fff;
}
/* Notices */
.pll-notice.notice {
padding-right: 38px;
position: relative;
}
.pll-notice a.notice-dismiss {
text-decoration: none;
}
.pll-notice .button {
margin-right: 10px;
}
@media screen and ( max-width: 782px ) {
/* settings */
#wpbody-content .pll-settings .pll-configure > td {
padding: 20px;
}
#wpbody-content .pll-settings #cb {
padding: 20px 9px;
}
/* settings URL modifications */
.pll-inline-block {
width: auto;
}
.pll-settings-url-col {
display: block;
width: 100%;
}
/* settings licenses */
#wpbody-content .pll-settings #pll-licenses-table td {
display: block;
}
.pll-configure .pll-deactivate-license {
margin: 10px 0 5px;
}
/* strings translations table */
.translation label {
display: block;
width: 95%;
padding-left: 0;
}
.translation input,
.translation textarea {
width: 95%;
}
/* hide selected language flag and translations language name */
#select-add-term-language .pll-select-flag,
#select-edit-term-language .pll-select-flag,
#edit-term-translations .pll-language-name {
display: none;
}
#edit-term-translations {
width: 100%;
}
#add-term-translations .pll-language-column {
line-height: 38px;
}
#edit-term-translations td {
padding: 8px 10px;
}
#edit-term-translations .pll-language-column,
#edit-term-translations .pll-edit-column {
width: 20px;
}
/* translations tables should be kept as table */
.term-translations .pll-language-column,
.term-translations .pll-edit-column,
.term-translations .pll-translation-column {
display: table-cell;
}
.term-translations .hidden {
display: none;
}
/* admin bar */
#wpadminbar #wp-admin-bar-languages {
display: block; /*shows our menu on mobile devices */
}
#wpadminbar #wp-admin-bar-languages > .ab-item {
width: 50px;
text-align: center;
}
#wpadminbar #wp-admin-bar-languages > .ab-item .ab-icon:before {
font: 32px/1 'dashicons';
top: -1px;
}
#wpadminbar #wp-admin-bar-languages > .ab-item img {
margin: 19px 0;
}
#wpadminbar #wp-admin-bar-languages #wp-admin-bar-all .ab-item .ab-icon {
margin-right: 6px;
font-size: 20px !important;
line-height: 20px !important;
}
}

View File

@@ -0,0 +1,85 @@
/* By default Polylang dialog box use WordPress jQuery UI dialog styles.
However WooCommerce loads its own jQuery UI dialog styles and we need to override them by ours
to revert to the default WordPress ones.
*/
.pll-confirmation-modal.ui-widget,
.pll-confirmation-modal.ui-widget .ui-widget,
.pll-confirmation-modal .ui-widget {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
}
.pll-confirmation-modal.ui-dialog {
padding: 0;
z-index: 100102;
background: #fff;
border: 0;
color: #444;
border-radius: 0; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
}
.ui-dialog.pll-confirmation-modal .ui-dialog-titlebar {
background: #fcfcfc;
border-radius: 0;
border: 0;
border-bottom: 1px solid #dfdfdf;
height: 36px;
font-size: 18px;
font-weight: 600;
line-height: 2;
padding: 0 36px 0 16px;
color: #444;
position: static;
}
.ui-dialog.pll-confirmation-modal .ui-dialog-title {
float: none;
width: auto;
margin: 0;
}
.pll-confirmation-modal .ui-widget-header .ui-icon {
background: none;
position: static;
}
.pll-confirmation-modal .ui-button.ui-dialog-titlebar-close {
padding: 0;
margin: 0;
top: 0;
right: 0;
width: 36px;
height: 36px;
border: 0; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
background: none; /* Override WooCommerce dialog styles - jQuery UI 1.11.4 - WP < 5.6 */
}
.ui-dialog.pll-confirmation-modal .ui-dialog-content {
border: 0;
padding: 16px;
color: #444;
position: static;
box-sizing: border-box;
}
.ui-dialog.pll-confirmation-modal .ui-dialog-buttonpane{
margin: 0;
padding: 16px;
border: 0;
background: #fcfcfc;
border-top: 1px solid #dfdfdf;
}
.ui-dialog.pll-confirmation-modal .ui-dialog-buttonpane .ui-button{
margin: 0 0 0 16px;
padding: 0 10px 1px;
background: #f7f7f7;
border: 1px solid #cccccc;
border-radius: 3px;
position: static;
line-height: 2;
vertical-align: top;
}
.ui-dialog.pll-confirmation-modal .ui-button:hover,
.ui-dialog.pll-confirmation-modal .ui-button:focus {
background: #fafafa;
border-color: #999;
color: #23282d;
}
.pll-confirmation-modal + .ui-widget-overlay {
background: #000;
opacity: 0.7;
z-index: 100101;
}

View File

@@ -0,0 +1,239 @@
/* Greatly modified version of the jquery-ui.css */
.ui-widget-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.ui-menu {
list-style: none;
padding: 0;
margin: 0;
display: block;
outline: none;
}
.ui-menu .ui-menu {
position: absolute;
}
.ui-menu .ui-menu-item {
position: relative;
margin: 0;
padding: 3px 1em 3px .4em;
cursor: pointer;
min-height: 0; /* support: IE7 */
/* support: IE10, see #8844 */
list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}
/* for jQuery UI 1.12 which introduces a wrapper */
.ui-menu .ui-menu-item:not([role]) {
padding: 0;
}
.ui-menu-item-wrapper {
padding: 3px 1em 3px 2em;
}
.rtl .ui-menu .ui-menu-item {
text-align: right;
}
/* icon support */
.ui-menu-icons {
position: relative;
}
.ui-menu-icons .ui-menu-item[role] {
padding-left: 2em;
}
.rtl .ui-menu-item-wrapper, /* for jQuery UI 1.12 which introduces a wrapper */
.rtl .ui-menu-icons .ui-menu-item[role] {
padding-left: 1em;
padding-right: 2em;
}
/* left-aligned */
.ui-selectmenu-text .ui-icon,
.ui-menu .ui-icon {
position: absolute;
top: 0;
bottom: 0;
left: .3em;
margin: auto 0;
}
.rtl .ui-selectmenu-text .ui-icon,
.rtl .ui-menu .ui-icon {
right: .3em;
left: auto;
}
/* right-aligned */
.ui-menu .ui-menu-icon {
left: auto;
right: 0;
}
.ui-selectmenu-menu {
padding: 0;
margin: 0;
position: absolute;
top: 0;
left: 0;
display: none;
}
.ui-selectmenu-menu .ui-menu {
overflow: auto;
/* Support: IE7 */
overflow-x: hidden;
padding-bottom: 1px;
}
.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
font-size: 1em;
font-weight: bold;
line-height: 23px;
padding: 2px 0.4em;
margin: 0.5em 0 0 0;
height: auto;
border: 0;
}
.ui-selectmenu-open {
display: block;
}
.ui-selectmenu-button, /* jQuery UI 1.11.4 - WP < 5.6 */
.ui-selectmenu-button.ui-button {
display: inline-block;
overflow: hidden;
position: relative;
text-decoration: none;
box-sizing: border-box; /* To keep width calculation in percent since WP 5.6 */
text-align: left;
white-space: nowrap;
vertical-align: top;
padding: 0;
line-height: normal; /* Override WC Bookings styles with WP < 5.6 */
height: 28px; /* Override WC Bookings styles with WP < 5.6 */
}
.ui-selectmenu-button span.ui-icon {
right: 0.5em;
left: auto;
position: absolute;
top: 26%;
width: 16px;
height: 16px;
text-indent: 0; /* due to text-indent for jquery ui-dialog in wizard */
background: none;
}
.rtl .ui-selectmenu-button span.ui-icon {
left: 0.5em;
right: auto;
}
.ui-selectmenu-button.ui-widget span.ui-selectmenu-text, /* Override WC Bookings styles with WP < 5.6 */
.ui-selectmenu-button span.ui-selectmenu-text {
text-align: left;
padding: 0.1em 2.1em 0.2em 2em;
display: block;
line-height: 23px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
}
.rtl .ui-selectmenu-button span.ui-selectmenu-text {
text-align: right;
padding: 0.2em 2em 0.2em 2.1em;
}
.ui-widget-content,
.ui-state-default,
.ui-selectmenu-button.ui-state-default, /* Override WC Bookings styles with WP < 5.6 */
.ui-button.ui-selectmenu-button-closed, /* To be compatible jQuery UI 1.12.1 since WordPress 5.6 */
.ui-button.ui-selectmenu-button-open, /* To be compatible jQuery UI 1.12.1 since WordPress 5.6 */
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
background: #fff;
border: 1px solid #ddd;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
color: #32373c;
}
/* Override to have same styles as WP form styles since WordPress 5.4 */
.toplevel_page_mlang .ui-selectmenu-button.ui-state-default,
.toplevel_page_mlang .ui-selectmenu-button.ui-selectmenu-button-closed, /* To be compatible jQuery UI 1.12.1 since WordPress 5.6 */
.toplevel_page_mlang .ui-selectmenu-button.ui-selectmenu-button-open{ /* To be compatible jQuery UI 1.12.1 since WordPress 5.6 */
box-shadow: 0 0 0 transparent;
border-radius: 4px;
border: 1px solid #7e8993;
}
/* From this line and below: override WooCommerce bookings plugin styles which overrides default WordPress styles */
.pll-selectmenu-menu .ui-widget,
.pll-selectmenu-button.ui-widget {
font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.toplevel_page_mlang .ui-button.ui-selectmenu-button:focus{
color: #016087; /* Same color as WordPress focused select HTML tag */
border-color: #007cba;
box-shadow: 0 0 0 1px #007cba;
outline: 2px solid transparent;
background: #fff; /* Override bookings plugin styles which overrides default WordPress styles */
}
.toplevel_page_mlang .ui-menu-item,
.toplevel_page_mlang .ui-widget-content .ui-state-hover,
.toplevel_page_mlang .ui-widget-content .ui-state-focus,
.toplevel_page_mlang .ui-widget-content .ui-state-active {
color: #016087; /* Same color as option in a WordPress focused select HTML tag */
margin: 0;
}
.ui-selectmenu-open .ui-widget-content .ui-state-hover, /* Override WC Bookings styles with WP < 5.6 */
.ui-selectmenu-open .ui-widget-content .ui-state-focus, /* Override WC Bookings styles with WP < 5.6 */
.ui-selectmenu-open .ui-widget-content .ui-state-active, /* Override WC Bookings styles with WP < 5.6 */
.pll-selectmenu-menu .ui-widget-content .ui-state-hover,
.pll-selectmenu-menu .ui-widget-content .ui-state-focus,
.pll-selectmenu-menu .ui-widget-content .ui-state-active { /* To be compatible jQuery UI 1.12.1 since WordPress 5.6 */
background: #d5d5d5;
border: 0;
}
.ui-selectmenu-button.ui-state-focus {
border: 1px solid #5b9dd9;
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
}
.ui-icon-triangle-1-s:before {
content: "";
background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 0px top 55%;
background-size: 16px 16px;
box-sizing: border-box;
position: absolute;
width: 16px;
height: 16px;
}
.pll-selectmenu-button.ui-button:hover,
.pll-wizard .ui-button:hover,
.pll-wizard .ui-button:focus {
background: #fff; /* To override jQuery ui-dialog styles provided by WordPress */
}
.ui-widget-content {
max-height: 231px;
box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
}