Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Add dark theme support #20

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions src/popup/copy-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/popup/popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,22 @@ body {
.info {
white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
body {
background: #414141;
outline: 1px solid #7f7f7f;
color: #c4c4c4;
}
.copy {
background: url("../popup/copy-dark.svg") no-repeat;
}
}

@media (prefers-color-scheme: light) {
body {
background: #f1f3f5;
outline: 1px solid #7f7f7f;
color: #343a40;
}
apiraino marked this conversation as resolved.
Show resolved Hide resolved
}