Created
August 30, 2018 03:59
-
-
Save AriaFallah/4a98381549cb8a750d4544e53cb21b64 to your computer and use it in GitHub Desktop.
HN Stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0; | |
font-size: 16px !important; | |
text-rendering: optimizeLegibility; | |
} | |
img[src="y18.gif"] { | |
margin-right: 5px; | |
} | |
textarea { | |
outline: 0; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
} | |
input[type="submit"] { | |
background-color: whitesmoke; | |
border-radius: 0; | |
padding: 5px; | |
} | |
#hnmain { | |
width: 100%; | |
background-color: white; | |
} | |
#hnmain > tbody > tr:first-child { | |
height: 40px; | |
} | |
#hnmain > tbody > tr:nth-child(2) { | |
height: 20px !important; | |
} | |
#hnmain > tbody > tr:first-child > td { | |
background-color: #f3f3f3; | |
border-bottom: 3px solid #ff6600; | |
} | |
#hnmain > tbody > tr:first-child > td > table, | |
.itemlist, | |
.fatitem, | |
.comment-tree { | |
max-width: 1000px; | |
margin: 0 auto; | |
} | |
@media (min-width: 1000px) { | |
#hnmain > tbody > tr:first-child > td > table, | |
.itemlist, | |
.fatitem, | |
.comment-tree { | |
width: 1000px; | |
} | |
} | |
.spacer { | |
height: 12px !important; | |
} | |
html[op="news"] .itemlist, | |
.fatitem { | |
table-layout: fixed; | |
} | |
.fatitem { | |
border-collapse: collapse; | |
} | |
.fatitem td { | |
padding: 0; | |
} | |
.itemlist > tbody > tr:nth-child(3n + 2) > td:first-child { | |
width: 0px; | |
visibility: hidden; | |
} | |
.athing td:first-child.title { | |
width: 0px; | |
visibility: hidden; | |
} | |
.votelinks { | |
width: 30px; | |
vertical-align: middle; | |
} | |
.athing.comtr .votelinks { | |
vertical-align: top; | |
} | |
.comment-tree { | |
border-spacing: 0 10px; | |
} | |
.comment-tree > tbody { | |
border: 2px dashed #ccc; | |
padding: 5px; | |
padding-right: 20px; | |
margin: 5px; | |
display: block; | |
} | |
.title { | |
font-size: 1.1rem; | |
} | |
.default, | |
.comment { | |
font-size: 0.9rem; | |
} | |
.subtext, | |
.comhead, | |
.hnuser, | |
.age, | |
.togg, | |
.reply u { | |
font-size: 0.8rem; | |
} | |
.title, | |
.default, | |
.comment, | |
.subtext, | |
.comhead { | |
font-family: 'Source Sans Pro'; | |
} | |
.topsel { | |
border-bottom: 2px solid #ff6600; | |
} | |
.topsel a { | |
color: black !important; | |
} | |
form { | |
max-width: 1000px; | |
margin: 0 auto; | |
} | |
html[op="threads"] .athing { | |
max-width: 1000px; | |
margin: 0 auto; | |
display: block; | |
} | |
/* latin */ | |
@font-face { | |
font-family: 'Source Sans Pro'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2'); | |
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment