Skip to content

Commit

Permalink
SVG logo color theme aware
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Oct 27, 2023
1 parent 1ebbc33 commit e8c7995
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/images/fridge-it.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.large-logo {
background-color: var(--bs-body-color) !important;
mask: url(/images/fridge-it.svg) no-repeat center / contain;
-webkit-mask: url(/images/fridge-it.svg) no-repeat center / contain;
width: 10em;
height: 17.5em;
}

/* Favorite button */
input.favorite {
visibility: hidden;
Expand Down
7 changes: 1 addition & 6 deletions views/shop/index.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<div class='row'>
<div class='col text-center'>
<img
src='./images/fridge-it.svg'
class='mx-auto my-2 img-fluid shop-image-thumbnail'
alt='Logo lednice IT'
/>
<div class='col text-center large-logo'>
</div>
</div>
{{#if user}}
Expand Down

0 comments on commit e8c7995

Please sign in to comment.