Browse code

support for sub, sup, and q elements

B Mathis authored on 21/10/2009 at 13:21:05
Showing 2 changed files
... ...
@@ -72,6 +72,12 @@
72 72
     +dl-style(!font_size)
73 73
   blockquote
74 74
     +quote-style
75
+  q
76
+    font-style: italic
77
+    &:before
78
+      content: "\201C"
79
+    &:after
80
+      content: "\201D"
75 81
   em, dfn
76 82
     font-style: italic
77 83
   strong, dfn
... ...
@@ -97,6 +103,8 @@
97 97
   tt
98 98
     display: block
99 99
     margin= !font_size * 1.625 0
100
+  sub, sup
101
+    line-height: 0
100 102
   hr
101 103
     margin-bottom= !font_size * 1.625
102 104
   
... ...
@@ -21,13 +21,21 @@ title: Typography Debug
21 21
   Aliquam arcu. Phasellus vulputate. Integer sem diam, mattis vel, viverra ullamcorper, ultricies quis, nisl. Sed
22 22
   sollicitudin quam ut nisi. Vivamus velit sapien, volutpat eu, faucibus id, nonummy id, urna.
23 23
 %p
24
+  Take it<sub>2</sub> to the power of<sup>3</sup>
24 25
   Praesent iaculis pellentesque est. Nulla facilisi. Etiam fringilla vehicula orci. Aliquam fermentum ipsum id
25 26
   nulla. Aliquam interdum laoreet leo. Cras accumsan. Nam pharetra diam id nunc. Integer blandit tellus vulputate
26 27
   felis. Cras aliquam, eros in euismod aliquam, enim nisl mollis metus, quis fringilla ipsum diam ut pede. Mauris a
27 28
   libero ac velit interdum pulvinar. Nunc ipsum mauris, semper rhoncus, feugiat ut, egestas id, diam. Nullam
28 29
   porttitor condimentum risus. Vivamus nec enim eget nisi commodo euismod. Ut turpis. Nullam malesuada rutrum
29 30
   neque. Nam sodales porta elit. Mauris mollis nisl vel augue.
31
+
32
+%p
33
+  And we were like <q>Woah</q>, and he was like <q>Woah</q>, and they were like <q>WOAH!</q>
34
+
35
+%p
30 36
   %abbr(title="For The Win!") FTW!
37
+%p
38
+  
31 39
 
32 40
 %h3 Unordered lists
33 41
 %ul