|
@@ -15,89 +15,93 @@
|
|
|
// Gutenberg text color options
|
|
|
.has-text-color {}
|
|
|
|
|
|
+.wp-block .has-primary-color,
|
|
|
.has-primary-color {
|
|
|
color: #{map-deep-get($config-global, "color", "primary", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-secondary-color,
|
|
|
.has-secondary-color {
|
|
|
color: #{map-deep-get($config-global, "color", "secondary", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-color,
|
|
|
.has-foreground-color {
|
|
|
color: #{map-deep-get($config-global, "color", "foreground", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-light-color,
|
|
|
.has-foreground-light-color {
|
|
|
color: #{map-deep-get($config-global, "color", "foreground", "light")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-dark-color,
|
|
|
.has-foreground-dark-color {
|
|
|
color: #{map-deep-get($config-global, "color", "foreground", "dark")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-light-color,
|
|
|
.has-background-light-color {
|
|
|
color: #{map-deep-get($config-global, "color", "background", "light")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-dark-color,
|
|
|
.has-background-dark-color {
|
|
|
color: #{map-deep-get($config-global, "color", "background", "dark")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-color,
|
|
|
.has-background-color {
|
|
|
color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
// Gutenberg background-color options
|
|
|
.has-background {
|
|
|
- &:not(.has-background-background-color) a,
|
|
|
+ &:not(.has-background-background-color) a:not(.wp-block-button__link),
|
|
|
+ a:not(.wp-block-button__link),
|
|
|
p, h1, h2, h3, h4, h5, h6 {
|
|
|
color: currentColor;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-primary-background-color,
|
|
|
.has-primary-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "primary", "default")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
-}
|
|
|
-
|
|
|
-.has-primary-background-color {
|
|
|
- background-color: #{map-deep-get($config-global, "color", "primary", "default")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-secondary-background-color,
|
|
|
.has-secondary-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "secondary", "default")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-background-color,
|
|
|
.has-foreground-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "foreground", "default")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-light-background-color,
|
|
|
.has-foreground-light-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "foreground", "light")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-foreground-dark-background-color,
|
|
|
.has-foreground-dark-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "foreground", "dark")};
|
|
|
- color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-light-background-color,
|
|
|
.has-background-light-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "background", "light")};
|
|
|
- color: #{map-deep-get($config-global, "color", "foreground", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-dark-background-color,
|
|
|
.has-background-dark-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "background", "dark")};
|
|
|
- color: #{map-deep-get($config-global, "color", "foreground", "default")};
|
|
|
}
|
|
|
|
|
|
+.wp-block .has-background-background-color,
|
|
|
.has-background-background-color {
|
|
|
background-color: #{map-deep-get($config-global, "color", "background", "default")};
|
|
|
- color: #{map-deep-get($config-global, "color", "foreground", "default")};
|
|
|
}
|
|
|
|
|
|
// Gutenberg Font-size utility classes
|