Ticket #47498: 47498.2.diff
File 47498.2.diff, 3.2 KB (added by , 4 years ago) |
---|
-
src/wp-admin/css/colors/_admin.scss
2 2 @import 'variables'; 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 { 7 10 background: $body-background; … … 30 33 31 34 /* Forms */ 32 35 33 input[type=checkbox]:checked: before {34 co lor: $form-checked;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"); 35 38 } 36 39 37 input[type=radio]:checked: before {40 input[type=radio]:checked::before { 38 41 background: $form-checked; 39 42 } 40 43 -
src/wp-admin/css/forms.css
77 77 cursor: pointer; 78 78 display: inline-block; 79 79 line-height: 0; 80 height: 1 6px;81 margin: - 4px 4px0 0;80 height: 1em; 81 margin: -0.25em 0.25em 0 0; 82 82 outline: 0; 83 83 padding: 0 !important; 84 84 text-align: center; 85 85 vertical-align: middle; 86 width: 1 6px;87 min-width: 1 6px;86 width: 1em; 87 min-width: 1em; 88 88 -webkit-appearance: none; 89 89 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); 90 90 transition: .05s border-color ease-in-out; … … 115 115 116 116 input[type="radio"] { 117 117 border-radius: 50%; 118 margin-right: 4px;118 margin-right: 0.25em; 119 119 line-height: 0.71428571; 120 120 } 121 121 122 input[type="checkbox"]:checked: before,123 input[type="radio"]:checked: before {122 input[type="checkbox"]:checked::before, 123 input[type="radio"]:checked::before { 124 124 float: left; 125 125 display: inline-block; 126 126 vertical-align: middle; 127 width: 16px; 128 font: normal 21px/1 dashicons; 127 width: 1em; 129 128 speak: none; 130 129 -webkit-font-smoothing: antialiased; 131 130 -moz-osx-font-smoothing: grayscale; 132 131 } 133 132 134 input[type="checkbox"]:checked:before { 135 content: "\f147"; 136 margin: -3px 0 0 -4px; 137 color: #1e8cbe; 133 input[type="checkbox"]:checked::before { 134 /* Use the "Yes" SVG Dashicon */ 135 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"); 136 margin: -0.1875em 0 0 -0.25em; 137 height: 1.3125em; 138 width: 1.3125em; 138 139 } 139 140 140 input[type="radio"]:checked:before { 141 content: "\2022"; 142 text-indent: -9999px; 143 border-radius: 50px; 144 font-size: 24px; 145 width: 6px; 146 height: 6px; 147 margin: 4px; 141 input[type="radio"]:checked::before { 142 content: ""; 143 border-radius: 50%; 144 width: 50%; 145 height: 50%; 146 margin: 25%; 148 147 line-height: 0.76190476; 149 148 background-color: #1e8cbe; 150 149 } … … 1274 1273 .widefat th input[type="checkbox"]:before, 1275 1274 .widefat thead td input[type="checkbox"]:before, 1276 1275 .widefat tfoot td input[type="checkbox"]:before { 1277 font: normal 30px/1 dashicons; 1276 width: 30px; 1277 height: 30px; 1278 1278 margin: -3px -5px; 1279 1279 } 1280 1280