Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dark mode #29

Merged
merged 2 commits into from
Apr 20, 2019
Merged
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
33 changes: 32 additions & 1 deletion ProvisionQL/Resources/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<style>
body {
background: #f7f7f7;
color: #000;
margin: 20px;
font: 13px courier, monospaced, sans-serif;
font: 13px monospace;
line-height: 1.3;
}

Expand All @@ -21,6 +22,7 @@

.app img {
-webkit-filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.5));
filter: drop-shadow(0px 0px 3px rgba(0,0,0,0.5));
max-width: 60px;
}

Expand Down Expand Up @@ -103,6 +105,35 @@
color: #aaa;
font-size: 11px;
}

@media (prefers-color-scheme: dark) {
body {
background: #323232;
color: #fff;
}

a { color: #aaa; }
a:hover { color: #fff; }
a:visited { color: #aaa; }

.expired {
color: red;
}
.expiring {
color: orange;
}
.valid {
color: lightgreen;
}

tr:nth-child(odd) {
background-color: #292929;
}

tr:nth-child(even) {
background-color: #1e1e1e;
}
}
</style>
</head>
<body>
Expand Down