Ticket #47477: 47477.7.diff
File 47477.7.diff, 15.5 KB (added by , 5 years ago) |
---|
-
src/wp-admin/css/edit.css
419 419 } 420 420 421 421 #timestampdiv select { 422 height: 21px;423 line-height: 1.16666666;424 padding: 0;425 422 vertical-align: top; 426 423 font-size: 12px; 424 line-height: 1.66666666; /* 20px */ 427 425 } 428 426 429 427 #aa, #jj, #hh, #mn { 430 padding: 1px;428 padding: 6px 1px; 431 429 font-size: 12px; 430 line-height: 1.16666666; /* 14px */ 432 431 } 433 432 434 433 #jj, #hh, #mn { … … 494 493 } 495 494 496 495 #timestampdiv input { 497 border-width: 1px;498 border-style: solid;499 496 text-align: center; 500 497 } 501 498 -
src/wp-admin/css/forms.css
1 1 /* Include margin and padding in the width calculation of input and textarea. */ 2 2 input, 3 textarea { 3 select, 4 textarea, 5 button { 4 6 box-sizing: border-box; 7 font-family: inherit; 8 font-size: inherit; 9 font-weight: inherit; 5 10 } 6 11 12 textarea, 13 input { 14 font-size: 14px; 15 } 16 17 textarea { 18 overflow: auto; 19 padding: 2px 6px; 20 /* inherits font size 14px */ 21 line-height: 1.42857143; /* 20px */ 22 resize: vertical; 23 } 24 25 label { 26 cursor: pointer; 27 } 28 29 input, 30 select { 31 margin: 1px; 32 } 33 34 textarea.code { 35 padding: 4px 6px 1px 6px; 36 } 37 7 38 input[type="text"], 8 39 input[type="password"], 9 input[type="checkbox"],10 40 input[type="color"], 11 41 input[type="date"], 12 42 input[type="datetime"], … … 15 45 input[type="month"], 16 46 input[type="number"], 17 47 input[type="search"], 18 input[type="radio"],19 48 input[type="tel"], 20 input[type="text"],21 49 input[type="time"], 22 50 input[type="url"], 23 51 input[type="week"], 24 52 select, 25 53 textarea { 26 padding: 6px 8px;27 54 box-shadow: 0 0 0 transparent; 28 transition: box-shadow 0.1s linear;29 55 border-radius: 4px; 30 56 border: 1px solid #7e8993; 31 57 background-color: #fff; 32 58 color: #32373c; 33 outline: none;34 59 } 35 60 61 input[type="text"], 62 input[type="password"], 63 input[type="date"], 64 input[type="datetime"], 65 input[type="datetime-local"], 66 input[type="email"], 67 input[type="month"], 68 input[type="number"], 69 input[type="search"], 70 input[type="tel"], 71 input[type="time"], 72 input[type="url"], 73 input[type="week"] { 74 padding: 0 8px; 75 /* inherits font size 14px */ 76 line-height: 2; /* 28px */ 77 } 78 79 ::-webkit-datetime-edit { 80 /* inherits font size 14px */ 81 line-height: 1.85714286; /* 26px */ 82 } 83 36 84 input[type="text"]:focus, 37 85 input[type="password"]:focus, 38 86 input[type="color"]:focus, … … 44 92 input[type="number"]:focus, 45 93 input[type="search"]:focus, 46 94 input[type="tel"]:focus, 47 input[type="text"]:focus,48 95 input[type="time"]:focus, 49 96 input[type="url"]:focus, 50 97 input[type="week"]:focus, … … 64 111 direction: ltr; 65 112 } 66 113 67 /* Vertically align the number selector with the input. */68 input[type="number"] {69 min-height: 28px;70 line-height: 1;71 }72 73 114 input[type="checkbox"], 74 115 input[type="radio"] { 75 116 border: 1px solid #7e8993; 117 border-radius: 4px; 76 118 background: #fff; 77 119 color: #555; 78 120 clear: none; … … 118 160 input[type="radio"] { 119 161 border-radius: 50%; 120 162 margin-right: 0.25rem; 163 /* 10px not sure if still necessary, comes from the MP6 redesign in r26072 */ 121 164 line-height: 0.71428571; 122 165 } 123 166 … … 146 189 width: 0.5rem; /* 8px */ 147 190 height: 0.5rem; /* 8px */ 148 191 margin: 0.1875rem; /* 3px */ 149 line-height: 0.76190476;150 192 background-color: #1e8cbe; 193 /* 16px not sure if still necessary, comes from the MP6 redesign in r26072 */ 194 line-height: 1.14285714; 151 195 } 152 196 153 197 @-moz-document url-prefix() { … … 167 211 display: none; 168 212 } 169 213 170 .ie8 input[type="password"] {171 font-family: sans-serif;172 }173 174 textarea,175 input,176 select,177 button {178 font-family: inherit;179 font-size: inherit;180 font-weight: inherit;181 }182 183 textarea,184 input,185 select {186 font-size: 14px;187 padding: 3px 5px;188 }189 190 textarea {191 overflow: auto;192 padding: 2px 6px;193 line-height: 1.4;194 resize: vertical;195 }196 197 214 .wp-admin input[type="file"] { 198 215 padding: 3px 0; 199 216 cursor: pointer; 200 217 } 201 218 202 label {203 cursor: pointer;204 }205 206 input,207 select {208 margin: 1px;209 padding: 3px 5px;210 }211 212 input.code {213 padding-top: 6px;214 }215 216 textarea.code {217 line-height: 1.4;218 padding: 4px 6px 1px 6px;219 }220 221 219 input.readonly, 222 220 input[readonly], 223 221 textarea.readonly, … … 309 307 310 308 /* Select styles are based on the default button in buttons.css */ 311 309 .wp-admin select { 310 font-size: 13px; 311 line-height: 1.38461538; /* 18px */ 312 312 color: #555; 313 313 border-color: #7e8993; 314 314 box-shadow: none; 315 315 border-radius: 3px; 316 padding: 2px 24px 2px 8px;316 padding: 3px 24px 3px 8px; 317 317 min-height: 28px; 318 318 vertical-align: middle; 319 319 -webkit-appearance: none; 320 320 /* The SVG is arrow-down-alt2 from Dashicons. */ 321 background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 4px top 50%;321 background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%; 322 322 background-size: 16px 16px; 323 cursor: pointer; 323 324 } 324 325 325 326 .wp-admin select:hover { … … 350 351 transform: none; 351 352 } 352 353 354 /* Reset Firefox inner outline that appears on :focus. */ 355 /* This ruleset overrides the color change on :focus thus needs to be after select:focus. */ 356 .wp-admin select:-moz-focusring { 357 color: transparent; 358 text-shadow: 0 0 0 #016087; 359 } 360 361 /* Remove background focus style from IE11 while keeping focus style available on option elements. */ 362 .wp-admin select::-ms-value { 363 background: transparent; 364 color: #555; 365 } 366 367 .wp-admin select:hover::-ms-value { 368 color: #007cba; 369 } 370 371 .wp-admin select:focus::-ms-value { 372 color: #016087; 373 } 374 375 .wp-admin select.disabled::-ms-value, 376 .wp-admin select:disabled::-ms-value { 377 color: #a0a5aa; 378 } 379 380 /* Hide the native down arrow for select element on IE. */ 381 .wp-admin select::-ms-expand { 382 display: none; 383 } 384 353 385 .wp-admin .button-cancel { 386 display: inline-block; 387 min-height: 28px; 354 388 padding: 0 5px; 355 389 line-height: 2; 356 390 } … … 361 395 362 396 .wp-admin select[multiple] { 363 397 height: auto; 398 padding-right: 8px; 399 background: #fff; 364 400 } 365 401 366 402 .submit { … … 416 452 417 453 input.small-text { 418 454 width: 50px; 419 padding: 1px6px;455 padding: 0 6px; 420 456 } 421 457 422 458 input[type="number"].small-text { … … 450 486 max-width: 12.5rem; 451 487 } 452 488 453 .ie8 .tablenav .actions select {454 width: 9.6875rem;455 }456 457 .ie8 .tablenav .actions select#cat {458 width: 12.5rem;459 }460 461 489 #timezone_string option { 462 490 margin-left: 1em; 463 491 } … … 590 618 .tablenav .search-plugins input[name="s"], 591 619 .tagsdiv .newtag { 592 620 float: left; 593 height: 28px;594 621 margin: 0 4px 0 0; 595 622 } 596 623 … … 597 624 .js.plugins-php .search-box .wp-filter-search { 598 625 margin: 0; 599 626 width: 280px; 600 font-size: 16px;601 font-weight: 300;602 line-height: 1.5;603 padding: 3px 5px;604 height: 32px;605 627 } 606 628 607 629 input[type="text"].ui-autocomplete-loading, … … 952 974 953 975 .options-general-php input.small-text { 954 976 width: 56px; 977 margin: -2px 0; 955 978 } 956 979 957 980 .options-general-php .spinner { … … 1188 1211 } 1189 1212 1190 1213 .privacy_requests .next_steps .button { 1191 height: auto;1192 line-height: 1.5;1193 padding: 4px 10px;1194 1214 word-break: break-all; 1195 1215 white-space: unset; 1196 1216 } … … 1242 1262 } 1243 1263 1244 1264 .wp-privacy-request-form input { 1245 line-height: 1.5;1246 1265 margin: 0; 1247 1266 } 1248 1267 … … 1278 1297 } 1279 1298 1280 1299 input[type="text"], 1300 input[type="password"], 1301 input[type="date"], 1302 input[type="datetime"], 1303 input[type="datetime-local"], 1281 1304 input[type="email"], 1305 input[type="month"], 1306 input[type="number"], 1282 1307 input[type="search"], 1283 input[type="password"], 1284 input[type="number"] { 1308 input[type="tel"], 1309 input[type="time"], 1310 input[type="url"], 1311 input[type="week"] { 1285 1312 -webkit-appearance: none; 1286 padding: 6px 10px;1313 padding: 3px 10px; 1287 1314 } 1288 1315 1289 input[type="number"]{1290 min-height: 40px;1316 ::-webkit-datetime-edit { 1317 line-height: 1.875; /* 30px */ 1291 1318 } 1292 1319 1293 input.code {1294 padding-bottom: 5px;1295 padding-top: 10px;1296 }1297 1298 1320 input[type="checkbox"], 1299 1321 .widefat th input[type="checkbox"], 1300 1322 .widefat thead td input[type="checkbox"], … … 1340 1362 margin-top: 10px; 1341 1363 } 1342 1364 1343 #wpbodyselect {1344 min-height: 36px;1365 .wp-admin select { 1366 min-height: 40px; 1345 1367 font-size: 16px; 1368 line-height: 1.625; /* 26px */ 1369 padding: 5px 24px 5px 8px; 1346 1370 } 1347 1371 1348 1372 .wp-admin .button-cancel { 1349 padding: 0; 1373 margin-bottom: 0; 1374 padding: 2px 0; 1350 1375 font-size: 14px; 1376 vertical-align: middle; 1351 1377 } 1352 1378 1353 1379 #adduser .form-field input, … … 1397 1423 .form-table span.description, 1398 1424 #profile-page .form-table textarea { 1399 1425 width: 100%; 1400 font-size: 16px;1401 line-height: 1.5;1402 padding: 7px 10px;1403 1426 display: block; 1404 1427 max-width: none; 1405 1428 box-sizing: border-box; … … 1410 1433 margin: -30px 3px 0 0; 1411 1434 } 1412 1435 1413 #wpbody .form-table td select {1414 min-height: 40px;1415 }1416 1417 1436 input[type="text"].small-text, 1418 1437 input[type="search"].small-text, 1419 1438 input[type="password"].small-text, … … 1443 1462 } 1444 1463 1445 1464 p.search-box input[name="s"] { 1446 height: auto;1447 1465 float: none; 1448 1466 width: 100%; 1449 1467 margin-bottom: 10px; 1450 1468 vertical-align: middle; 1451 -webkit-appearance: none;1452 1469 } 1453 1470 1454 1471 p.search-box input[type="submit"] { -
src/wp-admin/css/list-tables.css
622 622 623 623 .tablenav-pages .current-page { 624 624 margin: 0 2px 0 0; 625 padding-top: 5px;626 padding-bottom: 5px;627 625 font-size: 13px; 628 626 text-align: center; 629 627 } … … 950 948 .inline-edit-row fieldset.inline-edit-date label { 951 949 display: inline-block; 952 950 margin: 0; 953 line-height: 1.5;954 951 vertical-align: baseline; 952 line-height: 2; 955 953 } 956 954 957 955 .inline-edit-row fieldset label.inline-edit-tags { … … 975 973 padding: 0; 976 974 } 977 975 978 .inline-edit-row fieldset.inline-edit-date select {979 margin: 1px;980 line-height: 2;981 }982 983 976 .inline-edit-row fieldset label span.input-text-wrap, 984 977 .inline-edit-row fieldset .timestamp-wrap { 985 978 display: block; … … 1039 1032 1040 1033 .inline-edit-row fieldset input[name=jj], 1041 1034 .inline-edit-row fieldset input[name=hh], 1042 .inline-edit-row fieldset input[name=mn] { 1043 font-size: 12px; 1044 width: 2.3em; 1045 } 1046 1035 .inline-edit-row fieldset input[name=mn], 1047 1036 .inline-edit-row fieldset input[name=aa] { 1048 1037 font-size: 12px; 1049 width: 3.5em; 1038 line-height: 1.16666666; 1039 vertical-align: middle; 1040 text-align: center; 1041 padding: 6px 4px; 1050 1042 } 1051 1043 1052 1044 .inline-edit-row fieldset label input.inline-edit-password-input { … … 1988 1980 margin-left: 0; 1989 1981 } 1990 1982 1991 .inline-edit-row fieldset input[name=jj],1992 .inline-edit-row fieldset input[name=hh],1993 .inline-edit-row fieldset input[name=mn] {1994 width: 3em;1995 }1996 1997 .inline-edit-row fieldset input[name=aa] {1998 width: 4.5em;1999 }2000 2001 1983 .inline-edit-row .inline-edit-or { 2002 1984 margin: 0 6px 0 0; 2003 1985 } -
src/wp-admin/css/login.css
273 273 .login input[type="text"], 274 274 .login input[type="password"] { 275 275 font-size: 24px; 276 line-height: 1.16666666; /* 28px */ 276 277 width: 100%; 277 278 padding: 5px; 278 279 margin: 3px 6px 16px 0; -
src/wp-includes/css/buttons.css
80 80 .wp-core-ui .button-group.button-small .button { 81 81 min-height: 24px; 82 82 line-height: 2; 83 padding: 0 8px 1px;83 padding: 0 8px; 84 84 font-size: 11px; 85 85 } 86 86 … … 92 92 padding: 0 36px; 93 93 } 94 94 95 /* Only visible in Windows High Contrast mode */96 .wp-core-ui .button:active,97 .wp-core-ui .button:focus {98 outline: 2px solid transparent;99 /* Reset inherited offset from Gutenberg */100 outline-offset: 0;101 }102 103 95 .wp-core-ui .button.hidden { 104 96 display: none; 105 97 } … … 135 127 136 128 .wp-core-ui .button.hover, 137 129 .wp-core-ui .button:hover, 138 .wp-core-ui .button-secondary:hover, 139 .wp-core-ui .button.focus, 140 .wp-core-ui .button:focus, 141 .wp-core-ui .button-secondary:focus { 130 .wp-core-ui .button-secondary:hover{ 142 131 background: #f1f1f1; 143 132 border-color: #016087; 144 133 color: #016087; … … 151 140 border-color: #007cba; 152 141 color: #016087; 153 142 box-shadow: 0 0 0 1px #007cba; 143 /* Only visible in Windows High Contrast mode */ 144 outline: 2px solid transparent; 145 /* Reset inherited offset from Gutenberg */ 146 outline-offset: 0; 154 147 } 155 148 156 149 .wp-core-ui .button.active, … … 339 332 input#publish, 340 333 input#save-post, 341 334 a.preview { 342 padding: 6px 14px;343 line-height: normal;335 padding: 1px 14px; 336 line-height: 2; 344 337 font-size: 14px; 345 338 vertical-align: middle; 346 339 height: auto; -
src/wp-includes/css/media-views.css
34 34 line-height: 1.2; 35 35 } 36 36 37 .media-frame input,38 .media-frame textarea {39 padding: 6px 8px;40 }41 42 .media-frame select,43 .wp-admin .media-frame select {44 min-height: 28px;45 vertical-align: middle;46 }47 48 37 .media-frame a { 49 38 border-bottom: none; 50 39 color: #0073aa; … … 77 66 color: #fff; 78 67 } 79 68 69 .media-frame input, 70 .media-frame textarea { 71 padding: 6px 8px; 72 } 73 74 .media-frame select, 75 .wp-admin .media-frame select { 76 min-height: 28px; 77 vertical-align: middle; 78 } 79 80 80 .media-frame input[type="text"], 81 81 .media-frame input[type="password"], 82 .media-frame input[type="color"], 83 .media-frame input[type="date"], 84 .media-frame input[type="datetime"], 85 .media-frame input[type="datetime-local"], 86 .media-frame input[type="email"], 87 .media-frame input[type="month"], 82 88 .media-frame input[type="number"], 83 89 .media-frame input[type="search"], 84 .media-frame input[type="email"], 90 .media-frame input[type="tel"], 91 .media-frame input[type="time"], 85 92 .media-frame input[type="url"], 93 .media-frame input[type="week"], 86 94 .media-frame textarea, 87 95 .media-frame select { 88 padding: 6px 8px;89 96 box-shadow: 0 0 0 transparent; 90 transition: box-shadow 0.1s linear;97 border-radius: 4px; 91 98 border: 1px solid #7e8993; 92 border-radius: 4px; 99 background-color: #fff; 100 color: #32373c; 93 101 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 94 font-size: 1 2px;102 font-size: 13px; 95 103 } 96 104 105 .media-frame input[type="text"], 106 .media-frame input[type="password"], 107 .media-frame input[type="date"], 108 .media-frame input[type="datetime"], 109 .media-frame input[type="datetime-local"], 110 .media-frame input[type="email"], 111 .media-frame input[type="month"], 112 .media-frame input[type="number"], 113 .media-frame input[type="search"], 114 .media-frame input[type="tel"], 115 .media-frame input[type="time"], 116 .media-frame input[type="url"], 117 .media-frame input[type="week"] { 118 padding: 0 8px; 119 /* inherits font size 13px */ 120 line-height: 2.15384615; /* 28px */ 121 } 122 97 123 .media-frame input[type="text"]:focus, 98 124 .media-frame input[type="password"]:focus, 99 125 .media-frame input[type="number"]:focus, … … 807 833 * Search 808 834 */ 809 835 .media-frame .search { 810 margin-top: 1 1px;836 margin-top: 10px; 811 837 padding: 4px; 812 838 font-size: 13px; 813 839 color: #444; … … 1075 1101 .attachments-browser .media-toolbar-primary > .media-button-group, 1076 1102 .attachments-browser .media-toolbar-secondary > .media-button, 1077 1103 .attachments-browser .media-toolbar-secondary > .media-button-group { 1078 margin: 1 1px 0;1104 margin: 10px 0; 1079 1105 } 1080 1106 1081 1107 .attachments-browser .attachments {