wp/wp-admin/css/customize-nav-menus.css
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
     2 	position: relative;
     2 	position: relative;
     3 	margin-top: 30px;
     3 	margin-top: 30px;
     4 }
     4 }
     5 
     5 
     6 #customize-theme-controls #accordion-section-menu_locations > .accordion-section-title {
     6 #customize-theme-controls #accordion-section-menu_locations > .accordion-section-title {
     7 	border-bottom-color: #ddd;
     7 	border-bottom-color: #dcdcde;
     8 	margin-top: 15px;
     8 	margin-top: 15px;
     9 }
     9 }
    10 
    10 
    11 #customize-theme-controls .customize-section-title-nav_menus-heading,
    11 #customize-theme-controls .customize-section-title-nav_menus-heading,
    12 #customize-theme-controls .customize-section-title-menu_locations-heading,
    12 #customize-theme-controls .customize-section-title-menu_locations-heading,
    27 }
    27 }
    28 
    28 
    29 #customize-controls .theme-location-set,
    29 #customize-controls .theme-location-set,
    30 #customize-controls .control-section .accordion-section-title:focus .menu-in-location,
    30 #customize-controls .control-section .accordion-section-title:focus .menu-in-location,
    31 #customize-controls .control-section .accordion-section-title:hover .menu-in-location {
    31 #customize-controls .control-section .accordion-section-title:hover .menu-in-location {
    32 	color: #555;
    32 	color: #50575e;
    33 }
    33 }
    34 
    34 
    35 /* The `edit-menu` and `create-menu` buttons also use the `button-link` class. */
    35 /* The `edit-menu` and `create-menu` buttons also use the `button-link` class. */
    36 .customize-control-nav_menu_location .edit-menu,
    36 .customize-control-nav_menu_location .edit-menu,
    37 .customize-control-nav_menu_location .create-menu {
    37 .customize-control-nav_menu_location .create-menu {
    63 	margin: 0;
    63 	margin: 0;
    64 }
    64 }
    65 
    65 
    66 .wp-customizer .menu-item-bar .menu-item-handle {
    66 .wp-customizer .menu-item-bar .menu-item-handle {
    67 	width: 100%;
    67 	width: 100%;
       
    68 	max-width: 100%;
    68 	background: #fff;
    69 	background: #fff;
    69 }
    70 }
    70 
    71 
    71 .wp-customizer .menu-item-handle .item-title {
    72 .wp-customizer .menu-item-handle .item-title {
    72 	margin-right: 0;
    73 	margin-right: 0;
    81 .wp-customizer .menu-item-handle:hover {
    82 .wp-customizer .menu-item-handle:hover {
    82 	z-index: 8;
    83 	z-index: 8;
    83 }
    84 }
    84 
    85 
    85 .customize-control-nav_menu_item.has-notifications .menu-item-handle {
    86 .customize-control-nav_menu_item.has-notifications .menu-item-handle {
    86 	border-left: 4px solid #00a0d2;
    87 	border-left: 4px solid #72aee6;
    87 }
    88 }
    88 
    89 
    89 .wp-customizer .menu-item-settings {
    90 .wp-customizer .menu-item-settings {
    90 	max-width: 100%;
    91 	max-width: 100%;
    91 	overflow: hidden;
    92 	overflow: hidden;
    92 	z-index: 8;
    93 	z-index: 8;
    93 	padding: 10px;
    94 	padding: 10px;
    94 	background: #eee;
    95 	background: #f0f0f1;
    95 	border: 1px solid #999;
    96 	border: 1px solid #8c8f94;
    96 	border-top: none;
    97 	border-top: none;
    97 }
    98 }
    98 
    99 
    99 .wp-customizer .menu-item-settings .description-thin {
   100 .wp-customizer .menu-item-settings .description-thin {
   100 	width: 100%;
   101 	width: 100%;
   191 .wp-customizer .menu-settings .checkbox-input {
   192 .wp-customizer .menu-settings .checkbox-input {
   192 	margin-top: 8px;
   193 	margin-top: 8px;
   193 }
   194 }
   194 
   195 
   195 .wp-customizer .menu-settings .menu-theme-locations {
   196 .wp-customizer .menu-settings .menu-theme-locations {
   196 	border-top: 1px solid #ccc;
   197 	border-top: 1px solid #c3c4c7;
   197 }
   198 }
   198 
   199 
   199 .wp-customizer .menu-settings {
   200 .wp-customizer .menu-settings {
   200 	margin-top: 36px;
   201 	margin-top: 36px;
   201 	border-top: none;
   202 	border-top: none;
   206 	border-top: none;
   207 	border-top: none;
   207 }
   208 }
   208 
   209 
   209 .wp-customizer .control-section-nav_menu .menu-location-settings {
   210 .wp-customizer .control-section-nav_menu .menu-location-settings {
   210 	margin-top: 24px;
   211 	margin-top: 24px;
   211 	border-top: 1px solid #ddd;
   212 	border-top: 1px solid #dcdcde;
   212 }
   213 }
   213 
   214 
   214 .wp-customizer .control-section-nav_menu .menu-location-settings,
   215 .wp-customizer .control-section-nav_menu .menu-location-settings,
   215 .customize-control-nav_menu_auto_add {
   216 .customize-control-nav_menu_auto_add {
   216 	padding-top: 12px;
   217 	padding-top: 12px;
   231 .customize-control-menu {
   232 .customize-control-menu {
   232 	margin-top: 4px;
   233 	margin-top: 4px;
   233 }
   234 }
   234 
   235 
   235 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle {
   236 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle {
   236 	color: #555;
   237 	color: #50575e;
   237 }
   238 }
   238 
   239 
   239 /* Screen Options */
   240 /* Screen Options */
   240 .customize-screen-options-toggle {
   241 .customize-screen-options-toggle {
   241 	background: none;
   242 	background: none;
   242 	border: none;
   243 	border: none;
   243 	color: #555;
   244 	color: #50575e;
   244 	cursor: pointer;
   245 	cursor: pointer;
   245 	margin: 0;
   246 	margin: 0;
   246 	padding: 20px;
   247 	padding: 20px;
   247 	position: absolute;
   248 	position: absolute;
   248 	right: 0;
   249 	right: 0;
   262 .customize-screen-options-toggle:focus,
   263 .customize-screen-options-toggle:focus,
   263 .active-menu-screen-options .customize-screen-options-toggle,
   264 .active-menu-screen-options .customize-screen-options-toggle,
   264 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
   265 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
   265 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
   266 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
   266 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
   267 #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
   267 	color: #0073aa;
   268 	color: #2271b1;
   268 }
   269 }
   269 
   270 
   270 .customize-screen-options-toggle:focus,
   271 .customize-screen-options-toggle:focus,
   271 #customize-controls .customize-info .customize-help-toggle:focus {
   272 #customize-controls .customize-info .customize-help-toggle:focus {
   272 	/* Only visible in Windows High Contrast mode */
   273 	/* Only visible in Windows High Contrast mode */
   294 }
   295 }
   295 
   296 
   296 .wp-customizer #screen-options-wrap {
   297 .wp-customizer #screen-options-wrap {
   297 	display: none;
   298 	display: none;
   298 	background: #fff;
   299 	background: #fff;
   299 	border-top: 1px solid #ddd;
   300 	border-top: 1px solid #dcdcde;
   300 	padding: 4px 15px 15px;
   301 	padding: 4px 15px 15px;
   301 }
   302 }
   302 
   303 
   303 .wp-customizer .metabox-prefs label {
   304 .wp-customizer .metabox-prefs label {
   304 	display: block;
   305 	display: block;
   320 .wp-customizer .menu-item .item-edit .toggle-indicator:before,
   321 .wp-customizer .menu-item .item-edit .toggle-indicator:before,
   321 #available-menu-items .accordion-section-title .toggle-indicator:before {
   322 #available-menu-items .accordion-section-title .toggle-indicator:before {
   322 	content: "\f140";
   323 	content: "\f140";
   323 	display: block;
   324 	display: block;
   324 	padding: 1px 2px 1px 0px;
   325 	padding: 1px 2px 1px 0px;
   325 	speak: none;
   326 	speak: never;
   326 	border-radius: 50%;
   327 	border-radius: 50%;
   327 	color: #72777c;
   328 	color: #787c82;
   328 	font: normal 20px/1 dashicons;
   329 	font: normal 20px/1 dashicons;
   329 	-webkit-font-smoothing: antialiased;
   330 	-webkit-font-smoothing: antialiased;
   330 	-moz-osx-font-smoothing: grayscale;
   331 	-moz-osx-font-smoothing: grayscale;
   331 	text-decoration: none !important;
   332 	text-decoration: none !important;
   332 }
   333 }
   428 	margin-top: 0;
   429 	margin-top: 0;
   429 	margin-bottom: 1px;
   430 	margin-bottom: 1px;
   430 	max-width: calc(100% - 2px);
   431 	max-width: calc(100% - 2px);
   431 	float: left;
   432 	float: left;
   432 	display: list-item;
   433 	display: list-item;
   433 	border-color: #a0a5aa;
   434 	border-color: #a7aaad;
   434 }
   435 }
   435 
   436 
   436 .menu-item-transport li.customize-control {
   437 .menu-item-transport li.customize-control {
   437 	float: none;
   438 	float: none;
   438 }
   439 }
   453 .adding-menu-items .control-section.open {
   454 .adding-menu-items .control-section.open {
   454 	opacity: 1;
   455 	opacity: 1;
   455 }
   456 }
   456 
   457 
   457 .menu-item-bar .item-delete {
   458 .menu-item-bar .item-delete {
   458 	color: #a00;
   459 	color: #d63638;
   459 	position: absolute;
   460 	position: absolute;
   460 	top: 2px;
   461 	top: 2px;
   461 	right: -19px;
   462 	right: -19px;
   462 	width: 30px;
   463 	width: 30px;
   463 	height: 38px;
   464 	height: 38px;
   478 
   479 
   479 .menu-item-bar .item-delete:hover,
   480 .menu-item-bar .item-delete:hover,
   480 .menu-item-bar .item-delete:focus {
   481 .menu-item-bar .item-delete:focus {
   481 	box-shadow: none;
   482 	box-shadow: none;
   482 	outline: none;
   483 	outline: none;
   483 	color: #dc3232;
   484 	color: #d63638;
   484 }
   485 }
   485 
   486 
   486 .adding-menu-items .menu-item-bar .item-edit {
   487 .adding-menu-items .menu-item-bar .item-edit {
   487 	display: none;
   488 	display: none;
   488 }
   489 }
   509 	border-right: none;
   510 	border-right: none;
   510 	background: #fff;
   511 	background: #fff;
   511 	transition: background-color 0.15s;
   512 	transition: background-color 0.15s;
   512 	/* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
   513 	/* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
   513 	-webkit-user-select: auto;
   514 	-webkit-user-select: auto;
   514 	-moz-user-select: auto;
       
   515 	-ms-user-select: auto;
       
   516 	user-select: auto;
   515 	user-select: auto;
   517 }
   516 }
   518 
   517 
   519 #available-menu-items .open .accordion-section-title,
   518 #available-menu-items .open .accordion-section-title,
   520 #available-menu-items #available-menu-items-search .accordion-section-title {
   519 #available-menu-items #available-menu-items-search .accordion-section-title {
   521 	background: #eee;
   520 	background: #f0f0f1;
   522 }
   521 }
   523 
   522 
   524 /* rework the arrow indicator implementation for NVDA bug see #32715 */
   523 /* rework the arrow indicator implementation for NVDA bug see #32715 */
   525 #available-menu-items .accordion-section-title:after {
   524 #available-menu-items .accordion-section-title:after {
   526 	content: none !important;
   525 	content: none !important;
   527 }
   526 }
   528 
   527 
   529 #available-menu-items .accordion-section-title:hover .toggle-indicator:before,
   528 #available-menu-items .accordion-section-title:hover .toggle-indicator:before,
   530 #available-menu-items .button-link:hover .toggle-indicator:before,
   529 #available-menu-items .button-link:hover .toggle-indicator:before,
   531 #available-menu-items .button-link:focus .toggle-indicator:before {
   530 #available-menu-items .button-link:focus .toggle-indicator:before {
   532 	color: #23282d;
   531 	color: #1d2327;
   533 }
   532 }
   534 
   533 
   535 #available-menu-items .open .accordion-section-title .toggle-indicator:before {
   534 #available-menu-items .open .accordion-section-title .toggle-indicator:before {
   536 	content: "\f142";
   535 	content: "\f142";
   537 	color: #23282d;
   536 	color: #1d2327;
   538 }
   537 }
   539 
   538 
   540 #available-menu-items .available-menu-items-list {
   539 #available-menu-items .available-menu-items-list {
   541 	overflow-y: auto;
   540 	overflow-y: auto;
   542 	max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */
   541 	max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */
   566 	display: block;
   565 	display: block;
   567 }
   566 }
   568 
   567 
   569 #available-menu-items .cannot-expand .accordion-section-title .no-items {
   568 #available-menu-items .cannot-expand .accordion-section-title .no-items {
   570 	float: right;
   569 	float: right;
   571 	color: #555d66;
   570 	color: #50575e;
   572 	font-weight: 400;
   571 	font-weight: 400;
   573 	margin-left: 5px;
   572 	margin-left: 5px;
   574 }
   573 }
   575 
   574 
   576 #available-menu-items .accordion-section-content {
   575 #available-menu-items .accordion-section-content {
   603 .edit-menu-item-url.invalid,
   602 .edit-menu-item-url.invalid,
   604 .menu-name-field.invalid,
   603 .menu-name-field.invalid,
   605 .menu-name-field.invalid:focus,
   604 .menu-name-field.invalid:focus,
   606 #available-menu-items .new-content-item .create-item-input.invalid,
   605 #available-menu-items .new-content-item .create-item-input.invalid,
   607 #available-menu-items .new-content-item .create-item-input.invalid:focus {
   606 #available-menu-items .new-content-item .create-item-input.invalid:focus {
   608 	border: 1px solid #dc3232;
   607 	border: 1px solid #d63638;
   609 }
   608 }
   610 
   609 
   611 #available-menu-items .menu-item-handle .item-type {
   610 #available-menu-items .menu-item-handle .item-type {
   612 	padding-right: 0;
   611 	padding-right: 0;
   613 }
   612 }
   636 
   635 
   637 #available-menu-items .item-add {
   636 #available-menu-items .item-add {
   638 	position: absolute;
   637 	position: absolute;
   639 	top: 1px;
   638 	top: 1px;
   640 	left: 1px;
   639 	left: 1px;
   641 	color: #82878c;
   640 	color: #8c8f94;
   642 	width: 30px;
   641 	width: 30px;
   643 	height: 38px;
   642 	height: 38px;
   644 	box-shadow: none;
   643 	box-shadow: none;
   645 	outline: none;
   644 	outline: none;
   646 	cursor: pointer;
   645 	cursor: pointer;
   647 	text-align: center;
   646 	text-align: center;
   648 }
   647 }
   649 
   648 
   650 #available-menu-items .menu-item-handle .item-add:focus {
   649 #available-menu-items .menu-item-handle .item-add:focus {
   651 	color: #23282d;
   650 	color: #1d2327;
   652 }
   651 }
   653 
   652 
   654 #available-menu-items .item-add:before {
   653 #available-menu-items .item-add:before {
   655 	content: "\f543";
   654 	content: "\f543";
   656 	position: relative;
   655 	position: relative;
   664 
   663 
   665 #available-menu-items .menu-item-handle.item-added .item-type,
   664 #available-menu-items .menu-item-handle.item-added .item-type,
   666 #available-menu-items .menu-item-handle.item-added .item-title,
   665 #available-menu-items .menu-item-handle.item-added .item-title,
   667 #available-menu-items .menu-item-handle.item-added:hover .item-add,
   666 #available-menu-items .menu-item-handle.item-added:hover .item-add,
   668 #available-menu-items .menu-item-handle.item-added .item-add:focus {
   667 #available-menu-items .menu-item-handle.item-added .item-add:focus {
   669 	color: #82878c;
   668 	color: #8c8f94;
   670 }
   669 }
   671 
   670 
   672 #available-menu-items .menu-item-handle.item-added .item-add:before {
   671 #available-menu-items .menu-item-handle.item-added .item-add:before {
   673 	content: "\f147";
   672 	content: "\f147";
   674 }
   673 }
   759 .added-menu-item .menu-item-handle.loading {
   758 .added-menu-item .menu-item-handle.loading {
   760 	padding: 10px 15px 10px 8px;
   759 	padding: 10px 15px 10px 8px;
   761 	cursor: default;
   760 	cursor: default;
   762 	opacity: .5;
   761 	opacity: .5;
   763 	background: #fff;
   762 	background: #fff;
   764 	color: #727773;
   763 	color: #787c82;
   765 }
   764 }
   766 
   765 
   767 .added-menu-item .menu-item-handle {
   766 .added-menu-item .menu-item-handle {
   768 	transition-property: opacity, background, color;
   767 	transition-property: opacity, background, color;
   769 	transition-duration: 1.25s;
   768 	transition-duration: 1.25s;
   771 }
   770 }
   772 
   771 
   773 /* Add/delete Menus */
   772 /* Add/delete Menus */
   774 
   773 
   775 #customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title {
   774 #customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title {
   776 	border-bottom-color: #ddd;
   775 	border-bottom-color: #dcdcde;
   777 }
   776 }
   778 
   777 
   779 /* @todo update selector */
   778 /* @todo update selector */
   780 #accordion-section-add_menu {
   779 #accordion-section-add_menu {
   781 	margin: 15px 12px;
   780 	margin: 15px 12px;
   825 }
   824 }
   826 
   825 
   827 .menu-item-handle:hover {
   826 .menu-item-handle:hover {
   828 	position: relative;
   827 	position: relative;
   829 	z-index: 10;
   828 	z-index: 10;
   830 	color: #0073aa;
   829 	color: #2271b1;
   831 }
   830 }
   832 
   831 
   833 .menu-item-handle:hover .item-type,
   832 .menu-item-handle:hover .item-type,
   834 .menu-item-handle:hover .item-edit,
   833 .menu-item-handle:hover .item-edit,
   835 #available-menu-items .menu-item-handle:hover .item-add {
   834 #available-menu-items .menu-item-handle:hover .item-add {
   836 	color: #0073aa;
   835 	color: #2271b1;
   837 }
   836 }
   838 
   837 
   839 .menu-item-edit-active .menu-item-handle {
   838 .menu-item-edit-active .menu-item-handle {
   840 	border-color: #999;
   839 	border-color: #8c8f94;
   841 	border-bottom: none;
   840 	border-bottom: none;
   842 }
   841 }
   843 
   842 
   844 .customize-control-nav_menu_item {
   843 .customize-control-nav_menu_item {
   845 	margin-bottom: 0;
   844 	margin-bottom: 0;
   864 .wp-customizer button:focus .toggle-indicator:before,
   863 .wp-customizer button:focus .toggle-indicator:before,
   865 .menu-delete:focus,
   864 .menu-delete:focus,
   866 .menu-item-bar .item-delete:focus:before,
   865 .menu-item-bar .item-delete:focus:before,
   867 #available-menu-items .item-add:focus:before {
   866 #available-menu-items .item-add:focus:before {
   868 	box-shadow:
   867 	box-shadow:
   869 		0 0 0 1px #5b9dd9,
   868 		0 0 0 1px #4f94d4,
   870 		0 0 2px 1px rgba(30, 140, 190, 0.8);
   869 		0 0 2px 1px rgba(79, 148, 212, 0.8);
   871 }
   870 }
   872 
   871 
   873 
   872 
   874 @media screen and (max-width: 782px) {
   873 @media screen and (max-width: 782px) {
   875 	#available-menu-items #available-menu-items-search .accordion-section-content {
   874 	#available-menu-items #available-menu-items-search .accordion-section-content {