mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-11 07:08:14 +02:00
Updated WordPress packages necessary for releasing WordPress 6.1 Beta 1: - @wordpress/a11y@3.17.1 - @wordpress/annotations@2.17.2 - @wordpress/api-fetch@6.14.1 - @wordpress/autop@3.17.1 - @wordpress/babel-plugin-import-jsx-pragma@4.0.1 - @wordpress/babel-plugin-makepot@5.1.1 - @wordpress/babel-preset-default@7.1.1 - @wordpress/base-styles@4.8.1 - @wordpress/blob@3.17.1 - @wordpress/block-directory@3.15.2 - @wordpress/block-editor@10.0.2 - @wordpress/block-library@7.14.2 - @wordpress/block-serialization-default-parser@4.17.1 - @wordpress/block-serialization-spec-parser@4.17.1 - @wordpress/blocks@11.16.2 - @wordpress/browserslist-config@5.0.1 - @wordpress/components@21.0.2 - @wordpress/compose@5.15.2 - @wordpress/core-data@5.0.2 - @wordpress/create-block-tutorial-template@2.5.1 - @wordpress/create-block@4.1.1 - @wordpress/custom-templated-path-webpack-plugin@2.1.3 - @wordpress/customize-widgets@3.14.2 - @wordpress/data-controls@2.17.2 - @wordpress/data@7.1.2 - @wordpress/date@4.17.1 - @wordpress/dependency-extraction-webpack-plugin@4.0.2 - @wordpress/deprecated@3.17.1 - @wordpress/docgen@1.26.1 - @wordpress/dom-ready@3.17.1 - @wordpress/dom@3.17.2 - @wordpress/e2e-test-utils@8.1.1 - @wordpress/e2e-tests@5.1.2 - @wordpress/edit-post@6.14.2 - @wordpress/edit-site@4.14.2 - @wordpress/edit-widgets@4.14.2 - @wordpress/editor@12.16.2 - @wordpress/element@4.15.1 - @wordpress/env@5.2.1 - @wordpress/escape-html@2.17.1 - @wordpress/eslint-plugin@13.1.1 - @wordpress/format-library@3.15.2 - @wordpress/hooks@3.17.1 - @wordpress/html-entities@3.17.1 - @wordpress/i18n@4.17.1 - @wordpress/icons@9.8.1 - @wordpress/interface@4.16.2 - @wordpress/is-shallow-equal@4.17.1 - @wordpress/jest-console@6.0.1 - @wordpress/jest-preset-default@9.0.1 - @wordpress/jest-puppeteer-axe@5.0.1 - @wordpress/keyboard-shortcuts@3.15.2 - @wordpress/keycodes@3.17.1 - @wordpress/lazy-import@1.4.3 - @wordpress/library-export-default-webpack-plugin@2.3.3 - @wordpress/list-reusable-blocks@3.15.2 - @wordpress/media-utils@4.8.1 - @wordpress/notices@3.17.2 - @wordpress/npm-package-json-lint-config@4.2.1 - @wordpress/nux@5.15.2 - @wordpress/plugins@4.15.2 - @wordpress/postcss-plugins-preset@4.1.1 - @wordpress/postcss-themes@5.0.1 - @wordpress/preferences-persistence@1.9.1 - @wordpress/preferences@2.9.2 - @wordpress/prettier-config@2.0.1 - @wordpress/primitives@3.15.1 - @wordpress/priority-queue@2.17.2 - @wordpress/project-management-automation@1.16.1 - @wordpress/react-i18n@3.15.1 - @wordpress/readable-js-assets-webpack-plugin@2.0.1 - @wordpress/redux-routine@4.17.1 - @wordpress/reusable-blocks@3.15.2 - @wordpress/rich-text@5.15.2 - @wordpress/scripts@24.1.2 - @wordpress/server-side-render@3.15.2 - @wordpress/shortcode@3.17.1 - @wordpress/style-engine@1.0.1 - @wordpress/stylelint-config@21.0.1 - @wordpress/token-list@2.17.1 - @wordpress/url@3.18.1 - @wordpress/viewport@4.15.2 - @wordpress/warning@2.17.1 - @wordpress/widgets@2.15.2 - @wordpress/wordcount@3.17.1 Props bernhard-reiter, cbravobernal, czapla, oandregal, isabel_brison, andrewserong, mciampini. See #56467. Built from https://develop.svn.wordpress.org/trunk@54257 git-svn-id: http://core.svn.wordpress.org/trunk@53816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
570 lines
18 KiB
CSS
570 lines
18 KiB
CSS
/**
|
|
* Colors
|
|
*/
|
|
/**
|
|
* Breakpoints & Media Queries
|
|
*/
|
|
/**
|
|
* SCSS Variables.
|
|
*
|
|
* Please use variables from this sheet to ensure consistency across the UI.
|
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
*/
|
|
/**
|
|
* Colors
|
|
*/
|
|
/**
|
|
* Fonts & basic variables.
|
|
*/
|
|
/**
|
|
* Grid System.
|
|
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
*/
|
|
/**
|
|
* Dimensions.
|
|
*/
|
|
/**
|
|
* Shadows.
|
|
*/
|
|
/**
|
|
* Editor widths.
|
|
*/
|
|
/**
|
|
* Block & Editor UI.
|
|
*/
|
|
/**
|
|
* Block paddings.
|
|
*/
|
|
/**
|
|
* React Native specific.
|
|
* These variables do not appear to be used anywhere else.
|
|
*/
|
|
/**
|
|
* Converts a hex value into the rgb equivalent.
|
|
*
|
|
* @param {string} hex - the hexadecimal value to convert
|
|
* @return {string} comma separated rgb values
|
|
*/
|
|
/**
|
|
* Breakpoint mixins
|
|
*/
|
|
/**
|
|
* Long content fade mixin
|
|
*
|
|
* Creates a fading overlay to signify that the content is longer
|
|
* than the space allows.
|
|
*/
|
|
/**
|
|
* Focus styles.
|
|
*/
|
|
/**
|
|
* Applies editor left position to the selector passed as argument
|
|
*/
|
|
/**
|
|
* Styles that are reused verbatim in a few places
|
|
*/
|
|
/**
|
|
* Allows users to opt-out of animations via OS-level preferences.
|
|
*/
|
|
/**
|
|
* Reset default styles for JavaScript UI based pages.
|
|
* This is a WP-admin agnostic reset
|
|
*/
|
|
/**
|
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
*/
|
|
.wp-block-navigation {
|
|
position: relative;
|
|
--navigation-layout-justification-setting: flex-start;
|
|
--navigation-layout-direction: row;
|
|
--navigation-layout-wrap: wrap;
|
|
--navigation-layout-justify: flex-start;
|
|
--navigation-layout-align: center;
|
|
}
|
|
.wp-block-navigation ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
margin-left: 0;
|
|
padding-left: 0;
|
|
}
|
|
.wp-block-navigation ul,
|
|
.wp-block-navigation ul li {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.wp-block-navigation .wp-block-navigation-item {
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container:empty {
|
|
display: none;
|
|
}
|
|
.wp-block-navigation .wp-block-navigation-item__content {
|
|
display: block;
|
|
}
|
|
.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content {
|
|
text-decoration: underline;
|
|
}
|
|
.wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:focus, .wp-block-navigation.has-text-decoration-underline .wp-block-navigation-item__content:active {
|
|
text-decoration: underline;
|
|
}
|
|
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content {
|
|
text-decoration: line-through;
|
|
}
|
|
.wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:focus, .wp-block-navigation.has-text-decoration-line-through .wp-block-navigation-item__content:active {
|
|
text-decoration: line-through;
|
|
}
|
|
.wp-block-navigation:where(:not([class*="has-text-decoration"])) a {
|
|
text-decoration: none;
|
|
}
|
|
.wp-block-navigation:where(:not([class*="has-text-decoration"])) a:focus, .wp-block-navigation:where(:not([class*="has-text-decoration"])) a:active {
|
|
text-decoration: none;
|
|
}
|
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
align-self: center;
|
|
line-height: 0;
|
|
display: inline-block;
|
|
font-size: inherit;
|
|
padding: 0;
|
|
background-color: inherit;
|
|
color: currentColor;
|
|
border: none;
|
|
width: 0.6em;
|
|
height: 0.6em;
|
|
margin-left: 0.25em;
|
|
}
|
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
display: inline-block;
|
|
stroke: currentColor;
|
|
width: inherit;
|
|
height: inherit;
|
|
margin-top: 0.075em;
|
|
}
|
|
.wp-block-navigation.is-vertical {
|
|
--navigation-layout-direction: column;
|
|
--navigation-layout-justify: initial;
|
|
--navigation-layout-align: flex-start;
|
|
}
|
|
.wp-block-navigation.no-wrap {
|
|
--navigation-layout-wrap: nowrap;
|
|
}
|
|
.wp-block-navigation.items-justified-center {
|
|
--navigation-layout-justification-setting: center;
|
|
--navigation-layout-justify: center;
|
|
}
|
|
.wp-block-navigation.items-justified-center.is-vertical {
|
|
--navigation-layout-align: center;
|
|
}
|
|
.wp-block-navigation.items-justified-right {
|
|
--navigation-layout-justification-setting: flex-end;
|
|
--navigation-layout-justify: flex-end;
|
|
}
|
|
.wp-block-navigation.items-justified-right.is-vertical {
|
|
--navigation-layout-align: flex-end;
|
|
}
|
|
.wp-block-navigation.items-justified-space-between {
|
|
--navigation-layout-justification-setting: space-between;
|
|
--navigation-layout-justify: space-between;
|
|
}
|
|
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
|
|
background-color: inherit;
|
|
color: inherit;
|
|
position: absolute;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: normal;
|
|
opacity: 0;
|
|
transition: opacity 0.1s linear;
|
|
visibility: hidden;
|
|
width: 0;
|
|
height: 0;
|
|
overflow: hidden;
|
|
left: -1px;
|
|
top: 100%;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content .wp-block-navigation__submenu-icon {
|
|
margin-right: 0;
|
|
margin-left: auto;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
|
|
margin: 0;
|
|
}
|
|
@media (min-width: 782px) {
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
|
|
left: 100%;
|
|
top: -1px;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before {
|
|
content: "";
|
|
position: absolute;
|
|
right: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
width: 0.5em;
|
|
background: transparent;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon {
|
|
margin-right: 0.25em;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon svg {
|
|
transform: rotate(-90deg);
|
|
}
|
|
}
|
|
.wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
|
|
visibility: visible;
|
|
overflow: visible;
|
|
opacity: 1;
|
|
width: auto;
|
|
height: auto;
|
|
min-width: 200px;
|
|
}
|
|
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container {
|
|
visibility: visible;
|
|
overflow: visible;
|
|
opacity: 1;
|
|
width: auto;
|
|
height: auto;
|
|
min-width: 200px;
|
|
}
|
|
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
|
|
visibility: visible;
|
|
overflow: visible;
|
|
opacity: 1;
|
|
width: auto;
|
|
height: auto;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container {
|
|
left: 0;
|
|
top: 100%;
|
|
}
|
|
@media (min-width: 782px) {
|
|
.wp-block-navigation.has-background .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
|
|
left: 100%;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.wp-block-navigation-submenu {
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
stroke: currentColor;
|
|
}
|
|
|
|
button.wp-block-navigation-item__content {
|
|
background-color: transparent;
|
|
border: none;
|
|
color: currentColor;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
font-style: inherit;
|
|
font-weight: inherit;
|
|
text-transform: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.wp-block-navigation-submenu__toggle {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
padding-right: 0.85em;
|
|
}
|
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
margin-left: -0.6em;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/**
|
|
* Margins
|
|
*/
|
|
.wp-block-navigation__responsive-container,
|
|
.wp-block-navigation__responsive-close,
|
|
.wp-block-navigation__responsive-dialog,
|
|
.wp-block-navigation .wp-block-page-list,
|
|
.wp-block-navigation__container,
|
|
.wp-block-navigation__responsive-container-content {
|
|
gap: inherit;
|
|
}
|
|
|
|
/**
|
|
* Paddings
|
|
*/
|
|
:where(.wp-block-navigation.has-background .wp-block-navigation-item a:not(.wp-element-button)),
|
|
:where(.wp-block-navigation.has-background .wp-block-navigation-submenu a:not(.wp-element-button)) {
|
|
padding: 0.5em 1em;
|
|
}
|
|
|
|
:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),
|
|
:where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)) {
|
|
padding: 0.5em 1em;
|
|
}
|
|
|
|
/**
|
|
* Justifications.
|
|
*/
|
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:last-child .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
|
|
left: -1px;
|
|
right: -1px;
|
|
}
|
|
@media (min-width: 782px) {
|
|
.wp-block-navigation.items-justified-space-between .wp-block-page-list > .has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-space-between > .wp-block-navigation__container > .has-child:last-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-page-list > .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
|
|
left: auto;
|
|
right: 100%;
|
|
}
|
|
}
|
|
|
|
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
|
|
background-color: #fff;
|
|
color: #000;
|
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.wp-block-navigation__container {
|
|
display: flex;
|
|
flex-wrap: var(--navigation-layout-wrap, wrap);
|
|
flex-direction: var(--navigation-layout-direction, initial);
|
|
justify-content: var(--navigation-layout-justify, initial);
|
|
align-items: var(--navigation-layout-align, initial);
|
|
list-style: none;
|
|
margin: 0;
|
|
padding-left: 0;
|
|
}
|
|
.wp-block-navigation__container .is-responsive {
|
|
display: none;
|
|
}
|
|
|
|
.wp-block-navigation__container:only-child,
|
|
.wp-block-page-list:only-child {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/**
|
|
* Mobile menu.
|
|
*/
|
|
@keyframes overlay-menu__fade-in-animation {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(0.5em);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
.wp-block-navigation__responsive-container {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
.wp-block-navigation__responsive-container .wp-block-navigation-link a {
|
|
color: inherit;
|
|
}
|
|
.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
|
|
display: flex;
|
|
flex-wrap: var(--navigation-layout-wrap, wrap);
|
|
flex-direction: var(--navigation-layout-direction, initial);
|
|
justify-content: var(--navigation-layout-justify, initial);
|
|
align-items: var(--navigation-layout-align, initial);
|
|
}
|
|
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
|
|
color: inherit !important;
|
|
background-color: inherit !important;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: inherit;
|
|
animation: overlay-menu__fade-in-animation 0.1s ease-out;
|
|
animation-fill-mode: forwards;
|
|
padding-top: var(--wp--style--root--padding-top, 2rem);
|
|
padding-right: var(--wp--style--root--padding-right, 2rem);
|
|
padding-bottom: var(--wp--style--root--padding-bottom, 2rem);
|
|
padding-left: var(--wp--style--root--padding-left, 2rem);
|
|
overflow: auto;
|
|
z-index: 100000;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
animation-duration: 1ms;
|
|
animation-delay: 0s;
|
|
}
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
|
|
padding-top: calc(2rem + 24px);
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: nowrap;
|
|
align-items: var(--navigation-layout-justification-setting, inherit);
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
|
|
justify-content: flex-start;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
|
|
display: none;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .submenu-container,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
height: auto;
|
|
width: auto;
|
|
overflow: initial;
|
|
min-width: 200px;
|
|
position: static;
|
|
border: none;
|
|
padding-left: 2rem;
|
|
padding-right: 2rem;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
|
|
gap: inherit;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
|
|
padding-top: var(--wp--style--block-gap, 2em);
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
|
|
padding: 0;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-page-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: var(--navigation-layout-justification-setting, initial);
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
|
|
color: inherit !important;
|
|
background: transparent !important;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
|
|
right: auto;
|
|
left: auto;
|
|
}
|
|
@media (min-width: 600px) {
|
|
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
|
|
display: block;
|
|
width: 100%;
|
|
position: relative;
|
|
z-index: auto;
|
|
background-color: inherit;
|
|
}
|
|
.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
|
|
display: none;
|
|
}
|
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
|
|
background-color: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.wp-block-navigation__toggle_button_label {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.wp-block-navigation__responsive-container-open,
|
|
.wp-block-navigation__responsive-container-close {
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
color: currentColor;
|
|
background: transparent;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
text-transform: inherit;
|
|
}
|
|
.wp-block-navigation__responsive-container-open svg,
|
|
.wp-block-navigation__responsive-container-close svg {
|
|
fill: currentColor;
|
|
pointer-events: none;
|
|
display: block;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.wp-block-navigation__responsive-container-open {
|
|
display: flex;
|
|
}
|
|
@media (min-width: 600px) {
|
|
.wp-block-navigation__responsive-container-open:not(.always-shown) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.wp-block-navigation__responsive-container-close {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.wp-block-navigation__responsive-close {
|
|
width: 100%;
|
|
max-width: var(--wp--style--global--wide-size, 100%);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
.wp-block-navigation__responsive-close:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.is-menu-open .wp-block-navigation__responsive-close,
|
|
.is-menu-open .wp-block-navigation__responsive-dialog,
|
|
.is-menu-open .wp-block-navigation__responsive-container-content {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wp-block-navigation__responsive-dialog {
|
|
position: relative;
|
|
}
|
|
|
|
.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
|
|
margin-top: 46px;
|
|
}
|
|
@media (min-width: 782px) {
|
|
.has-modal-open .admin-bar .is-menu-open .wp-block-navigation__responsive-dialog {
|
|
margin-top: 32px;
|
|
}
|
|
}
|
|
|
|
html.has-modal-open {
|
|
overflow: hidden;
|
|
} |