1/* -------------------------------------------------------------- 2 3 fancy-type.css 4 * Lots of pretty advanced classes for manipulating text. 5 6 See the Readme file in this folder for additional instructions. 7 8-------------------------------------------------------------- */ 9 10/* Indentation instead of line shifts for sibling paragraphs. */ 11 p + p { text-indent:2em; margin-top:-1.5em; } 12 form p + p { text-indent: 0; } /* Don't want this in forms. */ 13 14/* For great looking type, use this code instead of asdf: 15 <span class="alt">asdf</span> 16 Best used on prepositions and ampersands. */ 17 18.alt { 19 color: #666; 20 font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif; 21 font-style: italic; 22 font-weight: normal; 23} 24 25/* For great looking quote marks in titles, replace "asdf" with: 26 <span class="dquo">“</span>asdf” 27 (That is, when the title starts with a quote mark). 28 (You may have to change this value depending on your font size). */ 29 30.dquo { margin-left: -.5em; } 31 32/* Reduced size type with incremental leading 33 (http://www.markboulton.co.uk/journal/comments/incremental_leading/) 34 35 This could be used for side notes. For smaller type, you don't necessarily want to 36 follow the 1.5x vertical rhythm -- the line-height is too much. 37 38 Using this class, it reduces your font size and line-height so that for 39 every four lines of normal sized type, there is five lines of the sidenote. eg: 40 41 New type size in em's: 42 10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems) 43 44 New line-height value: 45 12px x 1.5 = 18px (old line-height) 46 18px x 4 = 72px 47 72px / 5 = 14.4px (new line height) 48 14.4px / 10px = 1.44 (new line height in em's) */ 49 50p.incr, .incr p { 51 font-size: 10px; 52 line-height: 1.44em; 53 margin-bottom: 1.5em; 54} 55 56/* Surround uppercase words and abbreviations with this class. 57 Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */ 58 59.caps { 60 font-variant: small-caps; 61 letter-spacing: 1px; 62 text-transform: lowercase; 63 font-size:1.2em; 64 line-height:1%; 65 font-weight:bold; 66 padding:0 2px; 67} 68