webby 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,31 @@
1
+ Buttons
2
+ * Gives you great looking CSS buttons, for both <a> and <button>.
3
+ * Demo: particletree.com/features/rediscovering-the-button-element
4
+
5
+
6
+ Credits
7
+ ----------------------------------------------------------------
8
+
9
+ * Created by Kevin Hale [particletree.com]
10
+ * Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
11
+
12
+
13
+ Usage
14
+ ----------------------------------------------------------------
15
+
16
+ 1) Add this line to "blueprint/screen.css":
17
+ @import 'plugins/buttons/buttons.css';
18
+
19
+ 2) Use the following HTML code to place the buttons on your site:
20
+
21
+ <button type="submit" class="button positive">
22
+ <img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
23
+ </button>
24
+
25
+ <a class="button" href="/password/reset/">
26
+ <img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
27
+ </a>
28
+
29
+ <a href="#" class="button negative">
30
+ <img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
31
+ </a>
@@ -1,41 +1,24 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
- Buttons.css
4
- * Version: 0.5 (28/8/2007)
5
- * Website: http://code.google.com/p/blueprintcss/
3
+ buttons.css
4
+ * Gives you some great CSS-only buttons.
6
5
 
7
6
  Created by Kevin Hale [particletree.com]
8
7
  * particletree.com/features/rediscovering-the-button-element
9
-
10
- W3C: "Buttons created with the BUTTON element function
11
- just like buttons created with the INPUT element,
12
- but they offer richer rendering possibilities."
13
-
14
- Usage:
15
-
16
- <button type="submit" class="button positive">
17
- <img src="css/blueprint/lib/img/icons/tick.png" alt=""/> Save
18
- </button>
19
8
 
20
- <a class="button" href="/password/reset/">
21
- <img src="css/blueprint/lib/img/icons/textfield_key.png" alt=""/> Change Password
22
- </a>
9
+ See Readme.txt in this folder for instructions.
23
10
 
24
- <a href="#" class="button negative">
25
- <img src="css/blueprint/lib/img/icons/cross.png" alt=""/> Cancel
26
- </a>
27
-
28
11
  -------------------------------------------------------------- */
29
12
 
30
13
  a.button, button {
31
14
  display:block;
32
15
  float:left;
33
16
  margin:0 0.583em 0.667em 0;
34
- padding:5px 10px 6px 7px; /* Links */
17
+ padding:5px 10px 5px 7px; /* Links */
35
18
 
36
- border:0.1em solid #dedede;
37
- border-top:0.1em solid #eee;
38
- border-left:0.1em solid #eee;
19
+ border:1px solid #dedede;
20
+ border-top:1px solid #eee;
21
+ border-left:1px solid #eee;
39
22
 
40
23
  background-color:#f5f5f5;
41
24
  font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
@@ -52,7 +35,7 @@ button {
52
35
  padding:4px 10px 3px 7px; /* IE6 */
53
36
  }
54
37
  button[type] {
55
- padding:5px 10px 5px 7px; /* Firefox */
38
+ padding:4px 10px 4px 7px; /* Firefox */
56
39
  line-height:17px; /* Safari */
57
40
  }
58
41
  *:first-child+html button[type] {
@@ -64,6 +47,7 @@ button img, a.button img{
64
47
  border:none;
65
48
  width:16px;
66
49
  height:16px;
50
+ float:none;
67
51
  }
68
52
 
69
53
 
@@ -73,7 +57,7 @@ button img, a.button img{
73
57
  /* Standard */
74
58
  button:hover, a.button:hover{
75
59
  background-color:#dff4ff;
76
- border:0.1em solid #c2e1ef;
60
+ border:1px solid #c2e1ef;
77
61
  color:#336699;
78
62
  }
79
63
  a.button:active{
@@ -83,30 +67,31 @@ a.button:active{
83
67
  }
84
68
 
85
69
  /* Positive */
86
- .positive {
70
+ body .positive {
87
71
  color:#529214;
88
72
  }
89
73
  a.positive:hover, button.positive:hover {
90
74
  background-color:#E6EFC2;
91
- border:0.1em solid #C6D880;
75
+ border:1px solid #C6D880;
92
76
  color:#529214;
93
77
  }
94
78
  a.positive:active {
95
79
  background-color:#529214;
96
- border:0.1em solid #529214;
80
+ border:1px solid #529214;
97
81
  color:#fff;
98
82
  }
99
83
 
100
84
  /* Negative */
101
- .negative {
85
+ body .negative {
102
86
  color:#d12f19;
103
87
  }
104
88
  a.negative:hover, button.negative:hover {
105
89
  background:#fbe3e4;
106
- border:0.1em solid #fbc2c4;
90
+ border:1px solid #fbc2c4;
91
+ color:#d12f19;
107
92
  }
108
93
  a.negative:active {
109
94
  background-color:#d12f19;
110
- border:0.1em solid #d12f19;
95
+ border:1px solid #d12f19;
111
96
  color:#fff;
112
97
  }
@@ -0,0 +1,14 @@
1
+ CSS Development Classes Plugin
2
+
3
+ Sets up some classes to use in CSS development
4
+
5
+ This is an experimental plugin, and the tools it provides
6
+ are not exactly semantically correct, so use with care,
7
+ and preferably only in development. :)
8
+
9
+
10
+ Usage
11
+ ----------------------------------------------------------------
12
+
13
+ 1) Add this line to "blueprint/screen.css", and you're done:
14
+ @import 'plugins/css-classes/css-classes.css';
@@ -0,0 +1,24 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ css-classes.css
4
+ * Classes for CSS development
5
+
6
+ See the Readme file in this directory
7
+ for further instructions.
8
+
9
+ -------------------------------------------------------------- */
10
+
11
+ .left { float:left; }
12
+ .right { float:right; }
13
+
14
+ .hide { display:none; }
15
+
16
+ .reset-margin { margin:0; }
17
+ .reset-padding { padding:0; }
18
+ .reset { margin:0; padding:0; }
19
+
20
+ .align-justify { text-align:justify; }
21
+ .align-left { text-align:left; }
22
+ .align-center { text-align:center; }
23
+ .align-right { text-align:right; }
24
+
@@ -0,0 +1,22 @@
1
+ Fancy Type
2
+ * Gives you classes to use if you'd like some
3
+ extra fancy typography.
4
+
5
+ Credits and instructions are specified above each class
6
+ in the fancy-type.css file in this directory.
7
+
8
+
9
+ Usage
10
+ ----------------------------------------------------------------
11
+
12
+ 1) Add this line to "blueprint/screen.css", and you're done:
13
+ @import 'plugins/fancy-type/fancy-type-compressed.css';
14
+
15
+ Note that this uses the compressed version of the CSS file,
16
+ as the original file contains a lot of instructing comments.
17
+
18
+ Remember to re-compress (or change) the compressed file
19
+ if you make any changes to the original CSS file.
20
+
21
+ Here's a pretty good CSS compressor:
22
+ http://teenage.cz/acidofil/tools/cssformat.php
@@ -0,0 +1,5 @@
1
+ p + p { text-indent:2em; margin-top:-1.5em; }
2
+ .alt{color:#666;font-family:"Warnock Pro","Goudy Old Style","Palatino","Book Antiqua",Georgia,serif;font-size:1.2em;line-height:80%;font-style:italic;}
3
+ .dquo{margin-left:-.5em;}
4
+ p.incr,.incr p{font-size:10px;line-height:1.44em;margin-bottom:1.5em;}
5
+ .caps{font-variant:small-caps;letter-spacing:1px;text-transform:lowercase;font-size:1.2em;line-height:1%;font-weight:bold;}
@@ -0,0 +1,74 @@
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
+
13
+ /* Ornaments on first paragraph.
14
+ Commented out by default. Use with care.
15
+ p:before { content: "\2767"; padding-right: 0.4em; }
16
+ p + p:before { content: ""; padding:0; } */
17
+
18
+ /* For great looking type, use this code instead of asdf:
19
+ <span class="alt">asdf</span>
20
+ Best used on prepositions and ampersands. */
21
+
22
+ .alt {
23
+ color: #666;
24
+ font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
25
+ font-style: italic;
26
+ font-weight: normal;
27
+ }
28
+
29
+
30
+ /* For great looking quote marks in titles, replace "asdf" with:
31
+ <span class="dquo">&#8220;</span>asdf&#8221;
32
+ (That is, when the title starts with a quote mark).
33
+ (You may have to change this value depending on your font size). */
34
+
35
+ .dquo { margin-left: -.5em; }
36
+
37
+
38
+ /* Reduced size type with incremental leading
39
+ (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
40
+
41
+ This could be used for side notes. For smaller type, you don't necessarily want to
42
+ follow the 1.5x vertical rhythm -- the line-height is too much.
43
+
44
+ Using this class, it reduces your font size and line-height so that for
45
+ every four lines of normal sized type, there is five lines of the sidenote. eg:
46
+
47
+ New type size in em's:
48
+ 10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems)
49
+
50
+ New line-height value:
51
+ 12px x 1.5 = 18px (old line-height)
52
+ 18px x 4 = 72px
53
+ 72px / 5 = 14.4px (new line height)
54
+ 14.4px / 10px = 1.44 (new line height in em's) */
55
+
56
+ p.incr, .incr p {
57
+ font-size: 10px;
58
+ line-height: 1.44em;
59
+ margin-bottom: 1.5em;
60
+ }
61
+
62
+
63
+ /* Surround uppercase words and abbreviations with this class.
64
+ Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
65
+
66
+ .caps {
67
+ font-variant: small-caps;
68
+ letter-spacing: 1px;
69
+ text-transform: lowercase;
70
+ font-size:1.2em;
71
+ line-height:1%;
72
+ font-weight:bold;
73
+ padding:0 2px;
74
+ }
@@ -1,79 +1,68 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
3
  Blueprint CSS Framework Print Styles
4
- * Version: 0.5 (28/8/2007)
5
- * Website: http://code.google.com/p/blueprintcss/
6
-
7
- This file creates CSS styles for printing documents.
8
- Include this in the <head> of every page. See the
9
- Readme file in this directory for further instructions.
10
-
11
- Some additions you'll want to make,
12
- customized to your markup:
13
-
14
- #heder, #footer, #navigation { display:none; }
15
-
4
+ * Gives you some sensible styles for printing pages.
5
+ See Readme file in this directory for further instructions.
6
+
7
+ Some additions you'll want to make, customized to your markup:
8
+ #header, #footer, #navigation { display:none; }
9
+
16
10
  -------------------------------------------------------------- */
17
11
 
18
12
  body {
19
13
  line-height: 1.5;
14
+ font-family: "Helvetica Neue", "Lucida Grande", Arial, Verdana, sans-serif;
20
15
  color:#000;
21
16
  background: none;
22
- font-size: 11pt;
17
+ font-size: 10pt;
18
+ }
19
+ .container {
20
+ background: none;
23
21
  }
24
22
 
25
- h1,h2,h3,
26
- h4,h5,h6 { font-family: Constantia, "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif; }
27
- body { font-family: Frutiger, Univers, "Helvetica Neue", "Lucida Grande", Calibri, Helvetica, Arial, sans-serif; }
28
- pre { font-family: Corbel, Verdana, "Bitstream Vera Sans", sans-serif; }
29
- code { font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Monaco, Courier, monospace; }
23
+ h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
24
+ code { font:.9em "Courier New", Monaco, Courier, monospace; }
30
25
 
31
- img {
32
- float:left;
33
- margin:1.5em 1.5em 1.5em 0;
34
- }
35
- p img.top {
36
- margin-top: 0;
37
- }
26
+ img { float:left; margin:1.5em 1.5em 1.5em 0; }
27
+ a img { border:none; }
28
+ p img.top { margin-top: 0; }
38
29
 
39
30
  hr {
40
31
  background:#ccc;
41
32
  color:#ccc;
42
- width:100%;
43
- height:2px;
44
- margin:2em 0;
45
- padding:0;
46
- border:none;
33
+ width:100%;
34
+ height:2px;
35
+ margin:2em 0;
36
+ padding:0;
37
+ border:none;
47
38
  }
48
- blockquote {
49
- margin:1.5em 0;
50
- padding:1em;
51
- border:0.2em solid #ccc;
52
- font-style:italic;
53
- font-size:0.9em;
39
+
40
+ blockquote {
41
+ margin:1.5em;
42
+ padding:1em;
43
+ font-style:italic;
44
+ font-size:.9em;
54
45
  }
55
46
 
56
- .small, .small p { font-size: 0.9em; }
57
- .large, .large p { font-size: 1.1em; }
58
- .quiet, .quiet p { color: #999; }
59
- .hide { display:none; }
47
+ .small { font-size: .9em; }
48
+ .large { font-size: 1.1em; }
49
+ .quiet { color: #999; }
50
+ .hide { display:none; }
60
51
 
61
52
  a:link, a:visited {
62
53
  background: transparent;
63
- font-weight: bold;
54
+ font-weight:700;
64
55
  text-decoration: underline;
65
56
  }
66
57
 
67
58
  a:link:after, a:visited:after {
68
- content: " (" attr(href) ") ";
69
- font-size: 90%;
59
+ content: " (" attr(href) ") ";
60
+ font-size: 90%;
70
61
  }
71
62
 
72
63
  /* If you're having trouble printing relative links, uncomment and customize this:
73
- (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
64
+ (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
74
65
 
75
66
  /* a[href^="/"]:after {
76
67
  content: " (http://www.yourdomain.com" attr(href) ") ";
77
68
  } */
78
-
79
-
@@ -1,30 +1,22 @@
1
1
  /* --------------------------------------------------------------
2
2
 
3
3
  Blueprint CSS Framework Screen Styles
4
- * Version: 0.5 (28/8/2007)
4
+ * Version: 0.6 (21.9.2007)
5
5
  * Website: http://code.google.com/p/blueprintcss/
6
-
7
- This is the main CSS-file for the framework.
8
- Include this in the <head> of every page. See the
9
- Readme file in this directory for further instructions.
6
+ See Readme file in this directory for further instructions.
10
7
 
11
8
  -------------------------------------------------------------- */
12
9
 
13
10
  @import 'lib/reset.css';
14
11
  @import 'lib/typography.css';
15
12
  @import 'lib/grid.css';
16
- @import 'lib/buttons.css';
13
+ @import 'lib/forms.css';
17
14
 
18
-
19
- /* Compressed version (re-compress if you change the core files):
20
- [http://teenage.cz/acidofil/tools/cssformat.php]
15
+ /* Plugins:
16
+ Additional functionality can be found in the plugins directory.
17
+ See the readme files for each plugin. Example:
18
+ @import 'plugins/buttons/buttons.css'; */
21
19
 
22
- Comment out @import statements above, and
23
- add this line instead, when your site has launched
24
- (compresses ca 60% of the core files in BP):
25
- @import 'lib/compressed.css'; */
26
-
27
-
28
- /* Uncomment the line below to see the grid and baseline. */
29
- /* .container { background: url(lib/img/grid.png); } */
30
- /* .container { background: url(lib/img/baseline.png); } */
20
+ /* See the grid:
21
+ Uncomment the line below to see the grid and baseline.
22
+ .container { background: url(lib/grid.png); } */