From ce61a7f676c621cd4ac0756afd8e128aa5641a2b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sat, 3 Feb 2018 13:18:40 +0000 Subject: [PATCH] Administration: CSS coding standards: use double quotes for values that require quotes. As per the WordPress CSS coding standards, CSS properties with values that require quotes must use double quotes. Also fixes some indentation and spacing. Fixes #43220. git-svn-id: https://develop.svn.wordpress.org/trunk@42641 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 10 +++++----- src/wp-admin/css/customize-controls.css | 2 +- src/wp-admin/css/edit.css | 6 +++--- src/wp-admin/css/forms.css | 14 ++++++------- src/wp-admin/css/ie.css | 8 ++++---- src/wp-admin/css/themes.css | 12 +++++------ src/wp-includes/css/editor.css | 20 +++++++++---------- .../js/tinymce/skins/wordpress/wp-content.css | 12 +++++------ 8 files changed, 42 insertions(+), 42 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 0298dbdcb8..1803d96fdc 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1516,7 +1516,7 @@ div.error { .installed p:before, .button.updated-message:before { color: #79ba49; - content: '\f147'; + content: "\f147"; } /* Error icon. */ @@ -3134,7 +3134,7 @@ img { /* Styles for folder indicators/depth */ .tree-folder .tree-folder::after { - content: ' '; + content: ""; display: block; position: absolute; left: 2px; @@ -3143,7 +3143,7 @@ img { bottom: 10px; } .tree-folder > li::before { - content: ' '; + content: ""; position: absolute; display: block; border-left: 1px solid #ccc; @@ -3154,7 +3154,7 @@ img { border-bottom: 1px solid #ccc; } .tree-folder > li::after { - content: ' '; + content: ""; position: absolute; display: block; border-left: 1px solid #ccc; @@ -3952,7 +3952,7 @@ img { margin: 5px 0; } .options-media-php label[for*="_size_h"]:before { - content: ''; + content: ""; display: block; } .options-media-php br { diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css index b595e2a8da..b20c13760a 100644 --- a/src/wp-admin/css/customize-controls.css +++ b/src/wp-admin/css/customize-controls.css @@ -1444,7 +1444,7 @@ p.customize-section-description { } .customize-control-header .header-view.selected:after { - content: ''; + content: ""; position: absolute; height: auto; top: 0; diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index 5f49475f5f..9c7c257f53 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -214,7 +214,7 @@ ul.category-tabs li, /* Back-compat for pre-4.4 */ #category-adder h4 { - margin: 0; + margin: 0; } .taxonomy-add-new { @@ -1122,7 +1122,7 @@ p.popular-tags a { } .comment-ays .comment-content a[href]:after { - content: '(' attr( href ) ')'; + content: "(" attr( href ) ")"; display: inline-block; padding: 0 4px; color: #72777C; @@ -1135,7 +1135,7 @@ p.popular-tags a { } .comment-ays .comment-content p.edit-comment a[href]:after { - content: ''; + content: ""; padding: 0; } diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 0e499cfc4a..790bb97092 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -228,8 +228,8 @@ textarea[readonly] { } ::-moz-placeholder { - color: #72777c; - opacity: 1; + color: #72777c; + opacity: 1; } :-ms-input-placeholder { @@ -252,11 +252,11 @@ textarea[readonly] { /* Adjust error indicator for password layout */ .form-table .form-required.user-pass1-wrap.form-invalid td:after { - content: ''; + content: ""; } .form-table .form-required.user-pass1-wrap.form-invalid .password-input-wrapper:after { - content: '\f534'; + content: "\f534"; font: normal 20px/1 dashicons; color: #dc3232; margin: 0 6px 0 -29px; @@ -966,8 +966,8 @@ table.form-table td .updated p { } #request-filesystem-credentials-title { - font-size: 1.3em; - margin: 1em 0; + font-size: 1.3em; + margin: 1em 0; } .request-filesystem-credentials-form legend { @@ -1368,7 +1368,7 @@ table.form-table td .updated p { } @media only screen and (max-height: 480px), screen and (max-width: 450px) { - /* Request Credentials / File Editor Warning */ + /* Request Credentials / File Editor Warning */ .request-filesystem-credentials-dialog .notification-dialog, .file-editor-warning .notification-dialog { width: 100%; diff --git a/src/wp-admin/css/ie.css b/src/wp-admin/css/ie.css index e3dc91391e..ceb02a8594 100644 --- a/src/wp-admin/css/ie.css +++ b/src/wp-admin/css/ie.css @@ -639,7 +639,7 @@ input[type="password"], .mce-btn i.mce-i-wp_page, .mce-btn i.mce-i-hr, .mce-close { - font-family: 'tinymce', Arial; + font-family: tinymce, Arial; font-style: normal; font-weight: 400; font-variant: normal; @@ -650,12 +650,12 @@ input[type="password"], .mce-btn i.mce-i-wp_fullscreen, .qt-fullscreen { - -ie7-icon: '\e023'; + -ie7-icon: "\e023"; } .mce-btn i.mce-i-wp_more, .mce-btn i.mce-i-wp_page { - -ie7-icon: '\e027'; + -ie7-icon: "\e027"; } .mce-btn i.mce-i-wp_adv { @@ -664,7 +664,7 @@ input[type="password"], .mce-btn i.mce-i-help, .mce-btn i.mce-i-wp_help { - -ie7-icon: '\e016'; + -ie7-icon: "\e016"; } diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index eece216a98..0427328fb3 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -439,8 +439,8 @@ body.js .theme-browser.search-loading { .theme-overlay .theme-header .close:focus, .theme-overlay .theme-header .right:focus, .theme-overlay .theme-header .left:focus { - box-shadow: none; - outline: none; + box-shadow: none; + outline: none; } .theme-overlay .theme-header .left.disabled, @@ -1002,7 +1002,7 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap { } .theme-install.updated-message:before { - content: ''; + content: ""; } .theme-install-php .wp-filter { @@ -1532,8 +1532,8 @@ body.full-overlay-active { .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow, .wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow { - box-shadow: - 0 0 0 1px #5b9dd9, + box-shadow: + 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8); } @@ -1564,7 +1564,7 @@ body.full-overlay-active { .wp-full-overlay.collapsed .collapse-sidebar-arrow:before, .rtl .wp-full-overlay .collapse-sidebar-arrow:before { -webkit-transform: rotate(180.001deg); - transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ + transform: rotate(180.001deg); /* Firefox: promoting to its own layer to trigger anti-aliasing */ } .rtl .wp-full-overlay.collapsed .collapse-sidebar-arrow:before { diff --git a/src/wp-includes/css/editor.css b/src/wp-includes/css/editor.css index 0e042cf67f..51d9a9633e 100644 --- a/src/wp-includes/css/editor.css +++ b/src/wp-includes/css/editor.css @@ -189,7 +189,7 @@ div.mce-tab:focus { .mce-window .wp-help-th-center td:nth-child(odd), .mce-window .wp-help-th-center th:nth-child(odd) { - text-align: center; + text-align: center; } /* TinyMCE menus */ @@ -507,11 +507,11 @@ div.mce-path { /* mce listbox */ .mce-toolbar .mce-btn-group .mce-btn.mce-listbox { - border-radius: 0; - direction: ltr; - background: #fff; - border: 1px solid #ddd; - box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); + border-radius: 0; + direction: ltr; + background: #fff; + border: 1px solid #ddd; + box-shadow: inset 0 1px 1px -1px rgba(0, 0, 0, .2); } .mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover, @@ -575,7 +575,7 @@ div.mce-path { } .mce-menu .mce-menu-item.mce-disabled:hover { - background: #ccc; + background: #ccc; } /* Menubar */ @@ -776,11 +776,11 @@ div.mce-menu .mce-menu-item-sep, /* TinyMCE icons */ .mce-ico { - font-family: 'tinymce', Arial; + font-family: tinymce, Arial; } .mce-btn-small .mce-ico { - font-family: 'tinymce-small', Arial; + font-family: tinymce-small, Arial; } .mce-toolbar .mce-ico { @@ -1819,7 +1819,7 @@ div.wp-link-input input { } html:lang(he-il) .rtl .wp-switch-editor, -html:lang(he-il) .rtl .quicktags-toolbar input { +html:lang(he-il) .rtl .quicktags-toolbar input { font-family: Arial, sans-serif; } diff --git a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css index ed00770f00..7e7580fb5a 100644 --- a/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css +++ b/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css @@ -6,7 +6,7 @@ html { html.ios { width: 100px; - min-width: 100%; + min-width: 100%; } body { @@ -157,7 +157,7 @@ img[data-mce-selected]::selection { } .mce-content-body img[data-wp-more="nextpage"] { - background: transparent url( images/pagebreak.png ) repeat-y scroll center center; + background: transparent url( images/pagebreak.png ) repeat-y scroll center center; } /* Styles for formatting the boundaries of anchors and code elements */ @@ -254,7 +254,7 @@ a[data-wplink-url-error]:focus { } a[data-wplink-url-error]:before { - content: ''; + content: ""; display: block; position: absolute; top: -2px; @@ -367,9 +367,9 @@ a[data-wplink-url-error]:before { } .wpview-type-gallery:after { - content: ''; + content: ""; display: table; - clear: both; + clear: both; } .gallery img[data-mce-selected]:focus { @@ -489,7 +489,7 @@ img.wp-oembed { } .mce-content-body img.mce-wp-nextpage { - background-image: url( images/pagebreak-2x.png ); + background-image: url( images/pagebreak-2x.png ); background-size: 1900px 20px; } }