diff --git a/css/msls.css b/css/msls.css index a8c9b1f6..2b437baf 100644 --- a/css/msls.css +++ b/css/msls.css @@ -1 +1 @@ -div#msls.postbox label{margin-right:6px}div#msls.postbox select,select.msls-translations{width:226px}#msls.postbox .inside li{display:flex;align-items:center}#msls.postbox .inside li label{display:flex}#msls.postbox .inside li input.msls_title,#msls.postbox .inside li select{flex-grow:1}#msls-content-import .button-primary{margin:1em auto}.flag-icon{width:1.3333em!important;height:1em!important;vertical-align:middle;overflow:hidden;line-height:1!important;color:transparent}.msls-icon-wrapper{display:inline-flex;justify-content:center;align-items:center;text-align:center}.msls-icon-wrapper.flag{min-width:36px}.msls-icon-wrapper.label{min-width:48px}label .msls-icon-wrapper{text-align:left}#wpadminbar * .language-badge,#wpadminbar .language-badge,.language-badge{display:inline-block;min-width:32px;height:auto;padding:4px 6px;white-space:nowrap;font-size:10px;line-height:1;text-align:center;background-color:currentColor;border-radius:9px;user-select:none}#wpadminbar * .language-badge>span,#wpadminbar .language-badge>span,.language-badge>span{display:inline-block;vertical-align:top;margin:0 1px;font-size:10px;font-weight:600;text-transform:uppercase;color:#fff;text-align:center;line-height:1}#wpadminbar * .language-badge>span:nth-child( 2 ),#wpadminbar .language-badge>span:nth-child( 2 ),.language-badge>span:nth-child( 2 ){opacity:.5}.column-mslscol .language-badge{margin:0 1px!important}#wpadminbar * .language-badge,#wpadminbar .language-badge{position:relative;top:-1px;padding-top:3px;padding-bottom:3px;background-color:transparent;border:1px solid currentColor}#wpadminbar * .language-badge>span,#wpadminbar .language-badge>span{color:currentColor} \ No newline at end of file +div#msls.postbox label{margin-right:6px}div#msls.postbox select{width:100%}select.msls-translations{width:226px}#msls.postbox .inside li{display:flex;align-items:center}#msls.postbox .inside li label{display:flex}#msls.postbox .inside li input.msls_title,#msls.postbox .inside li select{flex-grow:1}#msls-content-import .button-primary{margin:1em auto}.flag-icon{width:1.3333em!important;height:1em!important;vertical-align:middle;overflow:hidden;line-height:1!important;color:transparent}.msls-icon-wrapper{display:inline-flex;justify-content:center;align-items:center;text-align:center}.msls-icon-wrapper.flag{min-width:36px}.msls-icon-wrapper.label{min-width:48px}label .msls-icon-wrapper{text-align:left}#wpadminbar * .language-badge,#wpadminbar .language-badge,.language-badge{display:inline-block;min-width:32px;height:auto;padding:4px 6px;white-space:nowrap;font-size:10px;line-height:1;text-align:center;background-color:currentColor;border-radius:9px;user-select:none}#wpadminbar * .language-badge>span,#wpadminbar .language-badge>span,.language-badge>span{display:inline-block;vertical-align:top;margin:0 1px;font-size:10px;font-weight:600;line-height:1;text-transform:uppercase;color:#fff;text-align:center}#wpadminbar * .language-badge>span:nth-child( 2 ),#wpadminbar .language-badge>span:nth-child( 2 ),.language-badge>span:nth-child( 2 ){opacity:.5}.column-mslscol .language-badge{margin:0 1px!important}#wpadminbar * .language-badge,#wpadminbar .language-badge{position:relative;top:-1px;padding-top:3px;padding-bottom:3px;background-color:transparent;border:1px solid currentColor}#wpadminbar * .language-badge>span,#wpadminbar .language-badge>span{color:currentColor} \ No newline at end of file diff --git a/css/msls.less b/css/msls.less index 7042b82a..101b2fa4 100644 --- a/css/msls.less +++ b/css/msls.less @@ -4,13 +4,13 @@ div#msls.postbox { margin-right: 6px; } select { - width: @select-width; + width: 100%; } } select.msls-translations { width: @select-width; } -#msls.postbox{ +#msls.postbox { .inside { li { display: flex; @@ -89,7 +89,6 @@ select.msls-translations { text-transform: uppercase; color: #fff; text-align: center; - line-height: 1; &:nth-child( 2 ) { opacity: 0.5; @@ -106,8 +105,6 @@ select.msls-translations { position: relative; top: -1px; - // margin-left: 4px; - // margin-right: 4px; padding-top: 3px; padding-bottom: 3px; diff --git a/includes/MslsMetaBox.php b/includes/MslsMetaBox.php index 399c87d5..004b17d9 100644 --- a/includes/MslsMetaBox.php +++ b/includes/MslsMetaBox.php @@ -187,7 +187,7 @@ public function render_select() { $icon = MslsAdminIcon::create()->set_language( $language )->set_icon_type( $iconType ); if ( $mydata->has_value( $language ) ) { - $icon->set_href( $mydata->$language ); + $icon->set_href( $mydata->$language ); } $selects = ''; @@ -203,6 +203,7 @@ public function render_select() { 'sort_column' => 'menu_order, post_title', 'echo' => 0, ]; + /** * Overrides the args for wp_dropdown_pages when using the HTML select in the MetaBox * diff --git a/includes/MslsPostTagClassic.php b/includes/MslsPostTagClassic.php index d1683e0a..6d3c4a2f 100644 --- a/includes/MslsPostTagClassic.php +++ b/includes/MslsPostTagClassic.php @@ -43,7 +43,7 @@ public function edit_input( $tag ): void { '; $item_format = ' - +