Changeset 29465
- Timestamp:
- 08/11/2014 04:41:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/forms.css
r29366 r29465 1 /* include margin and padding in the width calculation of input and textarea*/1 /* Include margin and padding in the width calculation of input and textarea. */ 2 2 input, 3 input[type="text"],4 input[type="password"],5 input[type="number"],6 input[type="search"],7 input[type="email"],8 input[type="url"],9 3 textarea { 10 4 -webkit-box-sizing: border-box; … … 37 31 min-width: 16px; 38 32 -webkit-appearance: none; 39 -webkit-box-sizing: border-box; 40 -moz-box-sizing: border-box; 41 box-sizing: border-box; 42 -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 43 box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); 33 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); 34 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); 44 35 -webkit-transition: .05s border-color ease-in-out; 45 36 transition: .05s border-color ease-in-out; … … 56 47 57 48 td > input[type="checkbox"], 58 .wp-admin p input[type= checkbox],59 .wp-admin p input[type= radio] {49 .wp-admin p input[type="checkbox"], 50 .wp-admin p input[type="radio"] { 60 51 margin-top: 0; 61 52 } 62 53 63 .wp-admin p label input[type= checkbox] {54 .wp-admin p label input[type="checkbox"] { 64 55 margin-top: -4px; 65 56 } 66 57 67 .wp-admin p label input[type= radio] {58 .wp-admin p label input[type="radio"] { 68 59 margin-top: -2px; 69 60 } 70 61 71 input[type= radio] {62 input[type="radio"] { 72 63 -webkit-border-radius: 50%; 73 64 border-radius: 50%; … … 76 67 } 77 68 78 input[type= checkbox]:checked:before,79 input[type= radio]:checked:before {69 input[type="checkbox"]:checked:before, 70 input[type="radio"]:checked:before { 80 71 float: left; 81 72 display: inline-block; … … 88 79 } 89 80 90 input[type= checkbox]:checked:before {81 input[type="checkbox"]:checked:before { 91 82 content: '\f147'; 92 83 margin: -3px 0 0 -4px; … … 94 85 } 95 86 96 input[type= radio]:checked:before {87 input[type="radio"]:checked:before { 97 88 content: '\2022'; 98 89 text-indent: -9999px; … … 107 98 } 108 99 109 input.readonly, textarea.readonly {110 background-color: #ddd;111 }112 113 100 @-moz-document url-prefix() { 114 input[type= checkbox],115 input[type= radio],101 input[type="checkbox"], 102 input[type="radio"], 116 103 .form-table input.tog { 117 104 margin-bottom: -1px; … … 156 143 } 157 144 158 input[type="text"],159 input[type="password"],160 input[type="number"],161 input[type="search"],162 input[type="email"],163 input[type="url"],164 textarea,165 select {166 outline: 0;167 }168 169 145 .wp-admin input[type="file"] { 170 146 padding: 3px 0; … … 190 166 } 191 167 192 textarea,193 168 input[type="text"], 194 169 input[type="password"], 170 input[type="checkbox"], 171 input[type="color"], 172 input[type="date"], 173 input[type="datetime"], 174 input[type="datetime-local"], 195 175 input[type="email"], 176 input[type="month"], 196 177 input[type="number"], 178 input[type="password"], 197 179 input[type="search"], 180 input[type="radio"], 198 181 input[type="tel"], 182 input[type="text"], 183 input[type="time"], 199 184 input[type="url"], 200 select { 185 input[type="week"], 186 select, 187 textarea { 201 188 border: 1px solid #ddd; 202 -webkit-box-shadow: inset 0 1px 2px rgba( 0,0,0,0.07);203 box-shadow: inset 0 1px 2px rgba( 0,0,0,0.07);189 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 190 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 204 191 background-color: #fff; 205 192 color: #333; 206 -webkit-transition: .05s border-color ease-in-out; 207 transition: .05s border-color ease-in-out; 208 } 209 210 select[disabled] { 211 color: #7f7f7f; 212 } 213 214 textarea:focus, 193 outline: none; 194 -webkit-transition: 0.05s border-color ease-in-out; 195 transition: 0.05s border-color ease-in-out; 196 } 197 215 198 input[type="text"]:focus, 216 199 input[type="password"]:focus, 200 input[type="color"]:focus, 201 input[type="date"]:focus, 202 input[type="datetime"]:focus, 203 input[type="datetime-local"]:focus, 217 204 input[type="email"]:focus, 205 input[type="month"]:focus, 218 206 input[type="number"]:focus, 207 input[type="password"]:focus, 219 208 input[type="search"]:focus, 220 209 input[type="tel"]:focus, 210 input[type="text"]:focus, 211 input[type="time"]:focus, 221 212 input[type="url"]:focus, 222 input[type=" checkbox"]:focus,223 input[type="radio"]:focus,224 select:focus {213 input[type="week"]:focus, 214 select:focus, 215 textarea:focus { 225 216 border-color: #5b9dd9; 226 -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); 227 box-shadow: 0 0 2px rgba(30,140,190,0.8); 228 } 229 230 input[readonly] { 217 -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 218 box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 219 } 220 221 input.readonly, 222 input[readonly], 223 textarea.readonly, 224 textarea[readonly] { 231 225 background-color: #eee; 232 226 } … … 252 246 input:disabled, 253 247 input.disabled, 248 select:disabled, 249 select.disabled, 254 250 textarea:disabled, 255 251 textarea.disabled { 256 -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); 257 box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); 258 border-color: rgba(222, 222, 222, .75); 259 background: rgba(255, 255, 255, .5); 260 color: rgba(51, 51, 51, .5); 261 } 262 263 input[type=checkbox]:disabled, 264 input[type=radio]:disabled, 265 input[type=checkbox]:disabled:checked:before, 266 input[type=radio]:disabled:checked:before { 252 background: rgba( 255, 255, 255, 0.5 ); 253 border-color: rgba( 222, 222, 222, 0.75 ); 254 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 255 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 256 color: rgba( 51, 51, 51, 0.5 ); 257 } 258 259 input[type="file"]:disabled, 260 input[type="file"].disabled, 261 input[type="range"]:disabled, 262 input[type="range"].disabled { 263 background: none; 264 -webkit-box-shadow: none; 265 box-shadow: none; 266 } 267 268 input[type="checkbox"]:disabled, 269 input[type="checkbox"].disabled, 270 input[type="radio"]:disabled, 271 input[type="radio"].disabled, 272 input[type="checkbox"]:disabled:checked:before, 273 input[type="checkbox"].disabled:checked:before, 274 input[type="radio"]:disabled:checked:before, 275 input[type="radio"].disabled:checked:before { 267 276 opacity: 0.7; 268 277 } … … 585 594 586 595 .form-table input.tog, 587 .form-table input[type= radio] {596 .form-table input[type="radio"] { 588 597 margin-top: -4px; 589 598 margin-right: 4px; … … 760 769 } 761 770 762 input[type=text], input[type= search],763 input[type=password], input[type= number] {771 input[type=text], input[type="search"], 772 input[type=password], input[type="number"] { 764 773 -webkit-appearance: none; 765 774 padding: 6px 10px; … … 771 780 } 772 781 773 input[type= checkbox], .widefat th input[type=checkbox] {782 input[type="checkbox"], .widefat th input[type="checkbox"] { 774 783 -webkit-appearance: none; 775 784 padding: 10px; 776 785 } 777 786 778 .widefat th input[type= checkbox] {787 .widefat th input[type="checkbox"] { 779 788 margin-bottom: 8px; 780 789 } 781 790 782 input[type= checkbox]:checked:before, .widefat th input[type=checkbox]:before {791 input[type="checkbox"]:checked:before, .widefat th input[type="checkbox"]:before { 783 792 font: normal 30px/1 'Dashicons'; 784 793 margin: -3px -5px; 785 794 } 786 795 787 input[type= radio],788 input[type= checkbox] {796 input[type="radio"], 797 input[type="checkbox"] { 789 798 height: 25px; 790 799 width: 25px; 791 800 } 792 801 793 .wp-admin p input[type= checkbox],794 .wp-admin p input[type= radio] {802 .wp-admin p input[type="checkbox"], 803 .wp-admin p input[type="radio"] { 795 804 margin-top: -3px; 796 805 } 797 806 798 input[type= radio]:checked:before {807 input[type="radio"]:checked:before { 799 808 vertical-align: middle; 800 809 width: 9px; … … 804 813 } 805 814 806 .wp-upload-form input[type= submit] {815 .wp-upload-form input[type="submit"] { 807 816 margin-top: 10px; 808 817 } … … 870 879 } 871 880 872 input[type=text].small-text, 873 input[type=search].small-text, 874 input[type=password].small-text, 875 input[type=number].small-text, 881 input[type="text"].small-text, 882 input[type="search"].small-text, 883 input[type="password"].small-text, 876 884 input[type="number"].small-text, 877 .form-table input[type=text].small-text { 885 input[type="number"].small-text, 886 .form-table input[type="text"].small-text { 878 887 width: auto; 879 888 max-width: 55px;
Note: See TracChangeset
for help on using the changeset viewer.