Skip to content

Commit aa3eaea

Browse files
fix for moving background image on hover
1 parent 621bf48 commit aa3eaea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/styles/block-design-system-blocks.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ body:not(.wp-admin) .stk-block-columns:has(> .stk-block-content > .stk-block-col
204204

205205
// Block Background
206206
.stk-block-background {
207-
background: cssvar(block-background-color);
207+
background: cssvar(block-background-color) center center;
208208
border-radius: cssvar(block-background-border-radius);
209209
box-shadow: cssvar(block-background-box-shadow);
210210
&:not(.stk--no-padding) {
@@ -214,7 +214,7 @@ body:not(.wp-admin) .stk-block-columns:has(> .stk-block-content > .stk-block-col
214214
}
215215
}
216216
&:hover {
217-
background: var(--stk-block-background-color-hover, cssvar(block-background-color));
217+
background: var(--stk-block-background-color-hover, cssvar(block-background-color)) center center;
218218
}
219219
}
220220

src/styles/editor-block-design-system.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ div.stk-block > :is(h1,h2,h3,h4,h5,h6) {
163163
[data-type^="stackable/"] .stk--is-hovered.stk-block-background {
164164
border-width: cssvar(block-background-border-width-hover);
165165
box-shadow: cssvar(block-background-box-shadow-hover);
166-
background: var(--stk-block-background-color-hover, cssvar(block-background-color));
166+
background: var(--stk-block-background-color-hover, cssvar(block-background-color)) center center;
167167
}
168168

169169
// Images

0 commit comments

Comments
 (0)