Skip to content

Commit

Permalink
Add fallback color if social image is transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
shaansubbaiah committed Oct 10, 2020
1 parent 94ff2c6 commit 6588aa1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resource/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--icon-moon-color: #0075ff;
--highlight-color: #bb86fe;
--highlight-text: #000000;
--image-fallback-color: #bb86fe;
}

:root[color-mode="light"] {
Expand Down Expand Up @@ -418,6 +419,8 @@ a {
.repo-socialprev-img {
width: 320px;
border-radius: 16px;
background: var(--image-fallback-color);
margin: 5px auto;
}

.repo-stats {
Expand Down

0 comments on commit 6588aa1

Please sign in to comment.