Ticket #28262: forms.patch
File forms.patch, 8.0 KB (added by , 11 years ago) |
---|
-
src/wp-admin/css/forms.css
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; 11 5 -moz-box-sizing: border-box; … … 36 30 width: 16px; 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; 46 37 } … … 55 46 } 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%; 74 65 margin-right: 4px; 75 66 line-height: 10px; 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; 82 73 vertical-align: middle; … … 87 78 -moz-osx-font-smoothing: grayscale; 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; 93 84 color: #1e8cbe; 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; 99 90 -webkit-border-radius: 50px; … … 106 97 background-color: #1e8cbe; 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; 118 105 } … … 156 143 line-height: 1.4; 157 144 } 158 145 159 input[type="text"],160 input[type="password"],161 input[type="number"],162 input[type="search"],163 input[type="email"],164 input[type="url"],165 textarea,166 select {167 outline: 0;168 }169 170 146 .wp-admin input[type="file"] { 171 147 padding: 3px 0; 172 148 } … … 190 166 padding: 4px 6px 1px 6px; 191 167 } 192 168 193 textarea,194 169 input[type="text"], 195 170 input[type="password"], 171 input[type="checkbox"], 172 input[type="color"], 173 input[type="date"], 174 input[type="datetime"], 175 input[type="datetime-local"], 196 176 input[type="email"], 177 input[type="month"], 197 178 input[type="number"], 179 input[type="password"], 198 180 input[type="search"], 181 input[type="radio"], 199 182 input[type="tel"], 183 input[type="text"], 184 input[type="time"], 200 185 input[type="url"], 201 select { 186 input[type="week"], 187 select, 188 textarea { 202 189 border: 1px solid #ddd; 203 -webkit-box-shadow: inset 0 1px 2px rgba( 0,0,0,0.07);204 box-shadow: inset 0 1px 2px rgba( 0,0,0,0.07);190 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 191 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.07 ); 205 192 background-color: #fff; 206 193 color: #333; 207 -webkit-transition: .05s border-color ease-in-out; 208 transition: .05s border-color ease-in-out; 209 } 210 211 select[disabled] { 212 color: #7f7f7f; 194 outline: none; 195 -webkit-transition: 0.05s border-color ease-in-out; 196 transition: 0.05s border-color ease-in-out; 213 197 } 214 198 215 textarea:focus,216 199 input[type="text"]:focus, 217 200 input[type="password"]:focus, 201 input[type="color"]:focus, 202 input[type="date"]:focus, 203 input[type="datetime"]:focus, 204 input[type="datetime-local"]:focus, 218 205 input[type="email"]:focus, 206 input[type="month"]:focus, 219 207 input[type="number"]:focus, 208 input[type="password"]:focus, 220 209 input[type="search"]:focus, 221 210 input[type="tel"]:focus, 211 input[type="text"]:focus, 212 input[type="time"]:focus, 222 213 input[type="url"]:focus, 223 input[type=" checkbox"]:focus,224 input[type="radio"]:focus,225 select:focus {214 input[type="week"]:focus, 215 select:focus, 216 textarea:focus { 226 217 border-color: #5b9dd9; 227 -webkit-box-shadow: 0 0 2px rgba( 30,140,190,0.8);228 box-shadow: 0 0 2px rgba( 30,140,190,0.8);218 -webkit-box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 219 box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 229 220 } 230 221 231 input[readonly] { 222 input.readonly, 223 input[readonly], 224 textarea.readonly, 225 textarea[readonly] { 232 226 background-color: #eee; 233 227 } 234 228 … … 252 246 253 247 input:disabled, 254 248 input.disabled, 249 select:disabled, 250 select.disabled, 255 251 textarea:disabled, 256 252 textarea.disabled { 257 -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); 258 box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); 259 border-color: rgba(222, 222, 222, .75); 260 background: rgba(255, 255, 255, .5); 261 color: rgba(51, 51, 51, .5); 262 } 263 264 input[type=checkbox]:disabled, 265 input[type=radio]:disabled, 266 input[type=checkbox]:disabled:checked:before, 267 input[type=radio]:disabled:checked:before { 253 background: rgba( 255, 255, 255, 0.5 ); 254 border-color: rgba( 222, 222, 222, 0.75 ); 255 -webkit-box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 256 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 ); 257 color: rgba( 51, 51, 51, 0.5 ); 258 } 259 260 input[type="file"]:disabled, 261 input[type="file"].disabled, 262 input[type="range"]:disabled, 263 input[type="range"].disabled { 264 background: none; 265 -webkit-box-shadow: none; 266 box-shadow: none; 267 } 268 269 input[type="checkbox"]:disabled, 270 input[type="checkbox"].disabled, 271 input[type="radio"]:disabled, 272 input[type="radio"].disabled, 273 input[type="checkbox"]:disabled:checked:before, 274 input[type="checkbox"].disabled:checked:before, 275 input[type="radio"]:disabled:checked:before, 276 input[type="radio"].disabled:checked:before { 268 277 opacity: 0.7; 269 278 } 270 279 … … 585 594 } 586 595 587 596 .form-table input.tog, 588 .form-table input[type= radio] {597 .form-table input[type="radio"] { 589 598 margin-top: -4px; 590 599 margin-right: 4px; 591 600 float: none; … … 760 769 -webkit-appearance: none; 761 770 } 762 771 763 input[type=text], input[type= search],764 input[type=password], input[type= number] {772 input[type=text], input[type="search"], 773 input[type=password], input[type="number"] { 765 774 -webkit-appearance: none; 766 775 padding: 6px 10px; 767 776 } … … 771 780 padding-top: 10px; 772 781 } 773 782 774 input[type= checkbox], .widefat th input[type=checkbox] {783 input[type="checkbox"], .widefat th input[type="checkbox"] { 775 784 -webkit-appearance: none; 776 785 padding: 10px; 777 786 } 778 787 779 .widefat th input[type= checkbox] {788 .widefat th input[type="checkbox"] { 780 789 margin-bottom: 8px; 781 790 } 782 791 783 input[type= checkbox]:checked:before, .widefat th input[type=checkbox]:before {792 input[type="checkbox"]:checked:before, .widefat th input[type="checkbox"]:before { 784 793 font: normal 30px/1 'Dashicons'; 785 794 margin: -3px -5px; 786 795 } 787 796 788 input[type= radio],789 input[type= checkbox] {797 input[type="radio"], 798 input[type="checkbox"] { 790 799 height: 25px; 791 800 width: 25px; 792 801 } 793 802 794 .wp-admin p input[type= checkbox],795 .wp-admin p input[type= radio] {803 .wp-admin p input[type="checkbox"], 804 .wp-admin p input[type="radio"] { 796 805 margin-top: -3px; 797 806 } 798 807 799 input[type= radio]:checked:before {808 input[type="radio"]:checked:before { 800 809 vertical-align: middle; 801 810 width: 9px; 802 811 height: 9px; … … 804 813 line-height: 16px; 805 814 } 806 815 807 .wp-upload-form input[type= submit] {816 .wp-upload-form input[type="submit"] { 808 817 margin-top: 10px; 809 818 } 810 819 … … 866 875 box-sizing: border-box; 867 876 } 868 877 869 input[type= text].small-text,870 input[type= search].small-text,871 input[type= password].small-text,872 input[type= number].small-text,878 input[type="text"].small-text, 879 input[type="search"].small-text, 880 input[type="password"].small-text, 881 input[type="number"].small-text, 873 882 input[type="number"].small-text, 874 .form-table input[type= text].small-text {883 .form-table input[type="text"].small-text { 875 884 width: auto; 876 885 max-width: 55px; 877 886 display: inline;