Skip to content

Commit

Permalink
refactor: use SVG icons for better visual effects
Browse files Browse the repository at this point in the history
fix #637
  • Loading branch information
fengyuanchen committed Nov 23, 2024
1 parent cf6fb29 commit dc7dd56
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## next

- Use SVG icons for better visual effects (#637).

## 1.11.6 (Sep 17, 2023)

- Fix an issue where some CSS styles were incompatible with old browsers (#611).
Expand Down
2 changes: 1 addition & 1 deletion src/css/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.viewer-fullscreen-exit,
.viewer-close {
&::before {
background-image: url('../images/icons.png');
background-image: url('../images/icons.svg');
background-repeat: no-repeat;
background-size: 280px;
color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion src/css/viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
&-fullscreen-exit,
&-close {
&::before {
background-image: url('../images/icons.png');
background-image: url('../images/icons.svg');
background-repeat: no-repeat;
background-size: 280px;
color: transparent;
Expand Down
Binary file removed src/images/icons.png
Binary file not shown.
Binary file removed src/images/icons.psd
Binary file not shown.
1 change: 1 addition & 0 deletions src/images/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc7dd56

Please # to comment.