Skip to content

Commit

Permalink
fix #1465
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Jan 30, 2025
1 parent c55015d commit 17f025d
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/css/app/core/mixin/_entry-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

@mixin entry-content-theme() {
// @see app/setup/customizer-styles.php
> h2 {
> :where(h2) {
border-left: var(--entry-content-h2-border-left);
background-color: var(--entry-content-h2-background-color);
padding: var(--entry-content-h2-padding);
}

// @see app/setup/customizer-styles.php
> h3 {
> :where(h3) {
border-bottom: var(--entry-content-h3-border-bottom);
padding: var(--entry-content-h3-padding);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../../../../core/mixin/entry-content' as *;

.textwidget {
:where(.textwidget) {
@include entry-content-theme();
}
2 changes: 1 addition & 1 deletion src/css/app/object/project/_entry-content/_app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../../../core/mixin/entry-content' as *;

.p-entry-content {
:where(.p-entry-content) {
@include entry-content-theme();
}
6 changes: 4 additions & 2 deletions src/css/block-editor/app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@use 'sass:meta';
@use '../app/core/mixin/entry-content' as *;

.is-root-container,
.wp-block-freeform {
:where(
.is-root-container,
.wp-block-freeform
) {
@include entry-content-theme();
}

Expand Down
6 changes: 4 additions & 2 deletions src/css/block-library/_layout/_app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@use '../../app/core/mixin/entry-content' as *;

.is-layout-constrained,
.is-layout-flow {
:where(
.is-layout-constrained,
.is-layout-flow
) {
@include entry-content-theme();
}

Expand Down
3 changes: 2 additions & 1 deletion src/css/block-library/_wp-block-heading/_app.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.wp-block-heading.is-style-plain {
.wp-block-heading:where(.is-style-plain),
.wp-block-heading:where([class*="is-style-snow-monkey-"]) {
--entry-content-h2-background-color: transparent;
--entry-content-h2-border-left: none;
--wp--preset--color--sm-text: inherit;
Expand Down
14 changes: 6 additions & 8 deletions src/css/block-library/_wp-block-latest-posts/_app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
@use '../../app/core/mixin/entry-content' as *;

.wp-block-latest-posts {
&__post-full-content {
@include entry-content-theme();
:where(.wp-block-latest-posts__post-full-content) {
@include entry-content-theme();
}

// For editor
> div:not([class]) {
@include entry-content-theme();
}
}
// For editor
:where(.wp-block-latest-posts__post-full-content > div:not([class])) {
@include entry-content-theme();
}
6 changes: 2 additions & 4 deletions src/css/block-library/_wp-block-media-text/_app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@use '../../app/core/mixin/entry-content' as *;

.wp-block-media-text {
&__content {
@include entry-content-theme();
}
:where(.wp-block-media-text__content) {
@include entry-content-theme();
}
8 changes: 5 additions & 3 deletions src/css/dependency/snow-monkey-forms/app-theme.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@use '../../app/core/mixin/entry-content' as *;

.smf-complete-content,
.smf-system-error-content,
.smf-item__controls {
:where(
.smf-complete-content,
.smf-system-error-content,
.smf-item__controls
) {
@include entry-content-theme();
}

Expand Down

0 comments on commit 17f025d

Please sign in to comment.