webby 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -0
- data/Manifest.txt +21 -15
- data/Rakefile +4 -2
- data/data/content/css/blueprint/compressed/print.css +76 -0
- data/data/content/css/blueprint/compressed/screen.css +696 -0
- data/data/content/css/blueprint/lib/forms.css +45 -0
- data/data/content/css/blueprint/lib/grid.css +95 -51
- data/data/content/css/blueprint/lib/grid.png +0 -0
- data/data/content/css/blueprint/lib/ie.css +30 -0
- data/data/content/css/blueprint/lib/reset.css +11 -12
- data/data/content/css/blueprint/lib/typography.css +69 -114
- data/data/content/css/blueprint/plugins/buttons/Readme +31 -0
- data/data/content/css/blueprint/{lib → plugins/buttons}/buttons.css +17 -32
- data/data/content/css/blueprint/{lib/img → plugins/buttons}/icons/cross.png +0 -0
- data/data/content/css/blueprint/{lib/img/icons/textfield_key.png → plugins/buttons/icons/key.png} +0 -0
- data/data/content/css/blueprint/{lib/img → plugins/buttons}/icons/tick.png +0 -0
- data/data/content/css/blueprint/plugins/css-classes/Readme +14 -0
- data/data/content/css/blueprint/plugins/css-classes/css-classes.css +24 -0
- data/data/content/css/blueprint/plugins/fancy-type/Readme +22 -0
- data/data/content/css/blueprint/plugins/fancy-type/fancy-type-compressed.css +5 -0
- data/data/content/css/blueprint/plugins/fancy-type/fancy-type.css +74 -0
- data/data/content/css/blueprint/print.css +35 -46
- data/data/content/css/blueprint/screen.css +10 -18
- data/data/content/css/site.css +8 -0
- data/data/content/index.txt +2 -2
- data/data/layouts/default.rhtml +4 -4
- data/data/templates/page.erb +3 -3
- data/examples/webby/content/css/blueprint/print.css +58 -61
- data/examples/webby/content/css/blueprint/screen.css +696 -30
- data/examples/webby/content/css/site.css +63 -45
- data/examples/webby/content/index.txt +2 -2
- data/examples/webby/content/manual.txt +366 -15
- data/examples/webby/content/script/jquery.corner.js +152 -0
- data/examples/webby/content/script/jquery.js +31 -0
- data/examples/webby/content/tips_and_tricks.txt +2 -2
- data/examples/webby/content/tutorial.txt +5 -5
- data/examples/webby/layouts/default.rhtml +19 -10
- data/examples/webby/templates/page.erb +5 -3
- data/lib/webby.rb +25 -3
- data/lib/webby/filters/basepath.rb +97 -0
- data/lib/webby/filters/coderay.rb +2 -2
- data/lib/webby/filters/graphviz.rb +10 -10
- data/lib/webby/filters/haml.rb +3 -7
- data/lib/webby/filters/outline.rb +194 -0
- data/lib/webby/helpers/tag_helper.rb +14 -13
- data/lib/webby/helpers/url_helper.rb +84 -13
- data/lib/webby/pages_db.rb +15 -8
- data/lib/webby/renderer.rb +2 -2
- data/lib/webby/resource.rb +6 -6
- data/lib/webby/utils.rb +17 -1
- data/lib/webby/webby_task.rb +20 -7
- data/tasks/annotations.rake +1 -1
- data/tasks/doc.rake +2 -2
- data/tasks/gem.rake +3 -3
- data/tasks/manifest.rake +5 -2
- data/tasks/post_load.rake +18 -0
- data/tasks/rubyforge.rake +1 -1
- data/tasks/setup.rb +56 -11
- data/tasks/spec.rake +4 -1
- data/tasks/svn.rake +44 -0
- data/tasks/website.rake +2 -2
- metadata +33 -18
- data/data/content/css/blueprint/lib/compressed.css +0 -137
- data/data/content/css/blueprint/lib/img/grid.png +0 -0
- data/examples/webby/content/css/blueprint/lib/buttons.css +0 -112
- data/examples/webby/content/css/blueprint/lib/compressed.css +0 -137
- data/examples/webby/content/css/blueprint/lib/grid.css +0 -149
- data/examples/webby/content/css/blueprint/lib/img/grid.png +0 -0
- data/examples/webby/content/css/blueprint/lib/img/icons/cross.png +0 -0
- data/examples/webby/content/css/blueprint/lib/img/icons/textfield_key.png +0 -0
- data/examples/webby/content/css/blueprint/lib/img/icons/tick.png +0 -0
- data/examples/webby/content/css/blueprint/lib/reset.css +0 -40
- 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
|
-
|
4
|
-
*
|
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
|
-
|
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
|
17
|
+
padding:5px 10px 5px 7px; /* Links */
|
35
18
|
|
36
|
-
border:
|
37
|
-
border-top:
|
38
|
-
border-left:
|
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:
|
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:
|
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:
|
75
|
+
border:1px solid #C6D880;
|
92
76
|
color:#529214;
|
93
77
|
}
|
94
78
|
a.positive:active {
|
95
79
|
background-color:#529214;
|
96
|
-
border:
|
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:
|
90
|
+
border:1px solid #fbc2c4;
|
91
|
+
color:#d12f19;
|
107
92
|
}
|
108
93
|
a.negative:active {
|
109
94
|
background-color:#d12f19;
|
110
|
-
border:
|
95
|
+
border:1px solid #d12f19;
|
111
96
|
color:#fff;
|
112
97
|
}
|
File without changes
|
data/data/content/css/blueprint/{lib/img/icons/textfield_key.png → plugins/buttons/icons/key.png}
RENAMED
File without changes
|
File without changes
|
@@ -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">“</span>asdf”
|
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
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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:
|
17
|
+
font-size: 10pt;
|
18
|
+
}
|
19
|
+
.container {
|
20
|
+
background: none;
|
23
21
|
}
|
24
22
|
|
25
|
-
h1,h2,h3,
|
26
|
-
|
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
|
-
|
33
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
font-style:italic;
|
53
|
-
font-size
|
39
|
+
|
40
|
+
blockquote {
|
41
|
+
margin:1.5em;
|
42
|
+
padding:1em;
|
43
|
+
font-style:italic;
|
44
|
+
font-size:.9em;
|
54
45
|
}
|
55
46
|
|
56
|
-
.small
|
57
|
-
.large
|
58
|
-
.quiet
|
59
|
-
.hide
|
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:
|
54
|
+
font-weight:700;
|
64
55
|
text-decoration: underline;
|
65
56
|
}
|
66
57
|
|
67
58
|
a:link:after, a:visited:after {
|
68
|
-
|
69
|
-
|
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.
|
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/
|
13
|
+
@import 'lib/forms.css';
|
17
14
|
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
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); } */
|