Skip to content

Instantly share code, notes, and snippets.

@leeoniya
Created November 9, 2012 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leeoniya/4049049 to your computer and use it in GitHub Desktop.
Save leeoniya/4049049 to your computer and use it in GitHub Desktop.
hackernews w/max-width
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("news.ycombinator.com"){
body > center > table {
max-width: 1000px;
}
.default {
padding-right: 30px;
text-align: justify;
}
textarea {
width: 97.5%;
}
body > center > table > tbody > tr > td > table[border]:first-child {
width: 100%;
}
br + br + input[type=submit] {
margin-bottom: -20px;
}
}
@leeoniya
Copy link
Author

leeoniya commented Nov 9, 2012

this stylesheet restricts how wide hackernews can get on your display as well as tweaks some spacing on the site. i work on 2x 1080p displays and running the eyeballs the entire width of the screen to read threads was getting a bit old. * this will probably screw up really deeply nested threads, but feel free to adjust as needed.

this is for the Stylish extension https://addons.mozilla.org/en-US/firefox/addon/stylish/, but you can copy-paste this into Firefox's userContent.css in your profile directory. see http://superuser.com/questions/318912/how-to-override-the-css-of-a-site-in-firefox-with-usercontent-css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment