gists/Userstyles/Hacker News Dark.css

155 lines
2.2 KiB
CSS
Raw Normal View History

2022-04-25 19:46:44 +00:00
/* font family */
body,
td,
.title,
div.comment,
span.pagetop {
font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
/* background colors */
2022-04-25 16:53:49 +00:00
body {
background-color: #262626 !important;
}
2022-04-25 19:46:44 +00:00
table#hnmain,
input,
textarea {
2022-04-25 16:53:49 +00:00
background-color: #222 !important;
}
2022-04-25 19:46:44 +00:00
/* header */
table#hnmain > tbody > tr:first-child > td {
2022-04-25 16:53:49 +00:00
background-color: #ff6600 !important;
2022-04-25 19:46:44 +00:00
padding: 4px;
}
b.hnname {
margin: 0 8px 0 4px;
2022-04-25 16:53:49 +00:00
}
2022-04-25 19:46:44 +00:00
tr#pagespace {
height: 16px !important;
}
/* text colors */
a:link {
color: #262626;
}
td.title a:link,
span.comment font,
span.comment font a:link,
table.fatitem td,
u a:link,
span.yclinks a:link,
2022-04-25 16:53:49 +00:00
body:not([id]),
2022-04-25 19:46:44 +00:00
td:nth-child(2):not(.subtext) > a:link,
input,
textarea,
p > a,
a > u,
.c00,
2022-04-25 16:53:49 +00:00
.c00 a:link,
2022-04-25 19:46:44 +00:00
a[href="http://www.ycombinator.com/apply/"],
2022-04-25 16:53:49 +00:00
a[href="https://www.ycombinator.com/apply/"] {
color: #dee2e6 !important;
}
2022-04-25 19:46:44 +00:00
.title,
.admin td,
.subtext a:link,
.subtext a:visited,
.comhead a:link,
a:visited {
color: #8b949e;
}
/* font size and white space improvements */
table.fatitem td,
td.title {
font-size: 16px;
}
table.fatitem td {
line-height: 22px;
}
table.fatitem td.subtext {
padding-bottom: 10px;
}
span.pagetop {
font-size: 15px;
}
span.pagetop > a {
margin: 0 3px;
}
td.subtext {
font-size: 12px;
color: #8b949e;
padding-top: 5px;
}
tr.spacer {
height: 10px !important;
}
div.comment {
font-size: 14px;
line-height: 19px;
2022-04-25 16:53:49 +00:00
}
/* search box and comment box */
2022-04-25 19:46:44 +00:00
input,
textarea {
border: 2px solid #8b949e !important;
2022-04-25 16:53:49 +00:00
}
2022-04-25 19:46:44 +00:00
textarea {
padding: 10px 16px;
border-radius: 16px;
}
input {
padding: 6px 16px;
border-radius: 1000px;
}
/* voting */
2022-04-25 16:53:49 +00:00
.votearrow {
position: relative;
background: none;
2022-04-25 20:54:48 +00:00
margin: 6px 10px;
2022-04-25 16:53:49 +00:00
}
.votearrow::after {
content: '';
position: absolute;
2022-04-25 20:54:48 +00:00
top: 0;
2022-04-25 16:53:49 +00:00
left: 0;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
2022-04-25 19:46:44 +00:00
border-bottom: 9px solid #ced4da;
2022-04-25 16:53:49 +00:00
}
a.nosee {
visibility: visible;
}
a.nosee .votearrow::after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 9px solid #ff6600;
2022-04-25 19:46:44 +00:00
}