Skip to content

Commit

Permalink
Image blocks: add pattern background
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed May 1, 2024
1 parent b14565c commit 46f8eb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/src/components/Forms/Blocks/Elements/BlockFigure.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default {
.k-block-figure-container:not([data-disabled="true"]) {
cursor: pointer;
}
.k-block-figure-container img {
background: var(--pattern-light);
}
.k-block-figure iframe {
border: 0;
pointer-events: none;
Expand Down
3 changes: 3 additions & 0 deletions panel/src/components/Forms/Blocks/Types/Gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export default {
.k-block-type-gallery-placeholder {
background: var(--color-background);
}
.k-block-type-gallery img {
background: var(--pattern-light);
}
.k-block-type-gallery figcaption {
padding-top: 0.5rem;
color: var(--color-gray-600);
Expand Down

0 comments on commit 46f8eb1

Please sign in to comment.