first commit
This commit is contained in:
158
wp-includes/blocks/cover/block.json
Normal file
158
wp-includes/blocks/cover/block.json
Normal file
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/cover",
|
||||
"title": "Cover",
|
||||
"category": "media",
|
||||
"description": "Add an image or video with a text overlay.",
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"role": "content"
|
||||
},
|
||||
"useFeaturedImage": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"hasParallax": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"isRepeated": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"dimRatio": {
|
||||
"type": "number",
|
||||
"default": 100
|
||||
},
|
||||
"overlayColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"customOverlayColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"isUserOverlayColor": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"backgroundType": {
|
||||
"type": "string",
|
||||
"default": "image"
|
||||
},
|
||||
"focalPoint": {
|
||||
"type": "object"
|
||||
},
|
||||
"minHeight": {
|
||||
"type": "number"
|
||||
},
|
||||
"minHeightUnit": {
|
||||
"type": "string"
|
||||
},
|
||||
"gradient": {
|
||||
"type": "string"
|
||||
},
|
||||
"customGradient": {
|
||||
"type": "string"
|
||||
},
|
||||
"contentPosition": {
|
||||
"type": "string"
|
||||
},
|
||||
"isDark": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"templateLock": {
|
||||
"type": [ "string", "boolean" ],
|
||||
"enum": [ "all", "insert", "contentOnly", false ]
|
||||
},
|
||||
"tagName": {
|
||||
"type": "string",
|
||||
"default": "div"
|
||||
},
|
||||
"sizeSlug": {
|
||||
"type": "string"
|
||||
},
|
||||
"poster": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "video",
|
||||
"attribute": "poster"
|
||||
}
|
||||
},
|
||||
"usesContext": [ "postId", "postType" ],
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"html": false,
|
||||
"shadow": true,
|
||||
"spacing": {
|
||||
"padding": true,
|
||||
"margin": [ "top", "bottom" ],
|
||||
"blockGap": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"padding": true,
|
||||
"blockGap": true
|
||||
}
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"heading": true,
|
||||
"text": true,
|
||||
"background": false,
|
||||
"__experimentalSkipSerialization": [ "gradients" ],
|
||||
"enableContrastChecker": false
|
||||
},
|
||||
"dimensions": {
|
||||
"aspectRatio": true
|
||||
},
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"layout": {
|
||||
"allowJustification": false
|
||||
},
|
||||
"interactivity": {
|
||||
"clientNavigation": true
|
||||
},
|
||||
"filter": {
|
||||
"duotone": true
|
||||
},
|
||||
"allowedBlocks": true
|
||||
},
|
||||
"selectors": {
|
||||
"filter": {
|
||||
"duotone": ".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"
|
||||
}
|
||||
},
|
||||
"editorStyle": "wp-block-cover-editor",
|
||||
"style": "wp-block-cover"
|
||||
}
|
||||
131
wp-includes/blocks/cover/editor-rtl.css
Normal file
131
wp-includes/blocks/cover/editor-rtl.css
Normal file
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Radius scale.
|
||||
*/
|
||||
/**
|
||||
* Elevation scale.
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Mobile specific styles
|
||||
*/
|
||||
/**
|
||||
* Editor styles.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
.wp-block-cover.is-placeholder {
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
min-height: 240px;
|
||||
}
|
||||
.wp-block-cover.is-placeholder .components-placeholder.is-large {
|
||||
justify-content: flex-start;
|
||||
z-index: 1;
|
||||
}
|
||||
.wp-block-cover.is-placeholder:focus::after {
|
||||
min-height: auto;
|
||||
}
|
||||
.wp-block-cover.components-placeholder h2 {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-cover.is-transient {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-cover.is-transient::before {
|
||||
background-color: #fff;
|
||||
content: "";
|
||||
height: 100%;
|
||||
opacity: 0.3;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.wp-block-cover.is-transient .wp-block-cover__inner-container {
|
||||
z-index: 2;
|
||||
}
|
||||
.wp-block-cover .components-spinner {
|
||||
position: absolute;
|
||||
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%;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__image--placeholder-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
[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;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content > div,
|
||||
.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container {
|
||||
pointer-events: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
|
||||
.color-block-support-panel__inner-wrapper > :not(.block-editor-tools-panel-color-gradient-settings__item) {
|
||||
margin-top: 24px;
|
||||
}
|
||||
1
wp-includes/blocks/cover/editor-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/cover/editor-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover .components-spinner{margin:0;position:absolute;right:50%;top:50%;transform:translate(50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:right}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[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{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
||||
131
wp-includes/blocks/cover/editor.css
Normal file
131
wp-includes/blocks/cover/editor.css
Normal file
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Radius scale.
|
||||
*/
|
||||
/**
|
||||
* Elevation scale.
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Mobile specific styles
|
||||
*/
|
||||
/**
|
||||
* Editor styles.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
.wp-block-cover.is-placeholder {
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
min-height: 240px;
|
||||
}
|
||||
.wp-block-cover.is-placeholder .components-placeholder.is-large {
|
||||
justify-content: flex-start;
|
||||
z-index: 1;
|
||||
}
|
||||
.wp-block-cover.is-placeholder:focus::after {
|
||||
min-height: auto;
|
||||
}
|
||||
.wp-block-cover.components-placeholder h2 {
|
||||
color: inherit;
|
||||
}
|
||||
.wp-block-cover.is-transient {
|
||||
position: relative;
|
||||
}
|
||||
.wp-block-cover.is-transient::before {
|
||||
background-color: #fff;
|
||||
content: "";
|
||||
height: 100%;
|
||||
opacity: 0.3;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
.wp-block-cover.is-transient .wp-block-cover__inner-container {
|
||||
z-index: 2;
|
||||
}
|
||||
.wp-block-cover .components-spinner {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__inner-container {
|
||||
text-align: left;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__placeholder-background-options {
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-cover .wp-block-cover__image--placeholder-image {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
[data-align=left] > .wp-block-cover,
|
||||
[data-align=right] > .wp-block-cover {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.block-library-cover__reset-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.block-library-cover__resize-container {
|
||||
position: absolute !important;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content > div,
|
||||
.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container {
|
||||
pointer-events: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
|
||||
.color-block-support-panel__inner-wrapper > :not(.block-editor-tools-panel-color-gradient-settings__item) {
|
||||
margin-top: 24px;
|
||||
}
|
||||
1
wp-includes/blocks/cover/editor.min.css
vendored
Normal file
1
wp-includes/blocks/cover/editor.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-cover.is-placeholder{align-items:stretch;display:flex;min-height:240px;padding:0!important}.wp-block-cover.is-placeholder .components-placeholder.is-large{justify-content:flex-start;z-index:1}.wp-block-cover.is-placeholder:focus:after{min-height:auto}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient{position:relative}.wp-block-cover.is-transient:before{background-color:#fff;content:"";height:100%;opacity:.3;position:absolute;width:100%;z-index:1}.wp-block-cover.is-transient .wp-block-cover__inner-container{z-index:2}.wp-block-cover .components-spinner{left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.wp-block-cover .wp-block-cover__inner-container{margin-left:0;margin-right:0;text-align:left}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}.wp-block-cover .wp-block-cover__image--placeholder-image{bottom:0;left:0;position:absolute;right:0;top:0}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:420px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{bottom:0;left:0;min-height:50px;position:absolute!important;right:0;top:0}.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .block-library-cover__resize-container,.components-popover.block-editor-block-popover.block-library-cover__resizable-box-popover .components-popover__content>div{overflow:visible;pointer-events:none}.block-editor-block-patterns-list__list-item .has-parallax.wp-block-cover{background-attachment:scroll}.color-block-support-panel__inner-wrapper>:not(.block-editor-tools-panel-color-gradient-settings__item){margin-top:24px}
|
||||
509
wp-includes/blocks/cover/style-rtl.css
Normal file
509
wp-includes/blocks/cover/style-rtl.css
Normal file
@@ -0,0 +1,509 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Radius scale.
|
||||
*/
|
||||
/**
|
||||
* Elevation scale.
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Mobile specific styles
|
||||
*/
|
||||
/**
|
||||
* Editor styles.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover {
|
||||
min-height: 430px;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
background-position: center center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
overflow: clip;
|
||||
box-sizing: border-box; direction: ltr;
|
||||
/**
|
||||
* Set a default background color for has-background-dim _unless_ it includes another
|
||||
* background-color class (e.g. has-green-background-color). The presence of another
|
||||
* background-color class implies that another style will provide the background color
|
||||
* for the overlay.
|
||||
*
|
||||
* See:
|
||||
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
|
||||
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
|
||||
*/
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover-image .has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover.has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
||||
background-color: #000;
|
||||
}
|
||||
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
||||
.wp-block-cover .has-background-dim.has-background-gradient {
|
||||
background-color: transparent;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim::before,
|
||||
.wp-block-cover.has-background-dim::before {
|
||||
content: "";
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image .wp-block-cover__background,
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
|
||||
.wp-block-cover .wp-block-cover__background,
|
||||
.wp-block-cover .wp-block-cover__gradient-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background {
|
||||
opacity: 0.1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background {
|
||||
opacity: 0.2;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background {
|
||||
opacity: 1;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
|
||||
opacity: 0;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10 {
|
||||
opacity: 0.1;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20 {
|
||||
opacity: 0.2;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30 {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40 {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50 {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60 {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70 {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80 {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90 {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
||||
opacity: 1;
|
||||
}
|
||||
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
display: flex;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__inner-container,
|
||||
.wp-block-cover .wp-block-cover__inner-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
color: inherit; direction: rtl;
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-left,
|
||||
.wp-block-cover.is-position-top-left {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-center,
|
||||
.wp-block-cover.is-position-top-center {
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-right,
|
||||
.wp-block-cover.is-position-top-right {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-left,
|
||||
.wp-block-cover.is-position-center-left {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-center,
|
||||
.wp-block-cover.is-position-center-center {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-right,
|
||||
.wp-block-cover.is-position-center-right {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-left,
|
||||
.wp-block-cover.is-position-bottom-left {
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-center,
|
||||
.wp-block-cover.is-position-bottom-center {
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-right,
|
||||
.wp-block-cover.is-position-bottom-right {
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container {
|
||||
margin: 0;
|
||||
width: auto;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__image-background,
|
||||
.wp-block-cover-image video.wp-block-cover__video-background,
|
||||
.wp-block-cover .wp-block-cover__image-background,
|
||||
.wp-block-cover video.wp-block-cover__video-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
object-fit: cover;
|
||||
outline: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background,
|
||||
.wp-block-cover .wp-block-cover__embed-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
outline: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
|
||||
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background iframe,
|
||||
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
|
||||
.wp-block-cover .wp-block-cover__embed-background iframe,
|
||||
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 50%;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
transform: translate(50%, -50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
@supports (-webkit-touch-callout: inherit) {
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
.wp-block-cover-image.is-repeated,
|
||||
.wp-block-cover.is-repeated,
|
||||
.wp-block-cover__image-background.is-repeated,
|
||||
video.wp-block-cover__video-background.is-repeated {
|
||||
background-repeat: repeat;
|
||||
background-size: auto;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image h2,
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text {
|
||||
color: #fff;
|
||||
}
|
||||
section.wp-block-cover-image h2 a,
|
||||
section.wp-block-cover-image h2 a:hover,
|
||||
section.wp-block-cover-image h2 a:focus,
|
||||
section.wp-block-cover-image h2 a:active,
|
||||
.wp-block-cover-image-text a,
|
||||
.wp-block-cover-image-text a:hover,
|
||||
.wp-block-cover-image-text a:focus,
|
||||
.wp-block-cover-image-text a:active,
|
||||
.wp-block-cover-text a,
|
||||
.wp-block-cover-text a:hover,
|
||||
.wp-block-cover-text a:focus,
|
||||
.wp-block-cover-text a:active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover.has-left-content {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover.has-right-content {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image.has-left-content > h2,
|
||||
.wp-block-cover-image.has-left-content .wp-block-cover-image-text,
|
||||
.wp-block-cover.has-left-content .wp-block-cover-text {
|
||||
margin-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image.has-right-content > h2,
|
||||
.wp-block-cover-image.has-right-content .wp-block-cover-image-text,
|
||||
.wp-block-cover.has-right-content .wp-block-cover-text {
|
||||
margin-left: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image > h2,
|
||||
.wp-block-cover-image .wp-block-cover-image-text,
|
||||
.wp-block-cover .wp-block-cover-text {
|
||||
font-size: 2em;
|
||||
line-height: 1.25;
|
||||
z-index: 1;
|
||||
margin-bottom: 0;
|
||||
max-width: 840px;
|
||||
padding: 0.44em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:where(.wp-block-cover:not(.has-text-color)),
|
||||
:where(.wp-block-cover-image:not(.has-text-color)) {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
:where(.wp-block-cover.is-light:not(.has-text-color)),
|
||||
:where(.wp-block-cover-image.is-light:not(.has-text-color)) {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-cover p:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h1:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h2:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h3:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h4:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h5:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h6:not(.has-text-color)) {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient)::before,
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__background,
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__gradient-background {
|
||||
z-index: 1;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
||||
z-index: 1;
|
||||
}
|
||||
.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
||||
z-index: auto;
|
||||
}
|
||||
1
wp-includes/blocks/cover/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/cover/style-rtl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
511
wp-includes/blocks/cover/style.css
Normal file
511
wp-includes/blocks/cover/style.css
Normal file
@@ -0,0 +1,511 @@
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Typography
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Radius scale.
|
||||
*/
|
||||
/**
|
||||
* Elevation scale.
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Mobile specific styles
|
||||
*/
|
||||
/**
|
||||
* Editor styles.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover {
|
||||
min-height: 430px;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
background-position: center center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
overflow: clip;
|
||||
box-sizing: border-box;
|
||||
/*rtl:raw: direction: ltr; */
|
||||
/**
|
||||
* Set a default background color for has-background-dim _unless_ it includes another
|
||||
* background-color class (e.g. has-green-background-color). The presence of another
|
||||
* background-color class implies that another style will provide the background color
|
||||
* for the overlay.
|
||||
*
|
||||
* See:
|
||||
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
|
||||
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
|
||||
*/
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover-image .has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover.has-background-dim:not([class*=-background-color]),
|
||||
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
||||
background-color: #000;
|
||||
}
|
||||
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
||||
.wp-block-cover .has-background-dim.has-background-gradient {
|
||||
background-color: transparent;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim::before,
|
||||
.wp-block-cover.has-background-dim::before {
|
||||
content: "";
|
||||
background-color: inherit;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image .wp-block-cover__background,
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
|
||||
.wp-block-cover .wp-block-cover__background,
|
||||
.wp-block-cover .wp-block-cover__gradient-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background {
|
||||
opacity: 0.1;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background {
|
||||
opacity: 0.2;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__background,
|
||||
.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient)::before,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__background,
|
||||
.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background {
|
||||
opacity: 1;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-0 {
|
||||
opacity: 0;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-10,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-10 {
|
||||
opacity: 0.1;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-20,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-20 {
|
||||
opacity: 0.2;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-30,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-30 {
|
||||
opacity: 0.3;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-40,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-40 {
|
||||
opacity: 0.4;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-50,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-50 {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-60,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-60 {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-70,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-70 {
|
||||
opacity: 0.7;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-80,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-80 {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-90,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-90 {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover-image .wp-block-cover__background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover .wp-block-cover__gradient-background.has-background-dim.has-background-dim-100,
|
||||
.wp-block-cover .wp-block-cover__background.has-background-dim.has-background-dim-100 {
|
||||
opacity: 1;
|
||||
}
|
||||
.wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
}
|
||||
.wp-block-cover-image.aligncenter, .wp-block-cover-image.alignleft, .wp-block-cover-image.alignright,
|
||||
.wp-block-cover.aligncenter,
|
||||
.wp-block-cover.alignleft,
|
||||
.wp-block-cover.alignright {
|
||||
display: flex;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__inner-container,
|
||||
.wp-block-cover .wp-block-cover__inner-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
color: inherit;
|
||||
/*rtl:raw: direction: rtl; */
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-left,
|
||||
.wp-block-cover.is-position-top-left {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-center,
|
||||
.wp-block-cover.is-position-top-center {
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-top-right,
|
||||
.wp-block-cover.is-position-top-right {
|
||||
align-items: flex-start;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-left,
|
||||
.wp-block-cover.is-position-center-left {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-center,
|
||||
.wp-block-cover.is-position-center-center {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-center-right,
|
||||
.wp-block-cover.is-position-center-right {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-left,
|
||||
.wp-block-cover.is-position-bottom-left {
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-center,
|
||||
.wp-block-cover.is-position-bottom-center {
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
}
|
||||
.wp-block-cover-image.is-position-bottom-right,
|
||||
.wp-block-cover.is-position-bottom-right {
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
|
||||
margin: 0;
|
||||
}
|
||||
.wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container, .wp-block-cover-image.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-top-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-center-right .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-left .wp-block-cover__inner-container,
|
||||
.wp-block-cover.has-custom-content-position.has-custom-content-position.is-position-bottom-right .wp-block-cover__inner-container {
|
||||
margin: 0;
|
||||
width: auto;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__image-background,
|
||||
.wp-block-cover-image video.wp-block-cover__video-background,
|
||||
.wp-block-cover .wp-block-cover__image-background,
|
||||
.wp-block-cover video.wp-block-cover__video-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
object-fit: cover;
|
||||
outline: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background,
|
||||
.wp-block-cover .wp-block-cover__embed-background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: none;
|
||||
max-height: none;
|
||||
outline: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper,
|
||||
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover__embed-background iframe,
|
||||
.wp-block-cover-image .wp-block-cover__embed-background .wp-block-embed__wrapper iframe,
|
||||
.wp-block-cover .wp-block-cover__embed-background iframe,
|
||||
.wp-block-cover .wp-block-cover__embed-background .wp-block-embed__wrapper iframe {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
@supports (-webkit-touch-callout: inherit) {
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.wp-block-cover-image.has-parallax,
|
||||
.wp-block-cover.has-parallax,
|
||||
.wp-block-cover__image-background.has-parallax,
|
||||
video.wp-block-cover__video-background.has-parallax {
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
.wp-block-cover-image.is-repeated,
|
||||
.wp-block-cover.is-repeated,
|
||||
.wp-block-cover__image-background.is-repeated,
|
||||
video.wp-block-cover__video-background.is-repeated {
|
||||
background-repeat: repeat;
|
||||
background-size: auto;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image h2,
|
||||
.wp-block-cover-image-text,
|
||||
.wp-block-cover-text {
|
||||
color: #fff;
|
||||
}
|
||||
section.wp-block-cover-image h2 a,
|
||||
section.wp-block-cover-image h2 a:hover,
|
||||
section.wp-block-cover-image h2 a:focus,
|
||||
section.wp-block-cover-image h2 a:active,
|
||||
.wp-block-cover-image-text a,
|
||||
.wp-block-cover-image-text a:hover,
|
||||
.wp-block-cover-image-text a:focus,
|
||||
.wp-block-cover-image-text a:active,
|
||||
.wp-block-cover-text a,
|
||||
.wp-block-cover-text a:hover,
|
||||
.wp-block-cover-text a:focus,
|
||||
.wp-block-cover-text a:active {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover.has-left-content {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.wp-block-cover-image .wp-block-cover.has-right-content {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image.has-left-content > h2,
|
||||
.wp-block-cover-image.has-left-content .wp-block-cover-image-text,
|
||||
.wp-block-cover.has-left-content .wp-block-cover-text {
|
||||
margin-left: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image.has-right-content > h2,
|
||||
.wp-block-cover-image.has-right-content .wp-block-cover-image-text,
|
||||
.wp-block-cover.has-right-content .wp-block-cover-text {
|
||||
margin-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
section.wp-block-cover-image > h2,
|
||||
.wp-block-cover-image .wp-block-cover-image-text,
|
||||
.wp-block-cover .wp-block-cover-text {
|
||||
font-size: 2em;
|
||||
line-height: 1.25;
|
||||
z-index: 1;
|
||||
margin-bottom: 0;
|
||||
max-width: 840px;
|
||||
padding: 0.44em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
:where(.wp-block-cover:not(.has-text-color)),
|
||||
:where(.wp-block-cover-image:not(.has-text-color)) {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
:where(.wp-block-cover.is-light:not(.has-text-color)),
|
||||
:where(.wp-block-cover-image.is-light:not(.has-text-color)) {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
:root :where(.wp-block-cover p:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h1:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h2:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h3:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h4:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h5:not(.has-text-color)),
|
||||
:root :where(.wp-block-cover h6:not(.has-text-color)) {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__video-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__embed-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__image-background {
|
||||
z-index: 0;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)).has-background-dim:not(.has-background-gradient)::before,
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__background,
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__gradient-background {
|
||||
z-index: 1;
|
||||
}
|
||||
body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
||||
z-index: 1;
|
||||
}
|
||||
.has-modal-open body:not(.editor-styles-wrapper) .wp-block-cover:not(.wp-block-cover:has(.wp-block-cover__background + .wp-block-cover__inner-container)) .wp-block-cover__inner-container {
|
||||
z-index: auto;
|
||||
}
|
||||
1
wp-includes/blocks/cover/style.min.css
vendored
Normal file
1
wp-includes/blocks/cover/style.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user