Skip to content

Instantly share code, notes, and snippets.

@amereservant
Created November 16, 2011 05:37
Show Gist options
  • Save amereservant/1369368 to your computer and use it in GitHub Desktop.
Save amereservant/1369368 to your computer and use it in GitHub Desktop.
My Default Template
/* Reset and set defaults
-------------------------------------------------------------------------------*/
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, time, mark, audio, video { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent }
article, aside, figure, footer, header, hgroup, nav, section { display:block }
img, object, embed { max-width:100% }
/* force a vertical scrollbar to prevent a jumpy page */
html { overflow-y:scroll }
/* we use a lot of ULs that aren't bulleted.
don't forget to restore the bullets within content. */
ul { list-style:none }
blockquote, q { quotes:none }
blockquote:before, blockquote:after, q:before, q:after { content:''; content:none }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent }
del { text-decoration:line-through }
abbr[title], dfn[title] { border-bottom:1px dotted #000; cursor:help }
/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0 }
th { font-weight:bold; vertical-align:bottom }
td { font-weight:normal; vertical-align:top }
hr { display:block; height:1px; border:0; border-top:1px solid #CCC; margin:1em 0; padding:0 }
input, select { vertical-align:middle }
pre { white-space:pre;/* CSS2 */ white-space:pre-wrap;/* CSS 2.1 */ white-space:pre-line;/* CSS 3 (and 2.1 as well, actually) */ word-wrap:break-word;/* IE */ }
input[type="radio"] { vertical-align:text-bottom }
input[type="checkbox"] { vertical-align:bottom; *vertical-align:baseline }
.ie6 input { vertical-align:text-bottom }
select, input, textarea { font:99% sans-serif }
table { font-size:inherit; font:100% }
/* Accessible focus treatment
people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline:none }
small { font-size:85% }
strong, th { font-weight:bold }
td, td img { vertical-align:top }
/* Make sure sup and sub don't screw with your line-heights
gist.github.com/413930 */
sub, sup { font-size:75%; line-height:0; position:relative }
sup { top:-0.5em }
sub { bottom:-0.25em }
/* standardize any monospaced elements */
pre, code, kbd, samp { font-family:monospace, sans-serif }
/* hand cursor on clickable elements */
.clickable, label, input[type=button], input[type=submit], button { cursor:pointer }
/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea { margin:0 }
/* make buttons play nice in IE */
button { width:auto; overflow:visible }
/* scale images in IE7 more attractively */
.ie7 img { -ms-interpolation-mode:bicubic }
/* prevent BG image flicker upon hover */
.ie6 html {filter: expression(document.execCommand("BackgroundImageCache", false, true));}
/* let's clear some floats */
.clear { clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0 }
.clearfix:before, .clearfix:after { content:"\0020"; display:block; height:0; overflow:hidden; width:0 }
.clearfix:after { clear:both }
.clearfix { zoom:1 }
.floatleft { float:left }
.floatright, .container_12 .floatright { float:right }
/* 960 Grid - http://960.gs/
-------------------------------------------------------------------------------*/
body{ min-width:960px }
.container_12{ margin-left:auto; margin-right:auto; width:960px }
.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12{ display:inline; float:left; position:relative; margin-left:10px; margin-right:10px }
.push_1, .pull_1, .push_2, .pull_2, .push_3, .pull_3, .push_4, .pull_4, .push_5, .pull_5, .push_6, .pull_6, .push_7, .pull_7, .push_8, .pull_8, .push_9, .pull_9, .push_10, .pull_10, .push_11, .pull_11, .push_12, .pull_12{ position:relative }
.alpha{ margin-left:0 }
.omega{ margin-right:0 }
.container_12 .grid_1{ width:60px }
.container_12 .grid_2{ width:140px }
.container_12 .grid_3{ width:220px }
.container_12 .grid_4{ width:300px }
.container_12 .grid_5{ width:380px }
.container_12 .grid_6{ width:460px }
.container_12 .grid_7{ width:540px }
.container_12 .grid_8{ width:620px }
.container_12 .grid_9{ width:700px }
.container_12 .grid_10{ width:780px }
.container_12 .grid_11{ width:860px }
.container_12 .grid_12{ width:940px }
.container_12 .prefix_1{ padding-left:80px }
.container_12 .prefix_2{ padding-left:160px }
.container_12 .prefix_3{ padding-left:240px }
.container_12 .prefix_4{ padding-left:320px }
.container_12 .prefix_5{ padding-left:400px }
.container_12 .prefix_6{ padding-left:480px }
.container_12 .prefix_7{ padding-left:560px }
.container_12 .prefix_8{ padding-left:640px }
.container_12 .prefix_9{ padding-left:720px }
.container_12 .prefix_10{ padding-left:800px }
.container_12 .prefix_11{ padding-left:880px }
.container_12 .suffix_1{ padding-right:80px }
.container_12 .suffix_2{ padding-right:160px }
.container_12 .suffix_3{ padding-right:240px }
.container_12 .suffix_4{ padding-right:320px }
.container_12 .suffix_5{ padding-right:400px }
.container_12 .suffix_6{ padding-right:480px }
.container_12 .suffix_7{ padding-right:560px }
.container_12 .suffix_8{ padding-right:640px }
.container_12 .suffix_9{ padding-right:720px }
.container_12 .suffix_10{ padding-right:800px }
.container_12 .suffix_11{ padding-right:880px }
.container_12 .push_1{ left:80px }
.container_12 .push_2{ left:160px }
.container_12 .push_3{ left:240px }
.container_12 .push_4{ left:320px }
.container_12 .push_5{ left:400px }
.container_12 .push_6{ left:480px }
.container_12 .push_7{ left:560px }
.container_12 .push_8{ left:640px }
.container_12 .push_9{ left:720px }
.container_12 .push_10{ left:800px }
.container_12 .push_11{ left:880px }
.container_12 .pull_1{ left:-80px }
.container_12 .pull_2{left:-160px}
.container_12 .pull_3{left:-240px}
.container_12 .pull_4{left:-320px}
.container_12 .pull_5{left:-400px}
.container_12 .pull_6{left:-480px}
.container_12 .pull_7{left:-560px}
.container_12 .pull_8{left:-640px}
.container_12 .pull_9{left:-720px}
.container_12 .pull_10{left:-800px}
.container_12 .pull_11{left:-880px}
/* Ok, this is where the fun starts.
-------------------------------------------------------------------------------*/
/* new Linux- and Windows-friendly sans-serif font stack: http://mky.be/fontstack */
body { font:13px Arial, serif; line-height:1.3em }
/* using local fonts? make sure to read up on Paul Irish's
Bulletproof @font-face syntax: http://mky.be/font-face/bulletproof/ */
/* we like off-black for text */
body, select, input, textarea { color:#333 }
a { color:#057CC1; text-decoration:none }
a:hover { color:#69f }
/* Custom text-selection colors (remove any text shadows: twitter.com/miketaylr/status/12228805301) */
::-moz-selection{ background:#fcd700; color:#fff; text-shadow:none }
::selection { background:#fcd700; color:#fff; text-shadow:none }
/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color:#fcd700 }
ins { background-color:#fcd700; color:#000; text-decoration:none }
mark {background-color:#fcd700; color:#000; font-style:italic; font-weight:bold }
h1, h2, h3, h4, h5, h6 { display:block }
h1 { font-size:2em; line-height:1em }
#header h2 { }
#header { border-bottom:1px solid #000; margin-bottom:20px }
#header hgroup { padding:40px 0 }
#header nav { float:right }
#header nav ul { float:right; background:rgba(0, 0, 0, 0.8) }
.lt9 #header nav ul, .lt #header #searchsubmit { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000,endColorstr=#cc000000); }
#header nav li { display:inline; text-align:center; float:left }
#header nav li a { color:#FFF; display:block; font-size:1.2em; padding:10px }
#header nav li a:hover { color:#D1E751 }
#header .searchbox { text-align:right; top:40px }
#header #searchsubmit { background:rgba(0, 0, 0, 0.8); border:1px solid #000; border-radius:2px; color:#FFF; padding:2px }
/* And here begins the Wordpress fun.
-------------------------------------------------------------------------------*/
#page-wrap { }
.post {}
.entry-content {}
.entry-content a {}
.entry-content a:hover {}
#meta {}
.postmetadata {}
#sidebar {}
.navgation {}
.next-posts {}
.prev-posts {}
#searchform {}
#s {}
#searchsubmt {}
ol.commentlist { list-style:none }
ol.commentlist li {}
ol.commentlist li.alt {}
ol.commentlist li.bypostauthor {}
ol.commentlist li.byuser {}
ol.commentlist li.comment-author-admin {}
ol.commentlist li.comment { border-bottom:1px dotted #666; padding:10px }
ol.commentlist li.comment div.comment-author {}
ol.commentlist li.comment div.vcard {}
ol.commentlist li.comment div.vcard cite.fn { font-style:normal }
ol.commentlist li.comment div.vcard cite.fn a.url {}
ol.commentlist li.comment div.vcard img.avatar { float:right; margin:0 0 10px 10px }
ol.commentlist li.comment div.vcard img.avatar-32 {}
ol.commentlist li.comment div.vcard img.photo {}
ol.commentlist li.comment div.vcard span.says {}
ol.commentlist li.comment div.commentmetadata {}
ol.commentlist li.comment div.comment-meta { font-size:10px }
ol.commentlist li.comment div.comment-meta a { color:#CCC }
ol.commentlist li.comment p {}
ol.commentlist li.comment ul {}
ol.commentlist li.comment div.reply { font-size:11px }
ol.commentlist li.comment div.reply a { font-weight:bold }
ol.commentlist li.comment ul.children { list-style:none; margin:10px 0 0 }
ol.commentlist li.comment ul.children li {}
ol.commentlist li.comment ul.children li.alt {}
ol.commentlist li.comment ul.children li.bypostauthor {}
ol.commentlist li.comment ul.children li.byuser {}
ol.commentlist li.comment ul.children li.comment {}
ol.commentlist li.comment ul.children li.comment-author-admin {}
ol.commentlist li.comment ul.children li.depth-2 {border-left: 5px solid #555; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-3 {border-left: 5px solid #999; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-4 {border-left: 5px solid #bbb; margin: 0 0 10px 10px;}
ol.commentlist li.comment ul.children li.depth-5 {}
ol.commentlist li.comment ul.children li.odd {}
ol.commentlist li.even {background: #fff;}
ol.commentlist li.odd {background: #f6f6f6;}
ol.commentlist li.parent {border-left: 5px solid #111;}
ol.commentlist li.thread-alt {}
ol.commentlist li.thread-even {}
ol.commentlist li.thread-odd {}
/* Print styles!
-------------------------------------------------------------------------------*/
@media print {
}
/* Media queries!
-------------------------------------------------------------------------------*/
/* Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
}
@media all and (orientation: portrait) {
}
@media all and (orientation: landscape) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment