Skip to content

Commit

Permalink
Issue #52: Make admin icons more flexible for other backgrounds.
Browse files Browse the repository at this point in the history
Fixes #52.
  • Loading branch information
laryn committed Aug 28, 2023
1 parent 3241761 commit 307e52e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/css/layout/gin_admin_bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
display: block;
width: 16px;
height: 16px;
background-color: var(--gin-color-disabled);
background-color: rgba(255, 255, 255, .6);
-webkit-mask-position: center center;
mask-position: center center;
}
Expand Down Expand Up @@ -151,6 +151,8 @@
#admin-bar a:before {
-webkit-mask-image: url("../../media/sprite.svg#drop-view");
mask-image: url("../../media/sprite.svg#drop-view");
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}

#admin-bar .admin-dashboard:before {
Expand Down
3 changes: 2 additions & 1 deletion styles/layout/gin_admin_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
width: 16px;
height: 16px;
margin-right: var(--gin-spacing-xs);
background-color: var(--gin-color-disabled);
background-color: rgba(255, 255, 255, .6);
mask-position: center center;
}

Expand All @@ -92,6 +92,7 @@
a {
&:before {
mask-image: icon('drop');
mask-repeat: no-repeat;
}
}

Expand Down

0 comments on commit 307e52e

Please sign in to comment.