- @title = "Typography" - @headertext = "(via Type-a-File)" - @footer = "
This markup is from the Type-a-File project.
Type-a-file is a StrangeNative product licensed under creative commons. You're free to use it commercially or non-commercially. Just keep that credit line in there!
" %article %h1 %span.kern> T ype-a-file Gives Your Web = succeed "ypography" do %span.kern T a Head Start .kicker %p Below you’ll find some text marked up with the core elements of Type-a-file. View the source code to find out how to use them on your own site. This element, for example is called a “kicker.” It’s paragraph text that introduces the rest of the text. It’s useful for outlining your topic & looks killer. Just create a div with class=“kicker” and throw some paragraphs into it. Blammo! %h2 The Typographic Basics %img{:alt => "placeholder image", :src => "http://dummyimage.com/480x248/ccc/fff"}/ .caption You’ll often want to caption photos. This is a .caption class %p %span.drop-cap> P aragraphs are the core building block of typography online. You want to make sure you’ve got a good line-height and horizontal width—aka measure—for good readability. If you stack your lines too close together, or too far apart, lines become harder to read. Like a staircase where the steps are too shallow or too steep. The standard line-height online is something between 1.5 and 2.0 ems. %a.superscript{:href => "#ems"} 1 If your lines stretch too far across the page reading can feel like a tedious marathon. The standard single-column width online is about 70-90 characters. %aside.sidenote %h1 This is a “sidenote” %p It’s different than a sidebar because its content are directly related to the main content at left. When %abbr html5 is more prevalent, you’ll be able to start using %code