Skip to content

Instantly share code, notes, and snippets.

@cwhy
Last active September 21, 2020 06:18
Show Gist options
  • Save cwhy/6b813ad0d3cb157cc3f2aa0a17adf3aa to your computer and use it in GitHub Desktop.
Save cwhy/6b813ad0d3cb157cc3f2aa0a17adf3aa to your computer and use it in GitHub Desktop.
Print Hacker News Comment
html{
font-size: 16px;
width: 100%;
}
table td, table th { overflow-wrap: anywhere; }
.title>a{
color: black;
font-size: 1.5rem;
font-family: "charter", "Palatino Linotype", "Source Serif Pro", "Georgia", "serif"
}
#hnmain[width="85%"]{
/*background-color: #F7F7F7;*/
background-color: white;
width: 42rem;
/* margin: 4em 0; */
/* overflow: hidden; */
}
#hnmain .comment{
color: black;
line-height: 1.4rem;
font-family: "charter", "Palatino Linotype", "Source Serif Pro", "Georgia", "serif";
font-size: 1rem;
/* word-wrap:break-word; */
/* word-break: break-word; */
-webkit-hyphens: auto;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-after: 3;
-webkit-hyphenate-limit-chars: 6 3 3;
-webkit-hyphenate-limit-lines: 2;
-webkit-hyphenate-limit-last: always;
-webkit-hyphenate-limit-zone: 8%;
-moz-hyphens: auto;
-moz-hyphenate-limit-chars: 6 3 3;
-moz-hyphenate-limit-lines: 2;
-moz-hyphenate-limit-last: always;
-moz-hyphenate-limit-zone: 8%;
-ms-hyphens: auto;
-ms-hyphenate-limit-chars: 6 3 3;
-ms-hyphenate-limit-lines: 2;
-ms-hyphenate-limit-last: always;
-ms-hyphenate-limit-zone: 8%;
hyphens: auto;
hyphenate-limit-chars: 6 3 3;
hyphenate-limit-lines: 2;
hyphenate-limit-last: always;
hyphenate-limit-zone: 8%;
}
#hnmain>tbody>tr:first-child{
display:none
}
#hnmain>tbody>tr:last-child{
display:none
}
.votelinks{
display:none
}
.fatitem>tbody>tr{
display:none
}
.fatitem>tbody>tr.athing{
display:block
}
.reply{
display:none
}
.togg{
display:none
}
.ind>img[width="360"]{
width: 12rem
}
.ind>img[width="320"]{
width: 11rem
}
.ind>img[width="280"]{
width: 10rem
}
.ind>img[width="240"]{
width: 9rem
}
.ind>img[width="200"]{
width: 8rem
}
.ind>img[width="160"]{
width: 7rem
}
.ind>img[width="120"]{
width: 6rem
}
.ind>img[width="80"]{
width: 4rem
}
.ind>img[width="40"]{
width: 2rem
}
code{
text-transform: full-width;
font-family: "Candara", sans-serif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment