Skip to content

Commit

Permalink
chore: svg optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
comfysage committed Nov 16, 2024
1 parent ea952b3 commit fdbfc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styles/pronouns.cc/catppuccin.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
.btn-close-white,
.btn-close {
--bs-btn-close-color: @surface0;
@svg: escape("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='@{surface1}'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>");
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="@{surface1}"><path d="M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414"/></svg>');
--bs-btn-close-bg: url("data:image/svg+xml,@{svg}");
--bs-btn-close-opacity: 1.0;
--bs-btn-close-hover-opacity: .75;
Expand All @@ -245,7 +245,7 @@
opacity: var(--bs-btn-close-opacity);
}
.navbar-toggler-icon {
@svg: escape("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='@{surface1}' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/></svg>");
@svg: escape('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path stroke="@{surface1}" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/></svg>');
--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,@{svg}");
}
}
Expand Down

0 comments on commit fdbfc0a

Please sign in to comment.