Skip to content

Instantly share code, notes, and snippets.

@good
Last active June 20, 2017 17:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save good/a5e9b51d763867c433d1 to your computer and use it in GitHub Desktop.
Save good/a5e9b51d763867c433d1 to your computer and use it in GitHub Desktop.
/*
A quick user style to improve readability and add responsiveness to Daring Fireball http://daringfireball.net/
Made by Brian Warren http://begoodnotbad.com @mrwarren
Enjoy!
*/
body { font-size: 16px; }
body, h1, h2, h3, h4, h5, h6 { font-family: system, -apple-system, ".SFNSDisplay-Regular", "San Fransisco", Verdana, "Bitstream Vera Sans", Papyrus, sans-serif !important; }
#Box { width: 80%; position: relative; max-width: 1100px; }
#Main { width: 66%; margin-left: 30%; top: 0; }
html>body div#Sidebar { width: 25%; top: 150px; }
#BannerPromo { width: 300px; }
#Banner img { height: 70px; }
#SidebarTheDeck p { width: auto; margin-left: 0; }
@media (max-width: 800px) {
#Banner { margin-left: 0; }
#Box { width: 95%; }
body { min-width: 0; }
}
@media (max-width: 660px) {
#BannerPromo { width: 100%; margin-right: 0; margin-top: 0px; text-align: center; }
#Main { width: 100%; margin-left: 0; }
html>body div#Sidebar { width: 100%; position: relative; top: 0px; }
#Sidebar ul { margin-bottom: 1em; }
#Sidebar li { width: 49%; display: inline-block; text-align: center; }
#Sidebar li:nth-child(2) { display: none; }
#SidebarTheDeck { margin: 0 0 3em; text-align: center; }
#SidebarTheDeck p { font-size: .8em; margin: .5em 0 0 0; padding: 0; }
#SidebarTheDeck #ViaTheDeck { margin: 0 !important; padding: 0; }
#Banner { margin: 1em auto; }
#Sidebar > p { text-align: center; margin: 0 0 2em; }
}
@good
Copy link
Author

good commented Dec 13, 2015

Just updated to support t-shirt promo banner.

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