themes-wordpress/dalston/sass/style-child-theme-editor.scss

90 lines
1.8 KiB
SCSS

/**
* These styles should be loaded by the Block Editor only
*/
/**
* Abstracts
* - Mixins, variables and functions
*/
@import "../../varia/sass/abstracts/imports";
/**
* Child Theme Name
*/
@import "config-child-theme-deep";
/**
* Base
* - Reset the browser
*/
@import "../../varia/sass/base/editor";
/**
* Elements
* - Styles for basic HTML elemants
*/
@import "../../varia/sass/elements/editor";
/**
* Blocks
* - These styles replace key Gutenberg Block styles for fonts, colors, and
* spacing with CSS-variables overrides
*/
@import "../../varia/sass/blocks/editor";
/**
* Vendors
* - Styles for 3rd party plugins and WP extensions
*/
@import "../../varia/sass/vendors/editor";
/**
* Extras
*/
.editor-post-title__block .editor-post-title__input {
font-weight: 600;
}
.wp-block-media-text {
background: #{map-deep-get($config-global, "color", "secondary", "default")};
color: #{map-deep-get($config-global, "color", "background", "default")};
&.is-style-inset-borders:before {
border-color: #{map-deep-get($config-global, "color", "background", "default")};
}
}
.wp-block-a8c-blog-posts {
.cat-links a,
.entry-title a:hover,
.more-link,
.entry-meta a {
text-decoration: none;
}
&.image-alignbehind {
.cat-links a:hover,
.entry-title a:hover,
.more-link:hover,
.entry-meta a:hover {
text-decoration: underline;
}
}
}
.has-background:not(.has-background-background-color),
[class*="background-color"]:not(.has-background-background-color),
[style*="background-color"] {
.wp-block-a8c-blog-posts {
.cat-links a:hover,
.entry-title a:hover,
.more-link:hover,
.emtry-meta a:hover {
text-decoration: underline;
}
}
}
.wp-block-a8c-blog-posts + .button {
font-size: (strip-unit(map-deep-get($config-global, "font", "size", "base")) + 0em);
}