wp/wp-admin/css/forms.css
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    18 	overflow: auto;
    18 	overflow: auto;
    19 	padding: 2px 6px;
    19 	padding: 2px 6px;
    20 	/* inherits font size 14px */
    20 	/* inherits font size 14px */
    21 	line-height: 1.42857143; /* 20px */
    21 	line-height: 1.42857143; /* 20px */
    22 	resize: vertical;
    22 	resize: vertical;
    23 }
       
    24 
       
    25 label {
       
    26 	cursor: pointer;
       
    27 }
    23 }
    28 
    24 
    29 input,
    25 input,
    30 select {
    26 select {
    31 	margin: 0 1px;
    27 	margin: 0 1px;
   285 	color: rgba(44, 51, 56, 0.5);
   281 	color: rgba(44, 51, 56, 0.5);
   286 }
   282 }
   287 
   283 
   288 input[type="file"]:disabled,
   284 input[type="file"]:disabled,
   289 input[type="file"].disabled,
   285 input[type="file"].disabled,
       
   286 input[type="file"][aria-disabled="true"],
   290 input[type="range"]:disabled,
   287 input[type="range"]:disabled,
   291 input[type="range"].disabled {
   288 input[type="range"].disabled,
       
   289 input[type="range"][aria-disabled="true"] {
   292 	background: none;
   290 	background: none;
   293 	box-shadow: none;
   291 	box-shadow: none;
   294 	cursor: default;
   292 	cursor: default;
   295 }
   293 }
   296 
   294 
   297 input[type="checkbox"]:disabled,
   295 input[type="checkbox"]:disabled,
   298 input[type="checkbox"].disabled,
   296 input[type="checkbox"].disabled,
       
   297 input[type="checkbox"][aria-disabled="true"],
   299 input[type="radio"]:disabled,
   298 input[type="radio"]:disabled,
   300 input[type="radio"].disabled,
   299 input[type="radio"].disabled,
       
   300 input[type="radio"][aria-disabled="true"],
   301 input[type="checkbox"]:disabled:checked:before,
   301 input[type="checkbox"]:disabled:checked:before,
   302 input[type="checkbox"].disabled:checked:before,
   302 input[type="checkbox"].disabled:checked:before,
   303 input[type="radio"]:disabled:checked:before,
   303 input[type="radio"]:disabled:checked:before,
   304 input[type="radio"].disabled:checked:before {
   304 input[type="radio"].disabled:checked:before {
   305 	opacity: 0.7;
   305 	opacity: 0.7;
       
   306 	cursor: default;
   306 }
   307 }
   307 
   308 
   308 /*------------------------------------------------------------------------------
   309 /*------------------------------------------------------------------------------
   309   2.0 - Forms
   310   2.0 - Forms
   310 ------------------------------------------------------------------------------*/
   311 ------------------------------------------------------------------------------*/
   354 	text-shadow: 0 1px 0 #fff;
   355 	text-shadow: 0 1px 0 #fff;
   355 	cursor: default;
   356 	cursor: default;
   356 	transform: none;
   357 	transform: none;
   357 }
   358 }
   358 
   359 
       
   360 .wp-core-ui select[aria-disabled="true"] {
       
   361 	cursor: default;
       
   362 }
       
   363 
   359 /* Reset Firefox inner outline that appears on :focus. */
   364 /* Reset Firefox inner outline that appears on :focus. */
   360 /* This ruleset overrides the color change on :focus thus needs to be after select:focus. */
   365 /* This ruleset overrides the color change on :focus thus needs to be after select:focus. */
   361 .wp-core-ui select:-moz-focusring {
   366 .wp-core-ui select:-moz-focusring {
   362 	color: transparent;
   367 	color: transparent;
   363 	text-shadow: 0 0 0 #0a4b78;
   368 	text-shadow: 0 0 0 #0a4b78;
   545 	margin: 0 0 1em;
   550 	margin: 0 0 1em;
   546 }
   551 }
   547 
   552 
   548 .wp-generate-pw {
   553 .wp-generate-pw {
   549 	margin-top: 1em;
   554 	margin-top: 1em;
       
   555 	position: relative;
       
   556 }
       
   557 
       
   558 .wp-pwd button {
       
   559 	height: min-content;
       
   560 }
       
   561 
       
   562 .wp-pwd button.pwd-toggle .dashicons {
       
   563 	position: relative;
       
   564 	top: 0.25rem;
   550 }
   565 }
   551 
   566 
   552 .wp-pwd {
   567 .wp-pwd {
   553 	margin-top: 1em;
   568 	margin-top: 1em;
       
   569 	position: relative;
       
   570 }
       
   571 
       
   572 .mailserver-pass-wrap .wp-pwd {
       
   573 	display: inline-block;
       
   574 	margin-top: 0;
       
   575 }
       
   576 
       
   577 /* rtl:ignore */
       
   578 #mailserver_pass {
       
   579 	padding-right: 2.5rem;
       
   580 }
       
   581 
       
   582 /* rtl:ignore */
       
   583 .mailserver-pass-wrap .button.wp-hide-pw {
       
   584 	background: transparent;
       
   585 	border: 1px solid transparent;
       
   586 	box-shadow: none;
       
   587 	font-size: 14px;
       
   588 	line-height: 2;
       
   589 	width: 2.5rem;
       
   590 	min-width: 40px;
       
   591 	margin: 0;
       
   592 	padding: 0 9px;
       
   593 	position: absolute;
       
   594 	right: 0;
       
   595 	top: 0;
       
   596 }
       
   597 
       
   598 .mailserver-pass-wrap .button.wp-hide-pw:hover {
       
   599 	background: transparent;
       
   600 	border-color: transparent;
       
   601 }
       
   602 
       
   603 .mailserver-pass-wrap .button.wp-hide-pw:focus {
       
   604 	background: transparent;
       
   605 	border-color: #3582c4;
       
   606 	border-radius: 4px;
       
   607 	box-shadow: 0 0 0 1px #3582c4;
       
   608 	/* Only visible in Windows High Contrast mode */
       
   609 	outline: 2px solid transparent;
       
   610 }
       
   611 
       
   612 .mailserver-pass-wrap .button.wp-hide-pw:active {
       
   613 	background: transparent;
       
   614 	box-shadow: none;
       
   615 	transform: none;
   554 }
   616 }
   555 
   617 
   556 #misc-publishing-actions label {
   618 #misc-publishing-actions label {
   557 	vertical-align: baseline;
   619 	vertical-align: baseline;
   558 }
   620 }
   591 	background-color: #b8e6bf;
   653 	background-color: #b8e6bf;
   592 	border-color: #68de7c;
   654 	border-color: #68de7c;
   593 	opacity: 1;
   655 	opacity: 1;
   594 }
   656 }
   595 
   657 
       
   658 .password-input-wrapper {
       
   659 	display: inline-block;
       
   660 }
       
   661 
   596 .password-input-wrapper input {
   662 .password-input-wrapper input {
   597 	font-family: Consolas, Monaco, monospace;
   663 	font-family: Consolas, Monaco, monospace;
   598 }
   664 }
   599 
   665 
   600 #pass1.short, #pass1-text.short {
   666 #pass1.short, #pass1-text.short {
   609 	border-color: #f0c33c;
   675 	border-color: #f0c33c;
   610 }
   676 }
   611 
   677 
   612 #pass1.strong, #pass1-text.strong {
   678 #pass1.strong, #pass1-text.strong {
   613 	border-color: #68de7c;
   679 	border-color: #68de7c;
       
   680 }
       
   681 
       
   682 #pass1:focus,
       
   683 #pass1-text:focus {
       
   684 	box-shadow: 0 0 0 2px #2271b1;
       
   685 	/* Only visible in Windows High Contrast mode */
       
   686 	outline: 2px solid transparent;
   614 }
   687 }
   615 
   688 
   616 .pw-weak {
   689 .pw-weak {
   617 	display: none;
   690 	display: none;
   618 }
   691 }
   645 .show-password #pass1-text {
   718 .show-password #pass1-text {
   646 	display: inline-block;
   719 	display: inline-block;
   647 }
   720 }
   648 
   721 
   649 p.search-box {
   722 p.search-box {
       
   723 	display: flex;
       
   724 	flex-wrap: wrap;
       
   725 	align-items: center;
       
   726 	column-gap: 0.5rem;
       
   727 	position: relative;
   650 	float: right;
   728 	float: right;
   651 	margin: 0;
   729 	margin: 11px 0;
   652 }
   730 }
   653 
   731 
   654 .network-admin.themes-php p.search-box {
   732 .network-admin.themes-php p.search-box {
   655 	clear: left;
   733 	clear: left;
   656 }
   734 }
   669 
   747 
   670 input[type="text"].ui-autocomplete-loading,
   748 input[type="text"].ui-autocomplete-loading,
   671 input[type="email"].ui-autocomplete-loading {
   749 input[type="email"].ui-autocomplete-loading {
   672 	background-image: url(../images/loading.gif);
   750 	background-image: url(../images/loading.gif);
   673 	background-repeat: no-repeat;
   751 	background-repeat: no-repeat;
   674 	background-position: right center;
   752 	background-position: right 5px center;
   675 	visibility: visible;
   753 	visibility: visible;
   676 }
   754 }
   677 
   755 
   678 input.ui-autocomplete-input.open {
   756 input.ui-autocomplete-input.open {
   679 	border-bottom-color: transparent;
   757 	border-bottom-color: transparent;
   714 	color: #fff;
   792 	color: #fff;
   715 	/* Only visible in Windows High Contrast mode */
   793 	/* Only visible in Windows High Contrast mode */
   716 	outline: 2px solid transparent;
   794 	outline: 2px solid transparent;
   717 }
   795 }
   718 
   796 
       
   797 .button-add-site-icon {
       
   798 	width: 100%;
       
   799 	cursor: pointer;
       
   800 	text-align: center;
       
   801 	border: 1px dashed #c3c4c7;
       
   802 	box-sizing: border-box;
       
   803 	padding: 9px 0;
       
   804 	line-height: 1.6;
       
   805 	max-width: 270px;
       
   806 }
       
   807 
       
   808 .button-add-site-icon:focus,
       
   809 .button-add-site-icon:hover {
       
   810 	background: #fff;
       
   811 }
       
   812 
       
   813 .site-icon-section .favicon-preview {
       
   814 	float: left;
       
   815 }
       
   816 .site-icon-section .app-icon-preview {
       
   817 	float: left;
       
   818 	margin: 0 20px;
       
   819 }
       
   820 
       
   821 .site-icon-section .site-icon-preview img {
       
   822 	max-width: 100%;
       
   823 }
       
   824 
       
   825 .button-add-site-icon:focus {
       
   826 	background-color: #fff;
       
   827 	border-color: #3582c4;
       
   828 	border-style: solid;
       
   829 	box-shadow: 0 0 0 1px #3582c4;
       
   830 	outline: 2px solid transparent;
       
   831 }
       
   832 
   719 /*------------------------------------------------------------------------------
   833 /*------------------------------------------------------------------------------
   720   15.0 - Comments Screen
   834   15.0 - Comments Screen
   721 ------------------------------------------------------------------------------*/
   835 ------------------------------------------------------------------------------*/
   722 
   836 
   723 .form-table {
   837 .form-table {
   774 	margin-top: 1em;
   888 	margin-top: 1em;
   775 }
   889 }
   776 
   890 
   777 .form-table p.timezone-info {
   891 .form-table p.timezone-info {
   778 	margin: 1em 0;
   892 	margin: 1em 0;
       
   893 	display: flex;
       
   894 	flex-direction: column;
       
   895 }
       
   896 
       
   897 #local-time {
       
   898 	margin-top: 0.5em;
   779 }
   899 }
   780 
   900 
   781 .form-table td fieldset label {
   901 .form-table td fieldset label {
   782 	margin: 0.35em 0 0.5em !important;
   902 	margin: 0.35em 0 0.5em !important;
   783 	display: inline-block;
   903 	display: inline-block;
   852 .color-option.selected {
   972 .color-option.selected {
   853 	background: #dcdcde;
   973 	background: #dcdcde;
   854 }
   974 }
   855 
   975 
   856 .color-palette {
   976 .color-palette {
       
   977 	display: table;
   857 	width: 100%;
   978 	width: 100%;
   858 	border-spacing: 0;
   979 	border-spacing: 0;
   859 	border-collapse: collapse;
   980 	border-collapse: collapse;
   860 }
   981 }
       
   982 .color-palette .color-palette-shade,
   861 .color-palette td {
   983 .color-palette td {
       
   984 	display: table-cell;
   862 	height: 20px;
   985 	height: 20px;
   863 	padding: 0;
   986 	padding: 0;
   864 	border: none;
   987 	border: none;
   865 }
   988 }
   866 
   989 
   883 }
  1006 }
   884 
  1007 
   885 #application-passwords-section .notice {
  1008 #application-passwords-section .notice {
   886 	margin-top: 20px;
  1009 	margin-top: 20px;
   887 	margin-bottom: 0;
  1010 	margin-bottom: 0;
       
  1011 	word-wrap: break-word;
   888 }
  1012 }
   889 
  1013 
   890 .application-password-display input.code {
  1014 .application-password-display input.code {
   891 	width: 19em;
  1015 	width: 19em;
   892 }
  1016 }
  1060 	float: none;
  1184 	float: none;
  1061 	margin: -3px 3px 0;
  1185 	margin: -3px 3px 0;
  1062 }
  1186 }
  1063 
  1187 
  1064 .settings-php .language-install-spinner,
  1188 .settings-php .language-install-spinner,
  1065 .options-general-php .language-install-spinner {
  1189 .options-general-php .language-install-spinner,
       
  1190 .user-edit-php .language-install-spinner,
       
  1191 .profile-php .language-install-spinner {
  1066 	display: inline-block;
  1192 	display: inline-block;
  1067 	float: none;
  1193 	float: none;
  1068 	margin: -3px 5px 0;
  1194 	margin: -3px 5px 0;
  1069 	vertical-align: middle;
  1195 	vertical-align: middle;
  1070 }
  1196 }
  1071 
  1197 
       
  1198 .form-table.permalink-structure .available-structure-tags {
       
  1199 	margin-top: 8px;
       
  1200 }
       
  1201 
       
  1202 .form-table.permalink-structure .available-structure-tags ul {
       
  1203 	display: flex;
       
  1204 	flex-wrap: wrap;
       
  1205 	margin: 8px 0 0;
       
  1206 }
       
  1207 
  1072 .form-table.permalink-structure .available-structure-tags li {
  1208 .form-table.permalink-structure .available-structure-tags li {
  1073 	float: left;
  1209 	margin: 6px 5px 0 0;
  1074 	margin-right: 5px;
  1210 }
       
  1211 
       
  1212 .form-table.permalink-structure .available-structure-tags li:last-child {
       
  1213 	margin-right: 0;
       
  1214 }
       
  1215 
       
  1216 .form-table.permalink-structure .structure-selection .row {
       
  1217 	margin-bottom: 16px;
       
  1218 }
       
  1219 
       
  1220 .form-table.permalink-structure .structure-selection .row > div {
       
  1221 	max-width: calc(100% - 24px);
       
  1222 	display: inline-flex;
       
  1223 	flex-direction: column;
       
  1224 }
       
  1225 
       
  1226 .form-table.permalink-structure .structure-selection .row label {
       
  1227 	font-weight: 600;
       
  1228 }
       
  1229 
       
  1230 .form-table.permalink-structure .structure-selection .row p {
       
  1231 	margin-top: 0;
  1075 }
  1232 }
  1076 
  1233 
  1077 /*------------------------------------------------------------------------------
  1234 /*------------------------------------------------------------------------------
  1078   21.0 - Network Admin
  1235   21.0 - Network Admin
  1079 ------------------------------------------------------------------------------*/
  1236 ------------------------------------------------------------------------------*/
  1103 }
  1260 }
  1104 
  1261 
  1105 #search-users,
  1262 #search-users,
  1106 #search-sites {
  1263 #search-sites {
  1107 	max-width: 60%;
  1264 	max-width: 60%;
       
  1265 }
       
  1266 
       
  1267 .configuration-rules-label {
       
  1268 	font-weight: 600;
       
  1269 	margin-bottom: 4px;
  1108 }
  1270 }
  1109 
  1271 
  1110 /*------------------------------------------------------------------------------
  1272 /*------------------------------------------------------------------------------
  1111    Credentials check dialog for Install and Updates
  1273    Credentials check dialog for Install and Updates
  1112 ------------------------------------------------------------------------------*/
  1274 ------------------------------------------------------------------------------*/
  1481 
  1643 
  1482 	.export-filters li {
  1644 	.export-filters li {
  1483 		margin-bottom: 0;
  1645 		margin-bottom: 0;
  1484 	}
  1646 	}
  1485 
  1647 
       
  1648 	.form-table .color-palette .color-palette-shade,
  1486 	.form-table .color-palette td {
  1649 	.form-table .color-palette td {
  1487 		display: table-cell;
  1650 		display: table-cell;
  1488 		width: 15px;
  1651 		width: 15px;
  1489 	}
  1652 		height: 30px;
  1490 
  1653 		padding: 0;
  1491 	.form-table table.color-palette {
  1654 	}
       
  1655 
       
  1656 	.form-table .color-palette {
  1492 		margin-right: 10px;
  1657 		margin-right: 10px;
  1493 	}
  1658 	}
  1494 
  1659 
  1495 	textarea,
  1660 	textarea,
  1496 	input {
  1661 	input {
  1536 		width: 100%;
  1701 		width: 100%;
  1537 		box-sizing: border-box;
  1702 		box-sizing: border-box;
  1538 		padding: 8px;
  1703 		padding: 8px;
  1539 	}
  1704 	}
  1540 
  1705 
       
  1706 	.password-input-wrapper {
       
  1707 		display: block;
       
  1708 	}
       
  1709 
  1541 	p.search-box {
  1710 	p.search-box {
  1542 		float: none;
  1711 		float: none;
  1543 		position: absolute;
  1712 		width: 100%;
  1544 		bottom: 0;
       
  1545 		width: 98%;
       
  1546 		height: 90px;
       
  1547 		margin-bottom: 20px;
  1713 		margin-bottom: 20px;
       
  1714 		display: flex;
  1548 	}
  1715 	}
  1549 
  1716 
  1550 	p.search-box input[name="s"] {
  1717 	p.search-box input[name="s"] {
  1551 		float: none;
  1718 		float: none;
  1552 		width: 100%;
  1719 		width: 100%;
  1574 		margin-bottom: 0;
  1741 		margin-bottom: 0;
  1575 		padding: 4px 0 6px;
  1742 		padding: 4px 0 6px;
  1576 	}
  1743 	}
  1577 
  1744 
  1578 	.form-table.permalink-structure td code {
  1745 	.form-table.permalink-structure td code {
  1579 		margin-left: 32px;
       
  1580 		display: inline-block;
  1746 		display: inline-block;
  1581 	}
  1747 	}
  1582 
  1748 
       
  1749 	.form-table.permalink-structure .structure-selection {
       
  1750 		margin-top: 8px;
       
  1751 	}
       
  1752 
       
  1753 	.form-table.permalink-structure .structure-selection .row > div {
       
  1754 		max-width: calc(100% - 36px);
       
  1755 		width: 100%;
       
  1756 	}
       
  1757 
  1583 	.form-table.permalink-structure td input[type="text"] {
  1758 	.form-table.permalink-structure td input[type="text"] {
  1584 		margin-left: 32px;
       
  1585 		margin-top: 4px;
  1759 		margin-top: 4px;
  1586 		width: 96%;
       
  1587 	}
  1760 	}
  1588 
  1761 
  1589 	.form-table input.regular-text {
  1762 	.form-table input.regular-text {
  1590 		width: 100%;
  1763 		width: 100%;
  1591 	}
  1764 	}
  1592 
  1765 
  1593 	.form-table label {
  1766 	.form-table label {
  1594 		font-size: 14px;
  1767 		font-size: 14px;
  1595 	}
  1768 	}
  1596 
  1769 
       
  1770 	.form-table td > label:first-child {
       
  1771 		display: inline-block;
       
  1772 		margin-top: 0.35em;
       
  1773 	}
       
  1774 
  1597 	.background-position-control .button-group > label {
  1775 	.background-position-control .button-group > label {
  1598 		font-size: 0;
  1776 		font-size: 0;
  1599 	}
  1777 	}
  1600 
  1778 
  1601 	.form-table fieldset label {
  1779 	.form-table fieldset label {
  1602 		display: block;
  1780 		display: block;
  1603 	}
       
  1604 
       
  1605 	#utc-time,
       
  1606 	#local-time {
       
  1607 		display: block;
       
  1608 		float: none;
       
  1609 		margin-top: 0.5em;
       
  1610 	}
  1781 	}
  1611 
  1782 
  1612 	.form-field #domain {
  1783 	.form-field #domain {
  1613 		max-width: none;
  1784 		max-width: none;
  1614 	}
  1785 	}
  1641 
  1812 
  1642 	.wp-pwd button.wp-hide-pw {
  1813 	.wp-pwd button.wp-hide-pw {
  1643 		right: 2.5rem;
  1814 		right: 2.5rem;
  1644 	}
  1815 	}
  1645 
  1816 
       
  1817 	body.user-new-php .wp-pwd button.wp-hide-pw {
       
  1818 		right: 0;
       
  1819 	}
       
  1820 
  1646 	.wp-pwd button.button:hover,
  1821 	.wp-pwd button.button:hover,
  1647 	.wp-pwd button.button:focus {
  1822 	.wp-pwd button.button:focus {
  1648 		background: transparent;
  1823 		background: transparent;
  1649 	}
  1824 	}
  1650 
  1825 
  1662 	.wp-pwd [type="password"] {
  1837 	.wp-pwd [type="password"] {
  1663 		line-height: 2;
  1838 		line-height: 2;
  1664 		padding-right: 5rem;
  1839 		padding-right: 5rem;
  1665 	}
  1840 	}
  1666 
  1841 
       
  1842 	body.user-new-php .wp-pwd [type="text"],
       
  1843 	body.user-new-php .wp-pwd [type="password"] {
       
  1844 		padding-right: 2.5rem;
       
  1845 	}
       
  1846 
  1667 	.wp-cancel-pw .dashicons-no {
  1847 	.wp-cancel-pw .dashicons-no {
  1668 		display: inline-block;
  1848 		display: inline-block;
       
  1849 	}
       
  1850 
       
  1851 	.mailserver-pass-wrap .wp-pwd {
       
  1852 		display: block;
       
  1853 	}
       
  1854 
       
  1855 	/* rtl:ignore */
       
  1856 	#mailserver_pass {
       
  1857 		padding-left: 10px;
  1669 	}
  1858 	}
  1670 
  1859 
  1671 	.options-general-php input[type="text"].small-text {
  1860 	.options-general-php input[type="text"].small-text {
  1672 		max-width: 6.25em;
  1861 		max-width: 6.25em;
  1673 		margin: 0;
  1862 		margin: 0;