WordPress/wp-includes/blocks/navigation/editor-rtl.css

487 lines
12 KiB
CSS
Raw Normal View History

/**
* 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.
*/
/**
* Editor only CSS.
*/
.editor-styles-wrapper .wp-block-navigation ul {
margin-top: 0;
margin-bottom: 0;
margin-right: 0;
padding-right: 0;
}
.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block {
margin-right: revert;
margin-left: revert;
}
.wp-block-navigation-item__label {
display: inline;
}
/**
* Submenus.
*/
.wp-block-navigation__container.is-parent-of-selected-block {
visibility: visible;
opacity: 1;
overflow: visible;
}
.wp-block-navigation__container,
.wp-block-navigation-item {
background-color: inherit;
}
.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover > .wp-block-navigation__submenu-container {
opacity: 0;
visibility: hidden;
}
.has-child.is-selected > .wp-block-navigation__submenu-container, .has-child.has-child-selected > .wp-block-navigation__submenu-container {
display: flex;
opacity: 1;
visibility: visible;
}
.is-dragging-components-draggable .has-child.is-dragging-within > .wp-block-navigation__submenu-container {
opacity: 1;
visibility: visible;
}
.is-editing > .wp-block-navigation__container {
visibility: visible;
opacity: 1;
display: flex;
flex-direction: column;
}
.is-dragging-components-draggable .wp-block-navigation-link > .wp-block-navigation__container {
opacity: 1;
visibility: hidden;
}
.is-dragging-components-draggable .wp-block-navigation-link > .wp-block-navigation__container .block-editor-block-draggable-chip-wrapper {
visibility: visible;
}
Update @wordpress packages Update packages to include these bug fixes from Gutenberg: - Image block: Set image display to grid when no alignment sent to properly align caption on resize - Update and align template descriptions - Site Editor - prevent loading state from showing the admin menu. - Add client side routing for Site Editor - Navigation: Add clearance for appender in submenus. - Fix CSS Custom Properties for presets in the site editor - Add/navigation blocks post processing after migration from menu items - Allow selector ordering to ensure theme.json root selector margin takes precedence - Do not remove theme presets if defaults are hidden - Format library: fix unsetting highlight color - FSE: Fix template resolution to give precedence to child theme PHP templates over parent theme block templates with equal specificity - ColorPalette: Improving accessibility and visibility - Update: Make the color popover on the gradient picker appear as expected - Site Editor: Display a notice if export fails - Fix docs and function naming for gallery block registration in PHP - Switch to addEventListener for load event in the navigation block view script - Fix mistake in _remove_theme_attribute_in_block_template_content - Better synchronisation between Gutenberg and Core code - Move the block page templates hook into compat/5.9 folder - Moves to the template loader hooks and functions into lib/compat folder - Refactor the gutenberg_is_fse_theme function to use wp_is_block_theme - Site Editor: Update support doc URL in Welcome Guide - Global Styles: Add Welcome Guide toggle - Hide remove control point when removing would break gradient control - Don't request the deprecated navigation areas endpoint outside of the Gutenberg plugin - Image: Fix resizer controls being hidden in Safari when switching between alignments - Remove Navigation Menus from WP Admin sidebar - Site Editor: Hide the block appender in the Template Part editor - Site Editor: Use server definition for the Template Areas - Synchronize wp_is_block_theme and block-templates block support with Core - E2E: Retry login again after a bad nonce request to prevent intermittent test failures - Fix theme requirement validation with WP 5.8 - Fix WP 5.9 check for conditionally running code - Fix post comment form input width - Border Style Control: Update styling for consistency with border width control - Fix form-submit styles by adding button classes to the submit-button in post-comments block - Site Editor: Fix edit template part link in header dropdown - Move duotone palette to the bottom of global styles gradients - Fix how appearanceTools works - Move WP 5.9 wp-admin menus compatibility code to lib/compat folder - Revert "Site Editor: Set the <title> on the list page to be same as the CPT name" - Site Editor: Document Actions: add SR text to heading 1 - Do not register global styles CPT in WordPress 5.9 - Global Styles: Move the 'Edit colors' button to a standard menu item - Fix styles for previews and patterns - Site Editor: Fix failing E2E test - Templates: Search for old template names in the parent theme too - Remove 4 instances of 'gutenberg' text domain from WordPress core - Fix content loss when ungrouping template parts or reusable blocks - Simplify the RESET_BLOCK action to fix template part focus mode content loss - [Global Styles]: Make Blocks section more distinguishable - Only use block markup for comment form button when using a block theme - Navigation: Fix vertical alignment of page list in modal. - Fix: ToggleGroupControl active state - Remove gutenberg_ prefix from @wordpress/block-library Props ocean90, oandregal, hellofromtonya, youknowriad. See #54487. Built from https://develop.svn.wordpress.org/trunk@52364 git-svn-id: http://core.svn.wordpress.org/trunk@51956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-12-14 02:57:26 +01:00
.is-editing > .wp-block-navigation__submenu-container > .block-list-appender {
display: block;
position: static;
}
.wp-block-navigation__submenu-container .block-list-appender {
display: none;
}
/**
* Colors Selector component
*/
.block-library-colors-selector {
width: auto;
}
.block-library-colors-selector .block-library-colors-selector__toggle {
display: block;
margin: 0 auto;
padding: 3px;
width: auto;
}
.block-library-colors-selector .block-library-colors-selector__icon-container {
height: 30px;
position: relative;
margin: 0 auto;
padding: 3px;
display: flex;
align-items: center;
border-radius: 4px;
}
.block-library-colors-selector .block-library-colors-selector__state-selection {
margin-right: auto;
margin-left: auto;
border-radius: 11px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
width: 22px;
min-width: 22px;
height: 22px;
min-height: 22px;
line-height: 20px;
padding: 2px;
}
.block-library-colors-selector .block-library-colors-selector__state-selection > svg {
min-width: auto !important;
}
.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color > svg,
.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color > svg path {
color: inherit;
}
.block-library-colors-selector__popover .color-palette-controller-container {
padding: 16px;
}
.block-library-colors-selector__popover .components-base-control__label {
height: 20px;
line-height: 20px;
}
.block-library-colors-selector__popover .component-color-indicator {
float: left;
margin-top: 2px;
}
.block-library-colors-selector__popover .components-panel__body-title {
display: none;
}
.wp-block-navigation .block-editor-button-block-appender {
justify-content: flex-start;
}
/**
* Setup state
*/
.components-placeholder.wp-block-navigation-placeholder {
outline: none;
padding: 0;
box-shadow: none;
background: none;
min-height: 0;
color: inherit;
}
.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset {
font-size: inherit;
}
.components-placeholder.wp-block-navigation-placeholder .components-placeholder__fieldset .components-button {
margin-bottom: 0;
}
.is-selected .components-placeholder.wp-block-navigation-placeholder {
color: #1e1e1e;
}
.wp-block-navigation-placeholder .components-spinner {
margin-top: -4px;
margin-right: 4px;
vertical-align: middle;
margin-left: 7px;
}
@keyframes loadingpulse {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
.wp-block-navigation-placeholder__preview {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
width: 100%;
overflow: hidden;
}
.wp-block-navigation-placeholder__preview.is-loading {
animation: loadingpulse 1s linear infinite;
animation-delay: 0.5s;
}
.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item {
position: relative;
min-width: 72px;
}
.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item::before {
display: block;
content: "";
border-radius: 2px;
background: currentColor;
height: 16px;
width: 100%;
}
.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon {
height: 24px;
}
.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon svg {
fill: currentColor;
}
.wp-block-navigation-placeholder__preview .wp-block-navigation-item.wp-block-navigation-item,
.wp-block-navigation-placeholder__preview .wp-block-navigation-placeholder__preview-search-icon {
opacity: 0.3;
}
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__preview:not(.is-loading) {
display: flex;
opacity: 0;
width: 0;
overflow: hidden;
flex-wrap: nowrap;
flex: 0;
}
.wp-block-navigation.is-selected .is-small .wp-block-navigation-placeholder__preview:not(.is-loading), .wp-block-navigation.is-selected .is-medium .wp-block-navigation-placeholder__preview:not(.is-loading) {
display: none;
}
.wp-block-navigation-placeholder__controls {
padding: 8px;
border-radius: 2px;
background-color: #fff;
box-shadow: inset 0 0 0 1px #1e1e1e;
flex-direction: row;
align-items: center;
display: none;
position: relative;
z-index: 1;
float: right;
width: 100%;
}
.is-large .wp-block-navigation-placeholder__controls {
padding: 4px 8px;
}
.wp-block-navigation.is-selected .wp-block-navigation-placeholder__controls {
display: flex;
}
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions, .is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions {
flex-direction: column;
}
.is-small .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr, .is-medium .wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions hr {
display: none;
}
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__icon {
margin-left: 12px;
height: 36px;
}
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator {
display: flex;
padding: 0 0 0 6px;
align-items: center;
justify-content: flex-start;
line-height: 0;
min-height: 36px;
margin-right: 4px;
}
.wp-block-navigation-placeholder__controls .wp-block-navigation-placeholder__actions__indicator svg {
margin-left: 4px;
}
.wp-block-navigation-placeholder__actions {
display: flex;
font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
gap: 6px;
height: 100%;
}
.wp-block-navigation-placeholder__actions .components-dropdown,
.wp-block-navigation-placeholder__actions > .components-button {
margin-left: 0;
}
.wp-block-navigation-placeholder__actions.wp-block-navigation-placeholder__actions hr {
border: 0;
min-height: 1px;
min-width: 1px;
background-color: #1e1e1e;
margin: auto 0;
height: 100%;
max-height: 16px;
}
/**
* Mobile menu.
*/
@media (min-width: 600px) {
.wp-block-navigation__responsive-container:not(.is-menu-open) .components-button.wp-block-navigation__responsive-container-close {
display: none;
}
}
.wp-block-navigation__responsive-container.is-menu-open {
position: fixed;
top: 155px;
}
@media (min-width: 782px) {
.wp-block-navigation__responsive-container.is-menu-open {
top: 93px;
}
}
@media (min-width: 782px) {
.wp-block-navigation__responsive-container.is-menu-open {
right: 36px;
}
}
@media (min-width: 960px) {
.wp-block-navigation__responsive-container.is-menu-open {
right: 160px;
}
}
@media (min-width: 782px) {
.has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
top: 141px;
}
}
.is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
.is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
top: 141px;
}
.is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open {
left: 280px;
}
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
right: 0;
top: 155px;
}
@media (min-width: 782px) {
.is-fullscreen-mode .wp-block-navigation__responsive-container.is-menu-open {
top: 61px;
}
}
@media (min-width: 782px) {
.is-fullscreen-mode .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
top: 109px;
}
}
.is-fullscreen-mode .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
.is-fullscreen-mode .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
top: 109px;
}
body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
top: 0;
left: 0;
bottom: 0;
right: 0;
}
@media (min-width: 600px) {
.wp-block-navigation__responsive-close {
pointer-events: none;
}
.wp-block-navigation__responsive-close .wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-close .block-editor-block-list__layout * {
pointer-events: all;
}
}
.wp-block-navigation__responsive-close .wp-block-pages-list__item__link {
pointer-events: none;
}
.components-button.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,
.components-button.wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
padding: 0;
height: auto;
color: inherit;
}
.is-menu-open .wp-block-navigation__responsive-container-content * .block-list-appender {
margin-top: 16px;
}
@keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.wp-block-navigation__unsaved-changes {
position: relative;
}
.wp-block-navigation__unsaved-changes .components-spinner {
position: absolute;
top: calc(50% - 18px / 2);
right: calc(50% - 18px / 2);
opacity: 0;
animation: 0.5s linear 2s normal forwards fadein;
}
@keyframes fadeouthalf {
0% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}
.wp-block-navigation__unsaved-changes-overlay.is-saving {
opacity: 1;
animation: 0.5s linear 2s normal forwards fadeouthalf;
}
.wp-block-navigation-delete-menu-button {
width: 100%;
justify-content: center;
margin-bottom: 16px;
}