webby 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/History.txt +15 -0
  2. data/Manifest.txt +21 -15
  3. data/Rakefile +4 -2
  4. data/data/content/css/blueprint/compressed/print.css +76 -0
  5. data/data/content/css/blueprint/compressed/screen.css +696 -0
  6. data/data/content/css/blueprint/lib/forms.css +45 -0
  7. data/data/content/css/blueprint/lib/grid.css +95 -51
  8. data/data/content/css/blueprint/lib/grid.png +0 -0
  9. data/data/content/css/blueprint/lib/ie.css +30 -0
  10. data/data/content/css/blueprint/lib/reset.css +11 -12
  11. data/data/content/css/blueprint/lib/typography.css +69 -114
  12. data/data/content/css/blueprint/plugins/buttons/Readme +31 -0
  13. data/data/content/css/blueprint/{lib → plugins/buttons}/buttons.css +17 -32
  14. data/data/content/css/blueprint/{lib/img → plugins/buttons}/icons/cross.png +0 -0
  15. data/data/content/css/blueprint/{lib/img/icons/textfield_key.png → plugins/buttons/icons/key.png} +0 -0
  16. data/data/content/css/blueprint/{lib/img → plugins/buttons}/icons/tick.png +0 -0
  17. data/data/content/css/blueprint/plugins/css-classes/Readme +14 -0
  18. data/data/content/css/blueprint/plugins/css-classes/css-classes.css +24 -0
  19. data/data/content/css/blueprint/plugins/fancy-type/Readme +22 -0
  20. data/data/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +5 -0
  21. data/data/content/css/blueprint/plugins/fancy-type/fancy-type.css +74 -0
  22. data/data/content/css/blueprint/print.css +35 -46
  23. data/data/content/css/blueprint/screen.css +10 -18
  24. data/data/content/css/site.css +8 -0
  25. data/data/content/index.txt +2 -2
  26. data/data/layouts/default.rhtml +4 -4
  27. data/data/templates/page.erb +3 -3
  28. data/examples/webby/content/css/blueprint/print.css +58 -61
  29. data/examples/webby/content/css/blueprint/screen.css +696 -30
  30. data/examples/webby/content/css/site.css +63 -45
  31. data/examples/webby/content/index.txt +2 -2
  32. data/examples/webby/content/manual.txt +366 -15
  33. data/examples/webby/content/script/jquery.corner.js +152 -0
  34. data/examples/webby/content/script/jquery.js +31 -0
  35. data/examples/webby/content/tips_and_tricks.txt +2 -2
  36. data/examples/webby/content/tutorial.txt +5 -5
  37. data/examples/webby/layouts/default.rhtml +19 -10
  38. data/examples/webby/templates/page.erb +5 -3
  39. data/lib/webby.rb +25 -3
  40. data/lib/webby/filters/basepath.rb +97 -0
  41. data/lib/webby/filters/coderay.rb +2 -2
  42. data/lib/webby/filters/graphviz.rb +10 -10
  43. data/lib/webby/filters/haml.rb +3 -7
  44. data/lib/webby/filters/outline.rb +194 -0
  45. data/lib/webby/helpers/tag_helper.rb +14 -13
  46. data/lib/webby/helpers/url_helper.rb +84 -13
  47. data/lib/webby/pages_db.rb +15 -8
  48. data/lib/webby/renderer.rb +2 -2
  49. data/lib/webby/resource.rb +6 -6
  50. data/lib/webby/utils.rb +17 -1
  51. data/lib/webby/webby_task.rb +20 -7
  52. data/tasks/annotations.rake +1 -1
  53. data/tasks/doc.rake +2 -2
  54. data/tasks/gem.rake +3 -3
  55. data/tasks/manifest.rake +5 -2
  56. data/tasks/post_load.rake +18 -0
  57. data/tasks/rubyforge.rake +1 -1
  58. data/tasks/setup.rb +56 -11
  59. data/tasks/spec.rake +4 -1
  60. data/tasks/svn.rake +44 -0
  61. data/tasks/website.rake +2 -2
  62. metadata +33 -18
  63. data/data/content/css/blueprint/lib/compressed.css +0 -137
  64. data/data/content/css/blueprint/lib/img/grid.png +0 -0
  65. data/examples/webby/content/css/blueprint/lib/buttons.css +0 -112
  66. data/examples/webby/content/css/blueprint/lib/compressed.css +0 -137
  67. data/examples/webby/content/css/blueprint/lib/grid.css +0 -149
  68. data/examples/webby/content/css/blueprint/lib/img/grid.png +0 -0
  69. data/examples/webby/content/css/blueprint/lib/img/icons/cross.png +0 -0
  70. data/examples/webby/content/css/blueprint/lib/img/icons/textfield_key.png +0 -0
  71. data/examples/webby/content/css/blueprint/lib/img/icons/tick.png +0 -0
  72. data/examples/webby/content/css/blueprint/lib/reset.css +0 -40
  73. data/examples/webby/content/css/blueprint/lib/typography.css +0 -161
@@ -0,0 +1,45 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ forms.css
4
+ * Sets up some default styling for forms
5
+ * Gives you classes to enhance your forms
6
+
7
+ Usage:
8
+ * For text fields, use class .title or .text
9
+
10
+ -------------------------------------------------------------- */
11
+
12
+ label { font-weight: bold; }
13
+
14
+
15
+ /* Fieldsets */
16
+ fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
17
+ legend { font-weight: bold; font-size:1.2em; }
18
+
19
+ /* Text fields */
20
+ input.text, input.title { width: 300px; margin:0.5em 0.5em 0.5em 0; }
21
+ input.text, input.title { border:1px solid #bbb; background:#f6f6f6; padding:5px; }
22
+ input.text:focus,
23
+ input.title:focus { border:1px solid #999; background:#fff; }
24
+ input.title { font-size:1.5em; }
25
+
26
+ /* Textareas */
27
+ textarea { width: 400px; height: 250px; margin:0.5em 0.5em 0.5em 0; }
28
+ textarea { border:1px solid #bbb; background:#eee; padding:5px; }
29
+ textarea:focus { border:1px solid #999; background:#fff; }
30
+
31
+ /* Select fields */
32
+ select { border:1px solid #ccc; background:#f6f6f6; width:200px; }
33
+ select:focus { border:1px solid #999; background:#fff; }
34
+
35
+
36
+ /* Success, error & notice boxes for messages and errors. */
37
+ .error,
38
+ .notice,
39
+ .success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
40
+ .error { background: #FBE3E4; color: #D12F19; border-color: #FBC2C4; }
41
+ .notice { background: #FFF6BF; color: #817134; border-color: #FFD324; }
42
+ .success { background: #E6EFC2; color: #529214; border-color: #C6D880; }
43
+ .error a { color: #D12F19; }
44
+ .notice a { color: #817134; }
45
+ .success a { color: #529214; }
@@ -1,11 +1,9 @@
1
1
  /* --------------------------------------------------------------
2
-
3
- Grid.css
4
- * Version: 0.5 (28/8/2007)
5
- * Website: http://code.google.com/p/blueprintcss/
2
+
3
+ grid.css
4
+ * Sets up an easy-to-use grid of 24 columns.
6
5
 
7
6
  Based on work by:
8
- * Olav Bjorkoy [bjorkoy.com]
9
7
  * Nathan Borror [playgroundblues.com]
10
8
  * Jeff Croft [jeffcroft.com]
11
9
  * Christian Metts [mintchaos.com]
@@ -16,23 +14,17 @@
16
14
 
17
15
  If you need fewer or more columns, use this
18
16
  formula to find the new total width:
17
+ Total width = (columns * 40) - 10
18
+
19
+ Read more about using a grid here:
20
+ * subtraction.com/archives/2007/0318_oh_yeeaahh.php
19
21
 
20
- Total width = (columns * 30) - 10
21
-
22
22
  -------------------------------------------------------------- */
23
23
 
24
- body {
25
- text-align: center; /* IE6 Fix */
26
- margin:36px 0;
27
- }
28
-
29
24
  /* A container should group all your columns. */
30
25
  .container {
31
- text-align: left;
32
- position: relative;
33
- padding: 0;
34
- margin: 0 auto; /* Centers layout */
35
- width: 950px; /* Total width */
26
+ width: 950px;
27
+ margin: 0 auto;
36
28
  }
37
29
 
38
30
 
@@ -40,27 +32,18 @@ body {
40
32
  -------------------------------------------------------------- */
41
33
 
42
34
  /* Use this class together with the .span-x classes
43
- to create any compsition of columns in a layout.
44
- Nesting columns works like a charm (remember .first and .last). */
35
+ to create any composition of columns in a layout. */
45
36
 
46
37
  .column {
47
38
  float: left;
48
39
  margin-right: 10px;
49
- padding: 0;
50
40
  }
51
- * html .column { overflow-x: hidden; } /* IE6 fix */
52
41
 
53
- /* Add this class to a column if you want a border on its
54
- right hand side. This should be customized to fit your needs. */
55
-
56
- .border {
57
- padding-right: 4px;
58
- margin-right: 5px;
59
- border-right: 1px solid #ddd;
60
- }
61
42
 
43
+ /* The last column in a row needs this class. */
44
+ .last { margin-right: 0; }
62
45
 
63
- /* Use these classes to set how wide a column should be. */
46
+ /* Use these classes to set the width of a column. */
64
47
  .span-1 { width: 30px; }
65
48
  .span-2 { width: 70px; }
66
49
  .span-3 { width: 110px; }
@@ -86,9 +69,6 @@ body {
86
69
  .span-23 { width: 910px; }
87
70
  .span-24 { width: 950px; margin: 0; }
88
71
 
89
- /* The last element in a multi-column block needs this class. */
90
- .last { margin-right: 0; }
91
-
92
72
  /* Add these to a column to append empty cols. */
93
73
  .append-1 { padding-right: 40px; }
94
74
  .append-2 { padding-right: 80px; }
@@ -102,6 +82,17 @@ body {
102
82
  .append-10 { padding-right: 400px; }
103
83
  .append-11 { padding-right: 440px; }
104
84
  .append-12 { padding-right: 480px; }
85
+ .append-13 { padding-right: 520px; }
86
+ .append-14 { padding-right: 560px; }
87
+ .append-15 { padding-right: 600px; }
88
+ .append-16 { padding-right: 640px; }
89
+ .append-17 { padding-right: 680px; }
90
+ .append-18 { padding-right: 720px; }
91
+ .append-19 { padding-right: 760px; }
92
+ .append-20 { padding-right: 800px; }
93
+ .append-21 { padding-right: 840px; }
94
+ .append-22 { padding-right: 880px; }
95
+ .append-23 { padding-right: 920px; }
105
96
 
106
97
  /* Add these to a column to prepend empty cols. */
107
98
  .prepend-1 { padding-left: 40px; }
@@ -116,34 +107,87 @@ body {
116
107
  .prepend-10 { padding-left: 400px; }
117
108
  .prepend-11 { padding-left: 440px; }
118
109
  .prepend-12 { padding-left: 480px; }
110
+ .prepend-13 { padding-left: 520px; }
111
+ .prepend-14 { padding-left: 560px; }
112
+ .prepend-15 { padding-left: 600px; }
113
+ .prepend-16 { padding-left: 640px; }
114
+ .prepend-17 { padding-left: 680px; }
115
+ .prepend-18 { padding-left: 720px; }
116
+ .prepend-19 { padding-left: 760px; }
117
+ .prepend-20 { padding-left: 800px; }
118
+ .prepend-21 { padding-left: 840px; }
119
+ .prepend-22 { padding-left: 880px; }
120
+ .prepend-23 { padding-left: 920px; }
121
+
122
+
123
+ /* Border on right hand side of a column. */
124
+ .border {
125
+ padding-right: 4px;
126
+ margin-right: 5px;
127
+ border-right: 1px solid #eee;
128
+ }
119
129
 
130
+ /* Border with more whitespace, spans one column. */
131
+ .colborder {
132
+ padding-right: 24px;
133
+ margin-right: 25px;
134
+ border-right: 1px solid #eee;
135
+ }
120
136
 
121
137
 
122
- /* Images
123
- -------------------------------------------------------------- */
124
-
125
- /* Remember the baseline (typography.css). */
126
- img { margin: 0 0 18px 0; }
127
-
128
-
129
- /* Use these classes to make an image flow into the column before
130
- or after it. This techique can also be used on other objects. */
138
+ /* Use these classes on an element to push it into the
139
+ next column, or to pull it into the previous column. */
131
140
 
132
141
  .pull-1 { margin-left: -40px; }
133
142
  .pull-2 { margin-left: -80px; }
134
143
  .pull-3 { margin-left: -120px; }
135
144
  .pull-4 { margin-left: -160px; }
136
145
 
137
- .push-0 { margin: 0 0 0 18px; float: right; } /* Right aligns the image. */
138
- .push-1 { margin: 0 -40px 0 18px; float: right; }
139
- .push-2 { margin: 0 -80px 0 18px; float: right; }
140
- .push-3 { margin: 0 -120px 0 18px; float: right; }
141
- .push-4 { margin: 0 -160px 0 18px; float: right; }
146
+ .push-0 { margin: 0 0 0 18px; }
147
+ .push-1 { margin: 0 -40px 0 18px; }
148
+ .push-2 { margin: 0 -80px 0 18px; }
149
+ .push-3 { margin: 0 -120px 0 18px; }
150
+ .push-4 { margin: 0 -160px 0 18px; }
151
+ .push-0, .push-1, .push-2, .push-3, .push-4 { float: right; }
142
152
 
143
- .pull-1, .pull-2, .pull-3, .pull-4,
144
- .push-1, .push-2, .push-3, .push-4 {
145
- overflow-x: visible; /* Overrides previous IE6 fix (needs improvement). */
153
+
154
+ /* Misc classes and elements
155
+ -------------------------------------------------------------- */
156
+
157
+ /* Use a .box to create a padded box inside a column. */
158
+ .box {
159
+ padding: 1.5em;
160
+ margin-bottom: 1.5em;
161
+ background: #eee;
146
162
  }
147
163
 
148
- /* EOF */
164
+ /* Use this to create a horizontal ruler across a column. */
165
+ hr {
166
+ background: #ddd;
167
+ color: #ddd;
168
+ clear: both;
169
+ float: none;
170
+ width: 100%;
171
+ height: .1em;
172
+ margin: 0 0 1.4em;
173
+ border: none;
174
+ }
175
+ hr.space {
176
+ background: #fff;
177
+ color: #fff;
178
+ }
149
179
 
180
+ /* Clearing floats without extra markup
181
+ Based on How To Clear Floats Without Structural Markup by PiE
182
+ [http://www.positioniseverything.net/easyclearing.html] */
183
+
184
+ .clear { display: inline-block; }
185
+ .clear:after, .container:after {
186
+ content: ".";
187
+ display: block;
188
+ height: 0;
189
+ clear: both;
190
+ visibility: hidden;
191
+ }
192
+ * html .clear { height: 1%; }
193
+ .clear { display: block; }
@@ -0,0 +1,30 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ ie.css
4
+
5
+ Contains every hack for Internet Explorer versions prior
6
+ to IE7, so that our core files stay sweet and nimble.
7
+
8
+ -------------------------------------------------------------- */
9
+
10
+ /* Make sure the layout is centered in IE5 */
11
+ body { text-align: center; }
12
+ .container { text-align: left; }
13
+
14
+
15
+ /* This fixes the problem where IE6 adds an extra 3px margin to
16
+ two columns that are floated up against each other. */
17
+
18
+ * html .column { overflow-x: hidden; } /* IE6 fix */
19
+
20
+ .pull-1, .pull-2, .pull-3, .pull-4,
21
+ .push-1, .push-2, .push-3, .push-4,
22
+ ul, ol {
23
+ position: relative; /* Keeps IE6 from cutting pulled/pushed images */
24
+ }
25
+
26
+ /* Fixes incorrect styling of legend in IE6 fieldsets. */
27
+ legend { margin-bottom:1.4em; }
28
+
29
+ /* Fixes incorrect placement of numbers in ol's in IE6/7 */
30
+ ol { margin-left:2em; }
@@ -1,20 +1,17 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
- Reset.css
4
- * Version: 0.5 (28/8/2007)
5
- * Website: http://code.google.com/p/blueprintcss/
3
+ reset.css
4
+ * Resets default browser CSS.
6
5
 
7
- Original by Eric Meyer:
6
+ Based on work by Eric Meyer:
8
7
  * meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
9
8
 
10
9
  -------------------------------------------------------------- */
11
10
 
12
- html, body, div, span, applet, object, iframe,
11
+ html, body, div, span, object, iframe,
13
12
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
14
- a, abbr, acronym, address, big, cite, code,
15
- del, dfn, em, font, img, ins, kbd, q, s, samp,
16
- strike, strong, sub, sup, tt, var,
17
- dl, dt, dd, ol, ul, li,
13
+ a, abbr, acronym, address, code,
14
+ del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
18
15
  fieldset, form, label, legend,
19
16
  table, caption, tbody, tfoot, thead, tr, th, td {
20
17
  margin: 0;
@@ -27,14 +24,16 @@ table, caption, tbody, tfoot, thead, tr, th, td {
27
24
  vertical-align: baseline;
28
25
  }
29
26
 
30
- body { line-height: 1; color: #333; background: white; }
27
+
28
+ body { line-height: 1.5; background: #fff; margin:1.5em 0; }
31
29
 
32
30
  /* Tables still need 'cellspacing="0"' in the markup. */
33
31
  table { border-collapse: separate; border-spacing: 0; }
34
- caption, th, td { text-align: left; font-weight: normal; }
32
+ caption, th, td { text-align: left; font-weight:400; }
35
33
 
36
34
  /* Remove possible quote marks (") from <q>, <blockquote>. */
37
35
  blockquote:before, blockquote:after, q:before, q:after { content: ""; }
38
36
  blockquote, q { quotes: "" ""; }
39
37
 
40
- /* EOF */
38
+ a img { border: none; }
39
+
@@ -1,161 +1,116 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
- Typography.css
4
- * Version: 0.5 (28/8/2007)
5
- * Website: http://code.google.com/p/blueprintcss/
3
+ typography.css
4
+ * Sets up some sensible default typography.
6
5
 
7
6
  Based on work by:
8
- * Olav Bjorkoy [bjorkoy.com]
9
7
  * Nathan Borror [playgroundblues.com]
10
8
  * Jeff Croft [jeffcroft.com]
11
9
  * Christian Metts [mintchaos.com]
12
10
  * Wilson Miner [wilsonminer.com]
11
+ * Richard Rutter [clagnut.com]
13
12
 
14
13
  Read more about using a baseline here:
15
14
  * alistapart.com/articles/settingtypeontheweb
16
15
 
17
16
  -------------------------------------------------------------- */
18
17
 
19
- body {
20
- font-size: 12px;
21
- line-height: 18px; /* All elements should be a multiple of this value. */
22
- }
18
+ /* This is where you set your desired font size. The line-heights
19
+ and vertical margins are automatically calculated from this.
20
+ The percentage is of 16px (0.75 * 16px = 12px). */
21
+
22
+ body { font-size: 75%; }
23
23
 
24
24
 
25
- /* Default fonts */
26
- h1,h2,h3,
27
- h4,h5,h6 { font-family: Constantia, "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif; }
28
- body { font-family: Frutiger, Univers, "Helvetica Neue", "Lucida Grande", Calibri, Helvetica, Verdana, sans-serif; }
29
- pre { font-family: Corbel, Verdana, "Bitstream Vera Sans", sans-serif; }
30
- code { font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Monaco, Courier, monospace; }
25
+ /* Default fonts and colors.
26
+ If you prefer serif fonts, remove the font-family
27
+ on the headings, and apply this one to the body:
28
+ font: 1em Georgia, "lucida bright", "times new roman", serif; */
29
+
30
+ body {
31
+ color: #222;
32
+ font-family: "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
33
+ }
34
+ h1,h2,h3,h4,h5,h6 {
35
+ color: #111;
36
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
37
+ }
31
38
 
32
39
 
33
40
  /* Headings
34
41
  -------------------------------------------------------------- */
35
42
 
36
- h1,h2,h3,h4,h5,h6 {
37
- color:#111;
38
- clear:both;
39
- }
43
+ h1,h2,h3,h4,h5,h6 { font-weight: normal; }
40
44
 
41
- h1 { font-size: 30px; line-height:36px; padding:0 0 18px 0; }
42
- h2 { font-size: 20px; line-height:36px; }
43
- h3 { font-size: 16px; line-height:36px; }
44
- h4 { font-size: 14px; font-weight:bold; }
45
- h5 { font-size: 12px; font-weight:bold; }
46
- h6 { font-size: 12px; }
45
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
46
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
47
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
48
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
49
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
50
+ h6 { font-size: 1em; font-weight: bold; }
47
51
 
48
52
 
49
53
  /* Text elements
50
54
  -------------------------------------------------------------- */
51
55
 
52
- p { margin: 0 0 18px 0; text-align:justify; }
53
- p.last { margin-bottom:0; }
54
- p img { float: left; margin:18px 18px 18px 0; padding:0; }
55
- p img.top { margin-top:0; } /* Use this if the image is at the top of the <p>. */
56
-
57
- a { color: #125AA7; text-decoration: underline; }
58
- a:hover { color: #000; }
56
+ p { margin: 0 0 1.5em; }
57
+ p.last { margin-bottom: 0; }
58
+ p img { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
59
+ p img.top { margin-top: 0; } /* Use this if the image is at the top of the <p>. */
60
+ img { margin: 0 0 1.5em; }
59
61
 
60
- ul, ol { margin: 0 0 18px 18px; }
62
+ ul, ol { margin:0 1.5em 1.5em 1.5em; }
61
63
  ul { list-style-type: circle; }
62
64
  ol { list-style-type: decimal; }
63
- dl { margin: 0 0 18px 0; }
65
+ dl { margin: 0 0 1.5em 0; }
64
66
  dl dt { font-weight: bold; }
67
+ dd { margin-left: 1.5em;}
65
68
 
66
- blockquote { margin: 0 0 18px 18px; color: #666; font-style: italic; }
69
+ abbr,
70
+ acronym { border-bottom: 1px dotted #666; }
71
+ address { margin-top: 1.5em; font-style: italic; }
72
+ del { color:#666; }
73
+
74
+ a:focus,
75
+ a:hover { color: #000; }
76
+ a { color: #009; text-decoration: underline; }
77
+
78
+ blockquote { margin: 1.5em; color: #666; font-style: italic; }
67
79
  strong { font-weight: bold; }
68
- em { font-style: italic; }
69
- pre { margin-bottom: 18px; background: #eee; border:1px solid #ddd; padding:16px; }
70
-
71
- /* Use this to create a horizontal ruler across a column. */
72
- hr {
73
- background: #B2CCFF;
74
- color: #B2CCFF;
75
- clear: both;
76
- float: none;
77
- width: 100%;
78
- height: 2px;
79
- margin: 0 0 16px 0;
80
- border: none;
81
- }
80
+ em,dfn { font-style: italic; background: #ffc; }
81
+ dfn { font-weight: bold; }
82
+ pre,code { margin: 1.5em 0; white-space: pre; }
83
+ pre,code,tt { font: 1em 'andale mono', 'monotype.com', 'lucida console', monospace; line-height: 1.5; }
84
+ tt { display: block; margin: 1.5em 0; line-height: 1.5; }
82
85
 
83
86
 
84
87
  /* Tables
85
88
  -------------------------------------------------------------- */
86
89
 
87
- table { margin-bottom: 16px; border-top:1px solid #ddd; border-left:1px solid #ddd; }
88
- th,td { height: 13px; padding:2px 4px; border-bottom:1px solid #ddd; border-right:1px solid #ddd; }
89
- th { font-weight:bold; }
90
+ table { margin-bottom: 1.4em; }
91
+ th { border-bottom: 2px solid #ccc; font-weight: bold; }
92
+ td { border-bottom: 1px solid #ddd; }
93
+ th,td { padding: 4px 10px 4px 0; }
94
+ tfoot { font-style: italic; }
95
+ caption { background: #ffc; }
90
96
 
91
-
92
- /* Some default classes
93
- -------------------------------------------------------------- */
94
-
95
- p.small { font-size: 10px; margin-bottom: 18px; }
96
- p.large { font-size: 14px; line-height:36px; }
97
- p.quiet { color: #666; }
98
- .hide { display: none; }
97
+ /* Use this if you use span-x classes on th/td. */
98
+ table .last { padding-right: 0; }
99
99
 
100
100
 
101
- /* Extra fancy typography
101
+ /* Some default classes
102
102
  -------------------------------------------------------------- */
103
103
 
104
- /* For great looking type, use this code instead of asdf:
105
- <span class="alt">asdf</span>
106
- Best used on prepositions and ampersands. */
107
-
108
- .alt {
109
- color: #666;
110
- font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
111
- font-size: 1.2em;
112
- line-height: 1%; /* Maintain correct baseline */
113
- font-style: italic;
114
- }
104
+ .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
105
+ .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
106
+ .quiet { color: #666; }
115
107
 
116
- /* For great looking quote marks in titles, replace "asdf" with:
117
- <span class="dquo">&#8220;</span>asdf&#8221;
118
- (That is, when the title starts with a quote mark).
119
- (You may have to change this value depending on your font size). */
120
-
121
- .dquo { margin-left: -.7em; }
108
+ .hide { display: none; }
109
+ .highlight { background:#ff0; }
110
+ .added { color:#060; }
111
+ .removed { color:#900; }
122
112
 
113
+ .top { margin-top:0; padding-top:0; }
114
+ .bottom { margin-bottom:0; padding-bottom:0; }
123
115
 
124
- /* Reduced size type with incremental leading
125
- (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
126
-
127
- This could be used for side notes. For smaller type, you don't necessarily want to
128
- follow the 1.5x vertical rhythm -- the line-height is too much.
129
-
130
- Using this class, it reduces your font size and line-height so that for
131
- every four lines of normal sized type, there is five lines of the sidenote. eg:
132
-
133
- New type size in em's:
134
- 10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems)
135
-
136
- New line-height value:
137
- 12px x 1.5 = 18px (old line-height)
138
- 18px x 4 = 72px
139
- 72px / 5 = 14.4px (new line height)
140
- 14.4px / 10px = 1.44 (new line height in em's) */
141
-
142
- p.incr, .incr p {
143
- font-size: 10px;
144
- line-height: 1.44em;
145
- margin-bottom: 18px; /* Still 1.5 x normal font size as baseline */
146
- }
147
-
148
-
149
- /* Surround uppercase words and abbreviations with this class.
150
- Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
151
-
152
- .caps {
153
- font-variant: small-caps;
154
- letter-spacing: 1px;
155
- text-transform: lowercase;
156
- font-size:1.2em;
157
- line-height:1%;
158
- font-weight:bold;
159
- }
160
116
 
161
- /* EOF */