Adds Hacker News dark mode userstyle

This commit is contained in:
Andrew Gioia 2022-04-25 12:53:49 -04:00
parent f3349f8dbf
commit 226443b9ea

View File

@ -0,0 +1,91 @@
@-moz-document domain("news.ycombinator.com") {
body {
background-color: #262626 !important;
}
body > center > table, input, textarea {
background-color: #222 !important;
}
body > center > table > tbody > tr:first-child > td {
background-color: #ff6600 !important;
}
/* Bright text */
td.title a:link,
span.comment font,
span.comment font a:link,
u a:link,
span.yclinks a:link,
body:not([id]),
td:nth-child(2):not(.subtext) > a:link,
input,
textarea,
p > a,
a > u,
.c00,
.c00 a:link,
a[href="http://www.ycombinator.com/apply/"],
a[href="https://www.ycombinator.com/apply/"] {
color: #dee2e6 !important;
}
.admin td {
color: #aaa !important;
}
/* search box and comment box */
input, textarea {
border: 1px solid #828282 !important;
}
.votearrow {
position: relative;
background: none;
margin: 4px 10px;
}
.votearrow::after {
content: '';
position: absolute;
top: 2px;
left: 0;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 9px solid #ccc;
}
a.nosee {
visibility: visible;
}
a.nosee .votearrow::after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 9px solid #ff6600;
}
.title {
font-family: Inter, sans-serif;
font-size: 16px;
}
.subtext {
font-family: Inter, sans-serif;
font-size: 12px;
color: #aaa;
padding-top: 5px;
}
tr.spacer {
height: 10px !important;
}
.comment {
font-family: Inter, sans-serif;
font-size: 14px;
line-height: 1.25rem;
}
}