2021-05-11 05:43:08 -04:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2021-11-08 09:29:21 -05:00
|
|
|
/**
|
|
|
|
* Converts a hex value into the rgb equivalent.
|
|
|
|
*
|
|
|
|
* @param {string} hex - the hexadecimal value to convert
|
|
|
|
* @return {string} comma separated rgb values
|
|
|
|
*/
|
2021-05-11 05:43:08 -04:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2021-11-08 09:29:21 -05:00
|
|
|
.wp-block-cover {
|
|
|
|
/* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
|
|
|
|
}
|
|
|
|
.editor-styles-wrapper .wp-block-cover {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2021-05-11 05:43:08 -04:00
|
|
|
.wp-block-cover.is-placeholder {
|
|
|
|
min-height: auto !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
2021-11-08 09:29:21 -05:00
|
|
|
.wp-block-cover.is-placeholder .block-library-cover__resize-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.wp-block-cover.is-placeholder .components-placeholder.is-large {
|
|
|
|
min-height: 240px;
|
|
|
|
justify-content: flex-start;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
.wp-block-cover.is-placeholder .components-placeholder.is-large + .block-library-cover__resize-container {
|
|
|
|
min-height: 240px;
|
|
|
|
display: block;
|
|
|
|
}
|
2021-05-11 05:43:08 -04:00
|
|
|
.wp-block-cover.components-placeholder h2 {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
.wp-block-cover.is-transient::before {
|
|
|
|
background-color: #fff;
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
.wp-block-cover .components-spinner {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
top: 50%;
|
|
|
|
right: 50%;
|
|
|
|
transform: translate(50%, -50%);
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.wp-block-cover .wp-block-cover__inner-container {
|
|
|
|
text-align: right;
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.wp-block-cover .wp-block-cover__placeholder-background-options {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-09-20 11:43:29 -04:00
|
|
|
.wp-block-cover .wp-block-cover__image--placeholder-image {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2021-05-11 05:43:08 -04:00
|
|
|
|
|
|
|
[data-align=left] > .wp-block-cover,
|
|
|
|
[data-align=right] > .wp-block-cover {
|
|
|
|
max-width: 420px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block-library-cover__reset-button {
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block-library-cover__resize-container {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
2021-11-08 09:29:21 -05:00
|
|
|
min-height: 50px;
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.block-library-cover__resize-container:not(.is-resizing) {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-cover > .components-drop-zone .components-drop-zone__content {
|
2021-11-08 09:29:21 -05:00
|
|
|
opacity: 0.8 !important;
|
2021-05-21 06:14:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover {
|
|
|
|
background-attachment: scroll;
|
2022-09-20 11:43:29 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-block-support-panel__inner-wrapper > :not(.block-editor-tools-panel-color-gradient-settings__item) {
|
|
|
|
margin-top: 24px;
|
2021-05-11 05:43:08 -04:00
|
|
|
}
|