45 lines
1.9 KiB
CSS
45 lines
1.9 KiB
CSS
.wp-block-cover,.wp-block-cover-image {
|
|
align-items: center;
|
|
background-position: 50%;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: center;
|
|
min-height: 430px;
|
|
overflow: hidden;
|
|
overflow: clip;
|
|
padding: 1em;
|
|
position: relative
|
|
}
|
|
|
|
.wp-block-cover .wp-block-cover__background,.wp-block-cover .wp-block-cover__gradient-background,.wp-block-cover-image .wp-block-cover__background,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover.has-background-dim:not(.has-background-gradient):before {
|
|
bottom: 0;
|
|
left: 0;
|
|
opacity: .5;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
z-index: 1
|
|
}
|
|
|
|
.wp-block-cover .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-image .wp-block-cover__background.has-background-dim.has-background-dim-0,.wp-block-cover-image .wp-block-cover__gradient-background.has-background-dim.has-background-dim-0 {
|
|
opacity: 0
|
|
}
|
|
|
|
.wp-block-cover .wp-block-cover__inner-container,.wp-block-cover-image .wp-block-cover__inner-container {
|
|
color: inherit;
|
|
width: 100%;
|
|
z-index: 1
|
|
}
|
|
|
|
:where(.wp-block-cover-image:not(.has-text-color)),:where(.wp-block-cover:not(.has-text-color)) {
|
|
color: #fff
|
|
}
|
|
|
|
:where(.wp-block-cover-image.is-light:not(.has-text-color)),:where(.wp-block-cover.is-light:not(.has-text-color)) {
|
|
color: #000
|
|
}
|
|
|
|
: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)),:root :where(.wp-block-cover p:not(.has-text-color)) {
|
|
color: inherit
|
|
}
|