wp/wp-admin/css/common.css
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   120 /* Hide visually but not from screen readers */
   120 /* Hide visually but not from screen readers */
   121 .screen-reader-text,
   121 .screen-reader-text,
   122 .screen-reader-text span,
   122 .screen-reader-text span,
   123 .ui-helper-hidden-accessible {
   123 .ui-helper-hidden-accessible {
   124 	border: 0;
   124 	border: 0;
   125 	clip: rect(1px, 1px, 1px, 1px);
       
   126 	clip-path: inset(50%);
   125 	clip-path: inset(50%);
   127 	height: 1px;
   126 	height: 1px;
   128 	margin: -1px;
   127 	margin: -1px;
   129 	overflow: hidden;
   128 	overflow: hidden;
   130 	padding: 0;
   129 	padding: 0;
   914 .privacy_requests .remove-personal-data .remove-personal-data-handle:hover {
   913 .privacy_requests .remove-personal-data .remove-personal-data-handle:hover {
   915 	color: #b32d2e;
   914 	color: #b32d2e;
   916 	border: none;
   915 	border: none;
   917 }
   916 }
   918 
   917 
       
   918 .application-password-display .success {
       
   919     color: #007017;
       
   920     margin-left: 0.5rem;
       
   921 }
       
   922 
   919 /*------------------------------------------------------------------------------
   923 /*------------------------------------------------------------------------------
   920   3.0 - Actions
   924   3.0 - Actions
   921 ------------------------------------------------------------------------------*/
   925 ------------------------------------------------------------------------------*/
   922 
   926 
   923 #major-publishing-actions {
   927 #major-publishing-actions {
  1109 	flex-wrap: wrap;
  1113 	flex-wrap: wrap;
  1110 	justify-content: space-between;
  1114 	justify-content: space-between;
  1111 	align-items: center;
  1115 	align-items: center;
  1112 }
  1116 }
  1113 
  1117 
  1114 .wp-filter .search-form.search-plugins {
       
  1115 	/* This element is a flex item: the inherited float won't have any effect. */
       
  1116 	margin-top: 0;
       
  1117 }
       
  1118 
       
  1119 .wp-filter .search-form.search-plugins select,
  1118 .wp-filter .search-form.search-plugins select,
  1120 .wp-filter .search-form.search-plugins .wp-filter-search,
  1119 .wp-filter .search-form.search-plugins .wp-filter-search,
  1121 .no-js .wp-filter .search-form.search-plugins .button {
  1120 .no-js .wp-filter .search-form.search-plugins .button {
  1122 	display: inline-block;
  1121 	display: inline-block;
  1123 	vertical-align: top;
  1122 	vertical-align: top;
  1176 	margin: 0 -10px 0 -20px;
  1175 	margin: 0 -10px 0 -20px;
  1177 	padding: 20px;
  1176 	padding: 20px;
  1178 	border-top: 1px solid #f0f0f1;
  1177 	border-top: 1px solid #f0f0f1;
  1179 	background: #f6f7f7;
  1178 	background: #f6f7f7;
  1180 	overflow: hidden;
  1179 	overflow: hidden;
       
  1180 }
       
  1181 
       
  1182 .wp-filter .favorites-form .favorites-username {
       
  1183 	display: flex;
       
  1184 	align-items: center;
       
  1185 	flex-wrap: wrap;
       
  1186 	gap: 0.5rem;
       
  1187 }
       
  1188 
       
  1189 .wp-filter .favorites-form .favorites-username input {
       
  1190 	margin: 0;
  1181 }
  1191 }
  1182 
  1192 
  1183 .show-filters .filter-drawer,
  1193 .show-filters .filter-drawer,
  1184 .show-favorites-form .favorites-form {
  1194 .show-favorites-form .favorites-form {
  1185 	display: block;
  1195 	display: block;
  1286 .filtered-by a {
  1296 .filtered-by a {
  1287 	margin-left: 10px;
  1297 	margin-left: 10px;
  1288 }
  1298 }
  1289 
  1299 
  1290 .filtered-by .tags {
  1300 .filtered-by .tags {
  1291 	display: inline;
  1301 	display: flex;
       
  1302 	align-items: flex-start;
       
  1303 	flex-wrap: wrap;
       
  1304 	gap: 8px;
  1292 }
  1305 }
  1293 
  1306 
  1294 .filtered-by .tag {
  1307 .filtered-by .tag {
  1295 	margin: 0 5px;
       
  1296 	padding: 4px 8px;
  1308 	padding: 4px 8px;
  1297 	border: 1px solid #dcdcde;
  1309 	border: 1px solid #dcdcde;
  1298 	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  1310 	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  1299 	background: #fff;
  1311 	background: #fff;
  1300 	font-size: 11px;
  1312 	font-size: 11px;
  1305 .filters-applied .filter-drawer br {
  1317 .filters-applied .filter-drawer br {
  1306 	display: none;
  1318 	display: none;
  1307 }
  1319 }
  1308 
  1320 
  1309 .filters-applied .filtered-by {
  1321 .filters-applied .filtered-by {
  1310 	display: block;
  1322 	display: flex;
       
  1323 	align-items: center;
       
  1324 	flex-wrap: wrap;
       
  1325 	gap: 10px;
  1311 }
  1326 }
  1312 
  1327 
  1313 .filters-applied .filter-drawer {
  1328 .filters-applied .filter-drawer {
  1314 	padding: 20px;
  1329 	padding: 20px;
  1315 }
  1330 }
  1328 
  1343 
  1329 .loading-content .spinner {
  1344 .loading-content .spinner {
  1330 	display: block;
  1345 	display: block;
  1331 	margin: 40px auto 0;
  1346 	margin: 40px auto 0;
  1332 	float: none;
  1347 	float: none;
       
  1348 }
       
  1349 
       
  1350 @media only screen and (max-width: 1138px) {
       
  1351 	.wp-filter .search-form {
       
  1352 		margin: 11px 0;
       
  1353 	}
  1333 }
  1354 }
  1334 
  1355 
  1335 @media only screen and (max-width: 1120px) {
  1356 @media only screen and (max-width: 1120px) {
  1336 	.filter-drawer {
  1357 	.filter-drawer {
  1337 		border-bottom: 1px solid #f0f0f1;
  1358 		border-bottom: 1px solid #f0f0f1;
  2029 /*------------------------------------------------------------------------------
  2050 /*------------------------------------------------------------------------------
  2030   8.0 - Layout Blocks
  2051   8.0 - Layout Blocks
  2031 ------------------------------------------------------------------------------*/
  2052 ------------------------------------------------------------------------------*/
  2032 
  2053 
  2033 html.wp-toolbar {
  2054 html.wp-toolbar {
  2034 	padding-top: 32px;
  2055 	padding-top: var(--wp-admin--admin-bar--height);
  2035 	box-sizing: border-box;
  2056 	box-sizing: border-box;
  2036 	-ms-overflow-style: scrollbar; /* See ticket #48545 */
  2057 	-ms-overflow-style: scrollbar; /* See ticket #48545 */
  2037 }
  2058 }
  2038 
  2059 
  2039 .widefat th,
  2060 .widefat th,
  2408 	line-height: 1.4;
  2429 	line-height: 1.4;
  2409 }
  2430 }
  2410 
  2431 
  2411 /* Back-compat for nav-menus screen */
  2432 /* Back-compat for nav-menus screen */
  2412 .nav-menus-php .metabox-holder h3 {
  2433 .nav-menus-php .metabox-holder h3 {
       
  2434 	padding: 0;
       
  2435 }
       
  2436 
       
  2437 .accordion-container h3.accordion-section-title {
       
  2438 	padding: 0 !important;
       
  2439 }
       
  2440 
       
  2441 .accordion-section-title button.accordion-trigger,
       
  2442 .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger {
       
  2443 	background: inherit;
       
  2444 	color: #1d2327;
       
  2445 	display: block;
       
  2446 	position: relative;
       
  2447 	text-align: left;
       
  2448 	width: 100%;
       
  2449 	outline: none;
       
  2450 	border: 0;
  2413 	padding: 10px 10px 11px 14px;
  2451 	padding: 10px 10px 11px 14px;
  2414 	line-height: 1.5;
  2452 	line-height: 1.5;
       
  2453 	cursor: pointer;
       
  2454 }
       
  2455 
       
  2456 .accordion-section-title button.accordion-trigger:focus,
       
  2457 .nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus {
       
  2458 	box-shadow: 0 0 0 2px #2271b1;
       
  2459 	outline: 2px solid transparent;
       
  2460 }
       
  2461 
       
  2462 .accordion-section-title span.dashicons.dashicons-arrow-down,
       
  2463 .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down {
       
  2464 	position: absolute;
       
  2465 	right: 10px;
       
  2466 	left: auto;
       
  2467 	color: #787c82;
       
  2468 	border-radius: 50px;
       
  2469 	top: 50%;
       
  2470 	transform: translateY(-50%);
       
  2471 }
       
  2472 
       
  2473 .accordion-section-title:hover span.dashicons.dashicons-arrow-down,
       
  2474 .nav-menus-php .metabox-holder .accordion-section-title:hover span.dashicons.dashicons-arrow-down {
       
  2475 	color: #1d2327;
       
  2476 }
       
  2477 
       
  2478 .accordion-section-title span.dashicons.dashicons-arrow-down::before,
       
  2479 .nav-menus-php .metabox-holder .accordion-section-title span.dashicons.dashicons-arrow-down::before {
       
  2480 	position: relative;
       
  2481 	left: -1px;
       
  2482 }
       
  2483 
       
  2484 .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down,
       
  2485 .nav-menus-php .metabox-holder .accordion-section.open .accordion-section-title span.dashicons.dashicons-arrow-down {
       
  2486 	transform: rotate(180deg) translate(0, 50%);
  2415 }
  2487 }
  2416 
  2488 
  2417 #templateside ul li a {
  2489 #templateside ul li a {
  2418 	text-decoration: none;
  2490 	text-decoration: none;
  2419 }
  2491 }
  3499 	margin: 25px;
  3571 	margin: 25px;
  3500 }
  3572 }
  3501 
  3573 
  3502 /* @todo: can we use a common class for these? */
  3574 /* @todo: can we use a common class for these? */
  3503 .nav-menus-php .item-edit:before,
  3575 .nav-menus-php .item-edit:before,
  3504 .widget-top .widget-action .toggle-indicator:before,
  3576 .wp-customizer .control-section .accordion-section-title:after,
  3505 .control-section .accordion-section-title:after,
  3577 .wp-customizer .accordion-section-title:after,
  3506 .accordion-section-title:after {
  3578 .widget-top .widget-action .toggle-indicator:before {
  3507 	content: "\f140";
  3579 	content: "\f140";
  3508 	font: normal 20px/1 dashicons;
  3580 	font: normal 20px/1 dashicons;
  3509 	speak: never;
  3581 	speak: never;
  3510 	display: block;
  3582 	display: block;
  3511 	-webkit-font-smoothing: antialiased;
  3583 	-webkit-font-smoothing: antialiased;
  3519 }
  3591 }
  3520 
  3592 
  3521 .handlediv,
  3593 .handlediv,
  3522 .postbox .handlediv.button-link,
  3594 .postbox .handlediv.button-link,
  3523 .item-edit,
  3595 .item-edit,
  3524 .toggle-indicator,
  3596 .toggle-indicator {
  3525 .accordion-section-title:after {
       
  3526 	color: #787c82;
  3597 	color: #787c82;
  3527 }
  3598 }
  3528 
  3599 
  3529 .widget-action {
  3600 .widget-action {
  3530 	color: #50575e; /* #fafafa background in the Widgets screen */
  3601 	color: #50575e; /* #fafafa background in the Widgets screen */
  3536 .handlediv:focus,
  3607 .handlediv:focus,
  3537 .postbox .handlediv.button-link:hover,
  3608 .postbox .handlediv.button-link:hover,
  3538 .postbox .handlediv.button-link:focus,
  3609 .postbox .handlediv.button-link:focus,
  3539 .item-edit:hover,
  3610 .item-edit:hover,
  3540 .item-edit:focus,
  3611 .item-edit:focus,
  3541 .sidebar-name:hover .toggle-indicator,
  3612 .sidebar-name:hover .toggle-indicator {
  3542 .accordion-section-title:hover:after {
       
  3543 	color: #1d2327;
  3613 	color: #1d2327;
  3544 	/* Only visible in Windows High Contrast mode */
  3614 	/* Only visible in Windows High Contrast mode */
  3545 	outline: 2px solid transparent;
  3615 	outline: 2px solid transparent;
  3546 }
  3616 }
  3547 
  3617 
  3549 	box-shadow: 0 0 0 2px #2271b1;
  3619 	box-shadow: 0 0 0 2px #2271b1;
  3550 	/* Only visible in Windows High Contrast mode */
  3620 	/* Only visible in Windows High Contrast mode */
  3551 	outline: 2px solid transparent;
  3621 	outline: 2px solid transparent;
  3552 }
  3622 }
  3553 
  3623 
  3554 .control-section .accordion-section-title:after,
       
  3555 .accordion-section-title:after {
       
  3556 	float: right;
       
  3557 	right: 20px;
       
  3558 	top: -2px;
       
  3559 }
       
  3560 
       
  3561 .control-section.open .accordion-section-title:after,
       
  3562 #customize-info.open .accordion-section-title:after,
  3624 #customize-info.open .accordion-section-title:after,
  3563 .nav-menus-php .menu-item-edit-active .item-edit:before,
  3625 .nav-menus-php .menu-item-edit-active .item-edit:before,
  3564 .widget.open .widget-top .widget-action .toggle-indicator:before,
  3626 .widget.open .widget-top .widget-action .toggle-indicator:before,
  3565 .widget.widget-in-question .widget-top .widget-action .toggle-indicator:before {
  3627 .widget.widget-in-question .widget-top .widget-action .toggle-indicator:before {
  3566 	content: "\f142";
  3628 	content: "\f142";
  3601 	background: #fff;
  3663 	background: #fff;
  3602 }
  3664 }
  3603 
  3665 
  3604 .accordion-section-title {
  3666 .accordion-section-title {
  3605 	margin: 0;
  3667 	margin: 0;
  3606 	padding: 12px 15px 15px;
       
  3607 	position: relative;
  3668 	position: relative;
  3608 	border-left: 1px solid #dcdcde;
  3669 	border-left: 1px solid #dcdcde;
  3609 	border-right: 1px solid #dcdcde;
  3670 	border-right: 1px solid #dcdcde;
  3610 	-webkit-user-select: none;
  3671 	-webkit-user-select: none;
  3611 	user-select: none;
  3672 	user-select: none;
  3838 
  3899 
  3839 }
  3900 }
  3840 
  3901 
  3841 @media screen and (max-width: 782px) {
  3902 @media screen and (max-width: 782px) {
  3842 	html.wp-toolbar {
  3903 	html.wp-toolbar {
  3843 		padding-top: 46px;
  3904 		padding-top: var(--wp-admin--admin-bar--height);
  3844 	}
  3905 	}
  3845 
  3906 
  3846 	.screen-reader-shortcut:focus {
  3907 	.screen-reader-shortcut:focus {
  3847 		top: -39px;
  3908 		top: -39px;
       
  3909 	}
       
  3910 
       
  3911 	.block-editor-page .screen-reader-shortcut:focus {
       
  3912 		top: 7px;
  3848 	}
  3913 	}
  3849 
  3914 
  3850 	body {
  3915 	body {
  3851 		min-width: 240px;
  3916 		min-width: 240px;
  3852 		overflow-x: hidden;
  3917 		overflow-x: hidden;
  3946 	.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
  4011 	.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
  3947 	.metabox-holder h2 {
  4012 	.metabox-holder h2 {
  3948 		padding: 12px;
  4013 		padding: 12px;
  3949 	}
  4014 	}
  3950 
  4015 
       
  4016 	.nav-menus-php .metabox-holder h3 {
       
  4017 		padding: 0;
       
  4018 	}
       
  4019 
  3951 	.postbox .handlediv {
  4020 	.postbox .handlediv {
  3952 		margin-top: 3px;
  4021 		margin-top: 3px;
  3953 	}
  4022 	}
  3954 
  4023 
  3955 	/* Subsubsub Nav */
  4024 	/* Subsubsub Nav */