Changeset 46248
- Timestamp:
- 09/23/2019 04:50:17 PM (5 years ago)
- Location:
- trunk/src/wp-admin/css
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/colors/_admin.scss
r46241 r46248 3 3 @import 'mixins'; 4 4 5 @function url-friendly-colour( $color ) { 6 @return '%23' + str-slice( '#{ $color }', 2, -1 ); 7 } 5 8 6 9 body { … … 31 34 /* Forms */ 32 35 33 input[type=checkbox]:checked: before {34 co lor: $form-checked;35 } 36 37 input[type=radio]:checked: before {36 input[type=checkbox]:checked::before { 37 content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($form-checked)}%27%2F%3E%3C%2Fsvg%3E"); 38 } 39 40 input[type=radio]:checked::before { 38 41 background: $form-checked; 39 42 } -
trunk/src/wp-admin/css/forms.css
r46247 r46248 80 80 display: inline-block; 81 81 line-height: 0; 82 height: 1 6px;83 margin: - 4px 4px0 0;82 height: 1rem; 83 margin: -0.25rem 0.25rem 0 0; 84 84 outline: 0; 85 85 padding: 0 !important; 86 86 text-align: center; 87 87 vertical-align: middle; 88 width: 1 6px;89 min-width: 1 6px;88 width: 1rem; 89 min-width: 1rem; 90 90 -webkit-appearance: none; 91 91 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); … … 118 118 input[type="radio"] { 119 119 border-radius: 50%; 120 margin-right: 4px;120 margin-right: 0.25rem; 121 121 line-height: 0.71428571; 122 122 } 123 123 124 input[type="checkbox"]:checked: before,125 input[type="radio"]:checked: before {124 input[type="checkbox"]:checked::before, 125 input[type="radio"]:checked::before { 126 126 float: left; 127 127 display: inline-block; 128 128 vertical-align: middle; 129 width: 16px; 130 font: normal 21px/1 dashicons; 129 width: 1rem; 131 130 speak: none; 132 131 -webkit-font-smoothing: antialiased; … … 134 133 } 135 134 136 input[type="checkbox"]:checked: before {137 content: "\f147";138 margin: -3px 0 0 -4px;139 color: #1e8cbe;140 } 141 142 input[type="radio"]:checked:before { 143 content: "\2022"; 144 text-indent: -9999px; 145 border-radius: 50px;146 font-size: 24px;147 width: 6px;148 height: 6px;149 margin: 4px;135 input[type="checkbox"]:checked::before { 136 /* Use the "Yes" SVG Dashicon */ 137 content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%231e8cbe%27%2F%3E%3C%2Fsvg%3E"); 138 margin: -0.1875rem 0 0 -0.25rem; 139 height: 1.3125rem; 140 width: 1.3125rem; 141 } 142 143 input[type="radio"]:checked::before { 144 content: ""; 145 border-radius: 50%; 146 width: 50%; 147 height: 50%; 148 margin: 25%; 150 149 line-height: 0.76190476; 151 150 background-color: #1e8cbe; … … 1288 1287 .widefat tfoot td input[type="checkbox"] { 1289 1288 -webkit-appearance: none; 1290 padding: 10px;1291 1289 } 1292 1290 … … 1301 1299 .widefat thead td input[type="checkbox"]:before, 1302 1300 .widefat tfoot td input[type="checkbox"]:before { 1303 font: normal 30px/1 dashicons; 1304 margin: -3px -5px; 1301 width: 1.875rem; 1302 height: 1.875rem; 1303 margin: -0.1875rem -0.3125rem; 1305 1304 } 1306 1305 1307 1306 input[type="radio"], 1308 1307 input[type="checkbox"] { 1309 height: 25px;1310 width: 25px;1308 height: 1.5625rem; 1309 width: 1.5625rem; 1311 1310 } 1312 1311 1313 1312 .wp-admin p input[type="checkbox"], 1314 1313 .wp-admin p input[type="radio"] { 1315 margin-top: - 3px;1314 margin-top: -0.1875rem; 1316 1315 } 1317 1316 1318 1317 input[type="radio"]:checked:before { 1319 1318 vertical-align: middle; 1320 width: 9px;1321 height: 9px;1322 margin: 7px;1319 width: 0.5625rem; 1320 height: 0.5625rem; 1321 margin: 0.4375rem; 1323 1322 line-height: 0.76190476; 1324 1323 }
Note: See TracChangeset
for help on using the changeset viewer.