Skip to content

Commit

Permalink
CSS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Dec 31, 2023
1 parent f099a87 commit 7b265a7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion css/msls.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions css/msls.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -89,7 +89,6 @@ select.msls-translations {
text-transform: uppercase;
color: #fff;
text-align: center;
line-height: 1;

&:nth-child( 2 ) {
opacity: 0.5;
Expand All @@ -106,8 +105,6 @@ select.msls-translations {
position: relative;
top: -1px;

// margin-left: 4px;
// margin-right: 4px;
padding-top: 3px;
padding-bottom: 3px;

Expand Down
3 changes: 2 additions & 1 deletion includes/MslsMetaBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand All @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsPostTagClassic.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function edit_input( $tag ): void {
</tr>';

$item_format = '<tr class="form-field">
<th scope="row" valign="top">
<th scope="row">
<label for="msls_input_%1$s">%2$s</label></th>
<td>
<select class="msls-translations" name="msls_input_%1$s">
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsTaxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct() {
}

/**
* @uses get_post_types
* @uses get_taxonomies
* @return string[]
*/
public static function get(): array {
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"scripts": {
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"uglify": "uglifyjs js/msls.js > js/msls.min.js",
"less": "lessc css/msls.less css/msls.css --clean-css=\"--s1 --advanced\"",
"build": "npm run uglify && npm run less"
},
"dependencies": {
"less": "^4.1.2",
"less": "^4.2.0",
"less-plugin-clean-css": "^1.5.1",
"uglify-js": "^3.14.5",
"vuepress": "^1.9.7"
"uglify-js": "^3.17.4"
}
}

0 comments on commit 7b265a7

Please sign in to comment.