Get Product for half price!
*/ .media{ display:block; } .media .img{ float:left; margin-right:10px; } .media .body{ overflow:hidden; margin-bottom:0; } /*------------------------------------*\ $LOGO \*------------------------------------*/ /* Your logo is an image, not a h1: csswizardry.com/2010/10/your-logo-is-an-image-not-a-h1/ */ .logo, .logo img{ display:block; width:auto; /* Width of your logo in pixels (ideally a round grid-number) */ height:auto; /* Height of your logo in pixels */ } /* Based on the fact that we need to use an in our markup, let’s hide the actual image and use a background on the --this gives us semantically sound markup and the ability to use sprites for hover effects! */ .logo{ background:url(/path/to/logo); } .logo:hover{ /* Hover states */ background-position:0 -00px; } .logo img{ position:absolute; left:-99999px; } /*------------------------------------*\ $NAV \*------------------------------------*/ /* Create an abstraction, as per: csswizardry.com/2011/09/the-nav-abstraction/ */ .nav{ list-style:none; } .nav li{ display:inline; } .nav a{ display:inline-block; } /*------------------------------------*\ $TYPE \*------------------------------------*/ /*--- HEADINGS ---*/ h1,.alpha{ font-size:2em; /* 32px */ line-height:1.5; /* 48px */ } h2,.beta{ font-size:1.5em; /* 24px */ line-height:1; /* 24px */ } h3,.gamma{ font-size:1.25em; /* 20px */ line-height:1.2; /* 24px */ } h4,.delta{ font-size:1.125em; /* 18px */ line-height:1.333; /* 24px */ } h5,.epsilon{ font-weight:bold; } h5,.epsilon, h6,.zeta{ font-size:1em; /* 16px */ line-height:1.5; /* 24px */ } /*--- PARAGRAPHS ---*/ /* Mo’ robust paragraph indenting: csswizardry.com/2010/12/mo-robust-paragraph-indenting/ Uncomment to activate p+p{ text-indent:2em; margin-top:-1.5em; } */ /*--- FIGURES ---*/ figure img{ display:block; margin-bottom:0; } /*--- LINKS ---*/ /* Say no to negative hovers: csswizardry.com/2011/05/on-negative-hovers/ A negative hover is one whose appearance is subtracted from on hover rather than added to. */ a:visited{ opacity:0.8; /* A bit basic, but it’s a bare minumum... */ } a:hover{ text-decoration:underline; } a:active, a:focus{ /* Give clicked links a depressed effect. */ position:relative; top:1px; } /*--- LISTS ---*/ li > ul, li > ol{ /* Let’s take care of lists in lists */ margin-bottom:0; } /* A numbered list is NOT the same as an ordered one: csswizardry.com/2011/09/ordered-and-numbered-lists-the-differences/ Use this class when you want a list to be numbered but it has no order. */ ul.numbered{ list-style:decimal outside; } dt{ font-weight:bold; } /*--- QUOTES ---*/ /* Big up @boblet: html5doctor.com/blockquote-q-cite/ */ q{ quotes:"‘" "’" "“" "”"; } q:before{ content:"‘"; content:open-quote; } q:after{ content:"’"; content:close-quote; } q q:before{ content: "“"; content: open-quote; } q q:after{ content: "”"; content: close-quote; } blockquote{ quotes: "“" "”"; } blockquote p:before{ content: "“"; content: open-quote; } blockquote p:after{ content: ""; content: no-close-quote; } blockquote p:last-of-type:after{ content: "”"; content: close-quote; } blockquote{ text-indent:-0.4em; } /* Mark up the source of a quote with .source:*/ .source{ display:block; text-indent:0; margin-top:-24px; margin-top:-1.5rem; } .source:before{ content:"—"; } /*--- GENERAL ---*/ mark{ background-color:#ffc; color:#333; } /*--- CODE ---*/ pre, code{ font-family:"Inconsolata", "Monaco", "Consolas", "Courier New", Courier, monospace; } pre{ overflow:auto; line-height:24px; /* Having to define explicit pixel values :( */ } /*------------------------------------*\ $IMAGES \*------------------------------------*/ img{ max-width:100%; height:auto; /* Give it some text styles to offset alt text */ color:#c00; } img.left { margin:0 1.5em 0 0; } img.right { margin:0 0 0 1.5em; } /*--- FLASH/VIDEO ---*/ object, embed, video{ max-width:100%; height:auto; } /*------------------------------------*\ $FORMS \*------------------------------------*/ /* Unfortunately, and somewhat obviously, forms don’t fit the baseline all too well. Perhaps in a later version... */ fieldset{ padding:1.5em; border:1px solid #ccc; } label{ display:block; } .text-input{ /* With the advent of various HTML5 input types (email, url, etc) input[type=text] is no longer suitable for for styling non-textearea text-inputs. Use .text-input instead. */ } label, .text-input, textarea, .btn{ cursor:pointer; } .text-input:active, .text-input:focus, textarea:active, textarea:focus{ cursor:text; } /* A class of .check-list can be added to aLorem ipsum dolor sit amet. Joe Bloggs