Revise and combine button selectors.
* Simplifies button selectors. Maintains backwards compatibility for several classes and makes creating new button styles considerably easier. * Adds buttons documentation. * Raw input submit/reset/button types now use default browser styles (instead of half-styled borders that did not look like buttons). * Moves basic button color standardization to the beginning of wp-admin. see #21598, #22197. git-svn-id: http://core.svn.wordpress.org/trunk@22239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -20,66 +20,6 @@ TABLE OF CONTENTS:
|
||||
1.0 - Left to Right Styles
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
html,
|
||||
.wp-dialog {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
* html input,
|
||||
* html .widget {
|
||||
border-color: #dfdfdf;
|
||||
}
|
||||
|
||||
textarea,
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="file"],
|
||||
input[type="button"],
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
select {
|
||||
border-color: #dfdfdf;
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
select {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
textarea:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="file"]:focus,
|
||||
input[type="button"]:focus,
|
||||
input[type="submit"].focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="url"]:focus,
|
||||
select:focus {
|
||||
border-color: #a1a1a1;
|
||||
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
|
||||
box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
kbd,
|
||||
code {
|
||||
background: #eaeaea;
|
||||
}
|
||||
|
||||
input[readonly] {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.find-box-search {
|
||||
border-color: #dfdfdf;
|
||||
background-color: #f1f1f1;
|
||||
|
||||
Reference in New Issue
Block a user