gists/Userstyles/Hacker News Dark.css

155 lines
2.2 KiB
CSS

/* 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 */
body {
background-color: #262626 !important;
}
table#hnmain,
input,
textarea {
background-color: #222 !important;
}
/* header */
table#hnmain > tbody > tr:first-child > td {
background-color: #ff6600 !important;
padding: 4px;
}
b.hnname {
margin: 0 8px 0 4px;
}
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,
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;
}
.title,
.admin td,
.subtext a:link,
.subtext a:visited,
.comhead a:link,
a:visited {
color: #8b949e;
}
/* font size and white space improvements */
td.title {
font-size: 16px;
}
table.fatitem td.title {
font-size: 20px;
}
table.fatitem td.subtext {
font-size: 14px;
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;
}
/* search box and comment box */
input,
textarea {
border: 2px solid #8b949e !important;
}
textarea {
padding: 10px 16px;
border-radius: 16px;
}
input {
padding: 6px 16px;
border-radius: 1000px;
}
/* voting */
.votearrow {
position: relative;
background: none;
margin: 6px 10px;
}
.votearrow::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 9px solid #ced4da;
}
a.nosee {
visibility: visible;
}
a.nosee .votearrow::after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 9px solid #ff6600;
}