From 226443b9ea51856143b23739bf3f2d3646e48b7b Mon Sep 17 00:00:00 2001 From: Andrew Gioia Date: Mon, 25 Apr 2022 12:53:49 -0400 Subject: [PATCH] Adds Hacker News dark mode userstyle --- Userstyles/Hacker News Dark.css | 91 +++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Userstyles/Hacker News Dark.css diff --git a/Userstyles/Hacker News Dark.css b/Userstyles/Hacker News Dark.css new file mode 100644 index 0000000..8e0c96d --- /dev/null +++ b/Userstyles/Hacker News Dark.css @@ -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; +} +}