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

Dark mode dashboard #816

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
43 changes: 37 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
padding-bottom: 5px;
}

table.dataTable > tbody > tr:target,
table.dataTable > tbody > tr.shown:target + tr {
background: #fd0;
table.dataTable > tbody > tr:is(:target, .shown:target + tr) {
background: #fdeb8b;
}

tr:not(:hover):not(:focus-within) > .link-control > a {
Expand All @@ -44,12 +43,44 @@
height: 1em;
background: currentColor;
}

.clipicon-MDN {
-webkit-mask: url(asset/MDN.svg) center no-repeat;
mask: url(asset/MDN.svg) center no-repeat;
width: 1.20833em;
}

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
:root, body {
background-color: #111;
color: white;
}
.jumbotron {
background-color: #333;
color: white;
}
a {
color: #6db5f2;
}
.dataTables_wrapper :is(.dataTables_length, .dataTables_filter,
.dataTables_info, .dataTables_processing, .dataTables_paginate) {
color: #ccc;
}
table.dataTable > tbody > tr:is(:target, .shown:target + tr) {
background: #443103;
}
.table > :is(thead, tbody, tfoot) > tr > :is(td, th) {
border-top-color: #333;
}
table.dataTable tbody tr {
background-color: #111;
}
table.dataTable.no-footer {
border-bottom-color: #ccc;
}
}
</style>
</head>
<body>
Expand Down Expand Up @@ -108,7 +139,7 @@ <h3>legend</h3>
<dt><button class="btn btn-default btn-xs">neutral</button></dt><dd>Mozilla is not convinced of the merits of this work, but does not see any significant negative potential.</dd>
<dt><button class="btn btn-danger btn-xs">negative</button></dt><dd>Mozilla believes that pursuing this work in its current form would not be good for the web.</dd>
<dt><button class="btn btn-warning btn-xs">defer</button></dt><dd>Mozilla takes no position on this work.</dd>
<dt><button class="btn btn-dark btn-xs">under consideration</button></dt><dd>Mozilla has not taken a position on this work and is gathering more information.</dd>
<dt><button class="btn btn-info btn-xs">under consideration</button></dt><dd>Mozilla has not taken a position on this work and is gathering more information.</dd>
</dl>

</div>
Expand All @@ -126,7 +157,7 @@ <h3>legend</h3>
"neutral": "default",
"negative": "danger",
"defer": "warning",
"under consideration": "dark",
"under consideration": "info",
}

var REPO_OWNER = "mozilla";
Expand Down