Skip to content

Commit 05e57bb

Browse files
committed
show mask background for transparent svg files
1 parent 6f56f73 commit 05e57bb

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

web_src/css/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
--gap-inline: 0.25rem; /* gap for inline texts and elements, for example: the spaces for sentence with labels, button text, etc */
4141
--gap-block: 0.5rem; /* gap for element blocks, for example: spaces between buttons, menu image & title, header icon & title etc */
42+
43+
--background-view-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAG0lEQVQYlWN4+vTpf3SMDTAMBYXYBLFpHgoKAeiOf0SGE9kbAAAAAElFTkSuQmCC) right bottom var(--color-primary-light-7);
4244
}
4345

4446
@media (min-width: 768px) and (max-width: 1200px) {

web_src/css/features/imagediff.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
.image-diff-container img {
1515
border: 1px solid var(--color-primary-light-7);
16-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAG0lEQVQYlWN4+vTpf3SMDTAMBYXYBLFpHgoKAeiOf0SGE9kbAAAAAElFTkSuQmCC") right bottom var(--color-primary-light-7);
16+
background: var(--background-view-image);
1717
}
1818

1919
.image-diff-container .before-container {

web_src/css/repo/file-view.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
.view-raw img[src$=".svg" i] {
8282
max-height: 600px !important;
8383
max-width: 600px !important;
84+
background: var(--background-view-image);
8485
}
8586

8687
.file-view-render-container {

0 commit comments

Comments
 (0)