|
@@ -8,7 +8,7 @@
|
|
.wp-block-cover__inner-container,
|
|
.wp-block-cover__inner-container,
|
|
.wp-block-cover-image-text,
|
|
.wp-block-cover-image-text,
|
|
.wp-block-cover-text {
|
|
.wp-block-cover-text {
|
|
- color: #{map-deep-get($config-cover, "color", "foreground")};
|
|
|
|
|
|
+ color: currentColor; // uses text color specified with background-color options in /blocks/utilities/_style.scss
|
|
margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
|
|
|
|
|
|
@@ -17,6 +17,15 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* default & custom background-color */
|
|
|
|
+ &:not([class*='background-color']){
|
|
|
|
+ .wp-block-cover__inner-container,
|
|
|
|
+ .wp-block-cover-image-text,
|
|
|
|
+ .wp-block-cover-text {
|
|
|
|
+ color: #{map-deep-get($config-cover, "color", "foreground")};
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
/* Treating H2 separately to account for legacy /core styles */
|
|
/* Treating H2 separately to account for legacy /core styles */
|
|
h2 {
|
|
h2 {
|
|
font-size: #{map-deep-get($config-heading, "font", "size", "h2")};
|
|
font-size: #{map-deep-get($config-heading, "font", "size", "h2")};
|
|
@@ -41,7 +50,7 @@
|
|
|
|
|
|
.wp-block-cover__inner-container {
|
|
.wp-block-cover__inner-container {
|
|
|
|
|
|
- width: calc(100% - #{ 2 * map-deep-get($config-global, "spacing", "vertical") };
|
|
|
|
|
|
+ width: calc(100% - #{ 2 * map-deep-get($config-global, "spacing", "vertical") });
|
|
|
|
|
|
& > * {
|
|
& > * {
|
|
margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
|
|
margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
|