From c4db2733df7fbb30f7dc9f1e62a0b21a81771ea9 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Mon, 21 Apr 2014 20:54:13 +0000 Subject: [PATCH] Don't allow disabled input styling to get lost in the cascade. props ocean90. see #27906 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28179 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/forms.css | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index c3ed8d21b2..14cfe850ca 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -75,24 +75,6 @@ input[type=radio] { line-height: 10px; } -input:disabled, -input.disabled, -textarea:disabled, -textarea.disabled { - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); - border-color: rgba(222, 222, 222, .75); - background: rgba(255, 255, 255, .5); - color: rgba(51, 51, 51, .5); -} - -input[type=checkbox]:disabled, -input[type=radio]:disabled, -input[type=checkbox]:disabled:checked:before, -input[type=radio]:disabled:checked:before { - opacity: 0.7; -} - input[type=checkbox]:checked:before, input[type=radio]:checked:before { float: left; @@ -268,6 +250,24 @@ input[readonly] { color: #666; } +input:disabled, +input.disabled, +textarea:disabled, +textarea.disabled { + -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); + box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); + border-color: rgba(222, 222, 222, .75); + background: rgba(255, 255, 255, .5); + color: rgba(51, 51, 51, .5); +} + +input[type=checkbox]:disabled, +input[type=radio]:disabled, +input[type=checkbox]:disabled:checked:before, +input[type=radio]:disabled:checked:before { + opacity: 0.7; +} + /*------------------------------------------------------------------------------ 2.0 - Forms ------------------------------------------------------------------------------*/