diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..7c14c41 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,6 @@ +{ + "extends": "stylelint-config-wordpress", + "rules": { + "font-weight-notation": "named-where-possible" + } +} diff --git a/dev-lib b/dev-lib index fd0b392..73fdbd2 160000 --- a/dev-lib +++ b/dev-lib @@ -1 +1 @@ -Subproject commit fd0b392c8b5e0867010965cac769d69744a36ccb +Subproject commit 73fdbd22c3f4ca527385c7e648dc48dae2405beb diff --git a/package.json b/package.json index f191771..d9ee505 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,9 @@ "grunt-cli": "^1.2.0", "grunt-contrib-qunit": "^1.2.0", "qunitjs": "1.18.0", - "sinon": "^1.8.2" + "sinon": "^1.8.2", + "stylelint": "^7.10.1", + "stylelint-config-wordpress": "^11.0.0", + "stylelint-formatter-compact": "^0.1.0" } } diff --git a/wp-admin/css/widgets/media-widgets.css b/wp-admin/css/widgets/media-widgets.css index 1299159..0cc815a 100644 --- a/wp-admin/css/widgets/media-widgets.css +++ b/wp-admin/css/widgets/media-widgets.css @@ -17,6 +17,7 @@ margin-left: 8px; width: auto; } + .media-widget-control:not(.selected) .media-widget-buttons .button, .media-widget-buttons .button:first-child { margin-left: 0; @@ -38,19 +39,24 @@ .media-widget-control .media-widget-preview { text-align: center; } + .media-widget-control .media-widget-preview .notice { text-align: initial; } + .media-frame .media-widget-embed-notice p code, .media-widget-control .notice p code { padding: 0 3px 0 0; } + .media-frame .media-widget-embed-notice { margin-top: 16px; } + .media-widget-control .media-widget-preview img { max-width: 100%; } + .media-widget-control .media-widget-preview .wp-video-shortcode { background: #000; } @@ -76,15 +82,15 @@ display: inline-block; min-height: 132px; width: 100%; - background: black; + background: #000; } .media-widget-video-link .dashicons { - font: normal 60px/1 'dashicons'; + font: normal 60px/1 dashicons; position: relative; width: 100%; top: -90px; - color: white; + color: #fff; text-decoration: none; } @@ -100,12 +106,15 @@ .wp-customizer div.mce-tooltip { z-index: 500100 !important; } + .wp-customizer .ui-autocomplete.wplink-autocomplete { z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */ } + .wp-customizer #wp-link-backdrop { z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */ } + .wp-customizer #wp-link-wrap { z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */ }