pupu 0.0.1 → 0.0.2.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +12 -1
- data/README.textile +38 -104
- data/Rakefile +17 -54
- data/TODO.txt +11 -6
- data/examples/merb/README.textile +7 -0
- data/examples/merb/Rakefile +30 -0
- data/examples/merb/application.rb +13 -0
- data/examples/merb/config/framework.rb +7 -0
- data/examples/merb/config/init.rb +48 -0
- data/examples/{blog/media/pupu/autocompleter → merb/public}/javascripts/initializers/autocompleter.js +0 -0
- data/examples/{blog/media/pupu/flash → merb/public}/javascripts/initializers/flash.js +0 -0
- data/examples/{blog/media/pupu/lighter → merb/public/javascripts}/initializers/lighter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/images/spinner.gif +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.local.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/autocompleter.request.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/javascripts/observer.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/autocompleter/stylesheets/autocompleter.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/ie.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/cross.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/key.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/icons/tick.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/buttons/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/fancy-type/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/doc.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/email.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/external.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/feed.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/im.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/pdf.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/visited.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/icons/xls.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/link-icons/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/rtl/readme.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/plugins/rtl/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/print.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/screen.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/forms.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/grid.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/grid.png +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/ie.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/print.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/reset.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/blueprint/stylesheets/src/typography.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/javascripts/flash.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/flash/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/TODO.txt +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.css.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.html.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.js.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.md.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.php.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.ruby.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.shell.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.sql.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/Fuel.template.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/ZeroClipboard.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/javascripts/lighter.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/media/ZeroClipboard.swf +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/metadata.yml +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.git.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.mocha.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.panic.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.standard.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.template.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.tutti.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/lighter/stylesheets/Flame.twilight.css +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/CHANGELOG +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/LICENSE +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/README.textile +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/Rakefile +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/TODO +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/config.rb +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/javascripts/mootools-1.2-core.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/javascripts/mootools-1.2-more.js +0 -0
- data/examples/{blog/media → merb/public}/pupu/mootools/metadata.yml +0 -0
- data/examples/{blog/media/pupu/flash → merb/public}/stylesheets/initializers/flash.css +0 -0
- data/examples/merb/spec/application_spec.rb +37 -0
- data/examples/merb/spec/spec_helper.rb +16 -0
- data/examples/merb/views/examples/arguments.html.erb +0 -0
- data/examples/merb/views/examples/dependencies.html.erb +0 -0
- data/examples/merb/views/examples/simple.html.erb +4 -0
- data/examples/merb/views/index.html.erb +7 -0
- data/examples/merb/views/layout.html.erb +12 -0
- data/examples/rango/README.textile +7 -0
- data/examples/{blog → rango}/Rakefile +0 -0
- data/examples/{blog → rango}/config.ru +2 -3
- data/examples/{blog → rango}/init.rb +6 -5
- data/examples/{blog → rango}/media/javascripts/initializers/lighter.js +0 -0
- data/examples/rango/media/pupu/autocompleter/CHANGELOG +1 -0
- data/examples/rango/media/pupu/autocompleter/LICENSE +20 -0
- data/examples/rango/media/pupu/autocompleter/README.textile +26 -0
- data/examples/rango/media/pupu/autocompleter/Rakefile +29 -0
- data/examples/rango/media/pupu/autocompleter/TODO +1 -0
- data/examples/rango/media/pupu/autocompleter/config.rb +12 -0
- data/examples/rango/media/pupu/autocompleter/images/spinner.gif +0 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.js +442 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.local.js +31 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/autocompleter.request.js +109 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/initializers/autocompleter.js +26 -0
- data/examples/rango/media/pupu/autocompleter/javascripts/observer.js +69 -0
- data/examples/rango/media/pupu/autocompleter/metadata.yml +5 -0
- data/examples/rango/media/pupu/autocompleter/stylesheets/autocompleter.css +68 -0
- data/examples/rango/media/pupu/blueprint/CHANGELOG +1 -0
- data/examples/rango/media/pupu/blueprint/LICENSE +20 -0
- data/examples/rango/media/pupu/blueprint/README.textile +22 -0
- data/examples/rango/media/pupu/blueprint/Rakefile +29 -0
- data/examples/rango/media/pupu/blueprint/TODO +3 -0
- data/examples/rango/media/pupu/blueprint/config.rb +18 -0
- data/examples/rango/media/pupu/blueprint/metadata.yml +5 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/ie.css +26 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/cross.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/key.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/icons/tick.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/readme.txt +32 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/buttons/screen.css +97 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/fancy-type/readme.txt +14 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/fancy-type/screen.css +71 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/doc.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/email.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/external.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/feed.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/im.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/pdf.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/visited.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/icons/xls.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/readme.txt +18 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/link-icons/screen.css +40 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/rtl/readme.txt +10 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/plugins/rtl/screen.css +109 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/print.css +30 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/screen.css +251 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/forms.css +49 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/grid.css +212 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/grid.png +0 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/ie.css +59 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/print.css +85 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/reset.css +38 -0
- data/examples/rango/media/pupu/blueprint/stylesheets/src/typography.css +105 -0
- data/examples/rango/media/pupu/flash/CHANGELOG +1 -0
- data/examples/rango/media/pupu/flash/LICENSE +20 -0
- data/examples/rango/media/pupu/flash/README.textile +22 -0
- data/examples/rango/media/pupu/flash/Rakefile +37 -0
- data/examples/rango/media/pupu/flash/TODO +1 -0
- data/examples/rango/media/pupu/flash/config.rb +11 -0
- data/examples/rango/media/pupu/flash/javascripts/flash.js +63 -0
- data/examples/rango/media/pupu/flash/javascripts/initializers/flash.js +12 -0
- data/examples/rango/media/pupu/flash/metadata.yml +5 -0
- data/examples/rango/media/pupu/flash/stylesheets/initializers/flash.css +21 -0
- data/examples/rango/media/pupu/lighter/CHANGELOG +2 -0
- data/examples/rango/media/pupu/lighter/LICENSE +20 -0
- data/examples/rango/media/pupu/lighter/README.textile +19 -0
- data/examples/rango/media/pupu/lighter/TODO.txt +4 -0
- data/examples/rango/media/pupu/lighter/config.rb +20 -0
- data/examples/rango/media/pupu/lighter/initializers/lighter.js +11 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.css.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.html.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.js.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.md.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.php.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.ruby.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.shell.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.sql.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/Fuel.template.js +45 -0
- data/examples/rango/media/pupu/lighter/javascripts/ZeroClipboard.js +1 -0
- data/examples/rango/media/pupu/lighter/javascripts/lighter.js +1 -0
- data/examples/rango/media/pupu/lighter/media/ZeroClipboard.swf +0 -0
- data/examples/rango/media/pupu/lighter/metadata.yml +5 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.git.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.mocha.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.panic.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.standard.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.template.css +101 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.tutti.css +1 -0
- data/examples/rango/media/pupu/lighter/stylesheets/Flame.twilight.css +1 -0
- data/examples/rango/media/pupu/mootools/CHANGELOG +2 -0
- data/examples/rango/media/pupu/mootools/LICENSE +20 -0
- data/examples/rango/media/pupu/mootools/README.textile +19 -0
- data/examples/rango/media/pupu/mootools/Rakefile +29 -0
- data/examples/rango/media/pupu/mootools/TODO +1 -0
- data/examples/rango/media/pupu/mootools/config.rb +8 -0
- data/examples/rango/media/pupu/mootools/javascripts/mootools-1.2-core.js +350 -0
- data/examples/rango/media/pupu/mootools/javascripts/mootools-1.2-more.js +154 -0
- data/examples/rango/media/pupu/mootools/metadata.yml +5 -0
- data/examples/rango/spec/pupu_spec.rb +37 -0
- data/examples/rango/spec/spec_helper.rb +15 -0
- data/examples/{blog → rango}/templates/base.html.haml +2 -3
- data/examples/rango/templates/examples/arguments.html.haml +7 -0
- data/examples/{blog → rango}/templates/examples/base.html.haml +3 -3
- data/examples/{blog → rango}/templates/examples/dependencies.html.haml +1 -1
- data/examples/{blog → rango}/templates/examples/simple.html.haml +1 -1
- data/examples/{blog → rango}/templates/index.html.haml +0 -0
- data/lib/pupu.rb +1 -1
- data/lib/pupu/adapters/merb.rb +4 -10
- data/lib/pupu/adapters/rails.rb +6 -0
- data/lib/pupu/adapters/rango.rb +0 -1
- data/lib/pupu/cli.rb +7 -3
- data/lib/pupu/github.rb +1 -1
- data/pupu.pre.gemspec +44 -0
- data/script/spec +2 -0
- data/tasks/benchmark.rake +11 -0
- data/tasks/gem.rake +23 -0
- data/tasks/hooks.rake +12 -0
- data/tasks/release.rake +68 -0
- data/tasks/spec.rake +27 -0
- data/tasks/submodules.rake +33 -0
- data/tasks/yardoc.rake +9 -0
- metadata +227 -115
- data/examples/blog/Thorfile +0 -9
- data/examples/blog/bin/pupu +0 -4
- data/examples/blog/config/pupu.rb +0 -4
- data/examples/blog/templates/examples/arguments.html.haml +0 -7
- data/url.rb +0 -20
- data/url_spec.rb +0 -35
Binary file
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
ie.css
|
4
|
+
|
5
|
+
Contains every hack for Internet Explorer,
|
6
|
+
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
|
+
/* Fixes IE margin bugs */
|
15
|
+
* html .column, * html div.span-1, * html div.span-2,
|
16
|
+
* html div.span-3, * html div.span-4, * html div.span-5,
|
17
|
+
* html div.span-6, * html div.span-7, * html div.span-8,
|
18
|
+
* html div.span-9, * html div.span-10, * html div.span-11,
|
19
|
+
* html div.span-12, * html div.span-13, * html div.span-14,
|
20
|
+
* html div.span-15, * html div.span-16, * html div.span-17,
|
21
|
+
* html div.span-18, * html div.span-19, * html div.span-20,
|
22
|
+
* html div.span-21, * html div.span-22, * html div.span-23,
|
23
|
+
* html div.span-24 { overflow-x: hidden; }
|
24
|
+
|
25
|
+
|
26
|
+
/* Elements
|
27
|
+
-------------------------------------------------------------- */
|
28
|
+
|
29
|
+
/* Fixes incorrect styling of legend in IE6. */
|
30
|
+
* html legend { margin:-18px -8px 16px 0; padding:0; }
|
31
|
+
|
32
|
+
/* Fixes incorrect placement of ol numbers in IE6/7. */
|
33
|
+
ol { margin-left:2em; }
|
34
|
+
|
35
|
+
/* Fixes wrong line-height on sup/sub in IE. */
|
36
|
+
sup { vertical-align: text-top; }
|
37
|
+
sub { vertical-align: text-bottom; }
|
38
|
+
|
39
|
+
/* Fixes IE7 missing wrapping of code elements. */
|
40
|
+
html>body p code { *white-space: normal; }
|
41
|
+
|
42
|
+
/* IE 6&7 has problems with setting proper <hr> margins. */
|
43
|
+
hr { margin: -8px auto 11px; }
|
44
|
+
|
45
|
+
|
46
|
+
/* Clearing
|
47
|
+
-------------------------------------------------------------- */
|
48
|
+
|
49
|
+
/* Makes clearfix actually work in IE */
|
50
|
+
.clearfix, .container {display: inline-block;}
|
51
|
+
* html .clearfix,
|
52
|
+
* html .container {height: 1%;}
|
53
|
+
|
54
|
+
|
55
|
+
/* Forms
|
56
|
+
-------------------------------------------------------------- */
|
57
|
+
|
58
|
+
/* Fixes padding on fieldset */
|
59
|
+
fieldset {padding-top: 0;}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
print.css
|
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
|
+
|
10
|
+
-------------------------------------------------------------- */
|
11
|
+
|
12
|
+
body {
|
13
|
+
line-height: 1.5;
|
14
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
15
|
+
color:#000;
|
16
|
+
background: none;
|
17
|
+
font-size: 10pt;
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
/* Layout
|
22
|
+
-------------------------------------------------------------- */
|
23
|
+
|
24
|
+
.container {
|
25
|
+
background: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
hr {
|
29
|
+
background:#ccc;
|
30
|
+
color:#ccc;
|
31
|
+
width:100%;
|
32
|
+
height:2px;
|
33
|
+
margin:2em 0;
|
34
|
+
padding:0;
|
35
|
+
border:none;
|
36
|
+
}
|
37
|
+
hr.space {
|
38
|
+
background: #fff;
|
39
|
+
color: #fff;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
/* Text
|
44
|
+
-------------------------------------------------------------- */
|
45
|
+
|
46
|
+
h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
|
47
|
+
code { font:.9em "Courier New", Monaco, Courier, monospace; }
|
48
|
+
|
49
|
+
img { float:left; margin:1.5em 1.5em 1.5em 0; }
|
50
|
+
a img { border:none; }
|
51
|
+
p img.top { margin-top: 0; }
|
52
|
+
|
53
|
+
blockquote {
|
54
|
+
margin:1.5em;
|
55
|
+
padding:1em;
|
56
|
+
font-style:italic;
|
57
|
+
font-size:.9em;
|
58
|
+
}
|
59
|
+
|
60
|
+
.small { font-size: .9em; }
|
61
|
+
.large { font-size: 1.1em; }
|
62
|
+
.quiet { color: #999; }
|
63
|
+
.hide { display:none; }
|
64
|
+
|
65
|
+
|
66
|
+
/* Links
|
67
|
+
-------------------------------------------------------------- */
|
68
|
+
|
69
|
+
a:link, a:visited {
|
70
|
+
background: transparent;
|
71
|
+
font-weight:700;
|
72
|
+
text-decoration: underline;
|
73
|
+
}
|
74
|
+
|
75
|
+
a:link:after, a:visited:after {
|
76
|
+
content: " (" attr(href) ") ";
|
77
|
+
font-size: 90%;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* If you're having trouble printing relative links, uncomment and customize this:
|
81
|
+
(note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
|
82
|
+
|
83
|
+
/* a[href^="/"]:after {
|
84
|
+
content: " (http://www.yourdomain.com" attr(href) ") ";
|
85
|
+
} */
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
reset.css
|
4
|
+
* Resets default browser CSS.
|
5
|
+
|
6
|
+
-------------------------------------------------------------- */
|
7
|
+
|
8
|
+
html, body, div, span, object, iframe,
|
9
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
10
|
+
a, abbr, acronym, address, code,
|
11
|
+
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
|
12
|
+
fieldset, form, label, legend,
|
13
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
14
|
+
margin: 0;
|
15
|
+
padding: 0;
|
16
|
+
border: 0;
|
17
|
+
font-weight: inherit;
|
18
|
+
font-style: inherit;
|
19
|
+
font-size: 100%;
|
20
|
+
font-family: inherit;
|
21
|
+
vertical-align: baseline;
|
22
|
+
}
|
23
|
+
|
24
|
+
body {
|
25
|
+
line-height: 1.5;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* Tables still need 'cellspacing="0"' in the markup. */
|
29
|
+
table { border-collapse: separate; border-spacing: 0; }
|
30
|
+
caption, th, td { text-align: left; font-weight: normal; }
|
31
|
+
table, td, th { vertical-align: middle; }
|
32
|
+
|
33
|
+
/* Remove possible quote marks (") from <q>, <blockquote>. */
|
34
|
+
blockquote:before, blockquote:after, q:before, q:after { content: ""; }
|
35
|
+
blockquote, q { quotes: "" ""; }
|
36
|
+
|
37
|
+
/* Remove annoying border on linked images. */
|
38
|
+
a img { border: none; }
|
@@ -0,0 +1,105 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
typography.css
|
4
|
+
* Sets up some sensible default typography.
|
5
|
+
|
6
|
+
-------------------------------------------------------------- */
|
7
|
+
|
8
|
+
/* Default font settings.
|
9
|
+
The font-size percentage is of 16px. (0.75 * 16px = 12px) */
|
10
|
+
body {
|
11
|
+
font-size: 75%;
|
12
|
+
color: #222;
|
13
|
+
background: #fff;
|
14
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
/* Headings
|
19
|
+
-------------------------------------------------------------- */
|
20
|
+
|
21
|
+
h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
|
22
|
+
|
23
|
+
h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
|
24
|
+
h2 { font-size: 2em; margin-bottom: 0.75em; }
|
25
|
+
h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
|
26
|
+
h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
|
27
|
+
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
|
28
|
+
h6 { font-size: 1em; font-weight: bold; }
|
29
|
+
|
30
|
+
h1 img, h2 img, h3 img,
|
31
|
+
h4 img, h5 img, h6 img {
|
32
|
+
margin: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
/* Text elements
|
37
|
+
-------------------------------------------------------------- */
|
38
|
+
|
39
|
+
p { margin: 0 0 1.5em; }
|
40
|
+
p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
|
41
|
+
p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
|
42
|
+
|
43
|
+
a:focus,
|
44
|
+
a:hover { color: #000; }
|
45
|
+
a { color: #009; text-decoration: underline; }
|
46
|
+
|
47
|
+
blockquote { margin: 1.5em; color: #666; font-style: italic; }
|
48
|
+
strong { font-weight: bold; }
|
49
|
+
em,dfn { font-style: italic; }
|
50
|
+
dfn { font-weight: bold; }
|
51
|
+
sup, sub { line-height: 0; }
|
52
|
+
|
53
|
+
abbr,
|
54
|
+
acronym { border-bottom: 1px dotted #666; }
|
55
|
+
address { margin: 0 0 1.5em; font-style: italic; }
|
56
|
+
del { color:#666; }
|
57
|
+
|
58
|
+
pre { margin: 1.5em 0; white-space: pre; }
|
59
|
+
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
|
60
|
+
|
61
|
+
|
62
|
+
/* Lists
|
63
|
+
-------------------------------------------------------------- */
|
64
|
+
|
65
|
+
li ul,
|
66
|
+
li ol { margin:0 1.5em; }
|
67
|
+
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
|
68
|
+
|
69
|
+
ul { list-style-type: disc; }
|
70
|
+
ol { list-style-type: decimal; }
|
71
|
+
|
72
|
+
dl { margin: 0 0 1.5em 0; }
|
73
|
+
dl dt { font-weight: bold; }
|
74
|
+
dd { margin-left: 1.5em;}
|
75
|
+
|
76
|
+
|
77
|
+
/* Tables
|
78
|
+
-------------------------------------------------------------- */
|
79
|
+
|
80
|
+
table { margin-bottom: 1.4em; width:100%; }
|
81
|
+
th { font-weight: bold; }
|
82
|
+
thead th { background: #c3d9ff; }
|
83
|
+
th,td,caption { padding: 4px 10px 4px 5px; }
|
84
|
+
tr.even td { background: #e5ecf9; }
|
85
|
+
tfoot { font-style: italic; }
|
86
|
+
caption { background: #eee; }
|
87
|
+
|
88
|
+
|
89
|
+
/* Misc classes
|
90
|
+
-------------------------------------------------------------- */
|
91
|
+
|
92
|
+
.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
|
93
|
+
.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
|
94
|
+
.hide { display: none; }
|
95
|
+
|
96
|
+
.quiet { color: #666; }
|
97
|
+
.loud { color: #000; }
|
98
|
+
.highlight { background:#ff0; }
|
99
|
+
.added { background:#060; color: #fff; }
|
100
|
+
.removed { background:#900; color: #fff; }
|
101
|
+
|
102
|
+
.first { margin-left:0; padding-left:0; }
|
103
|
+
.last { margin-right:0; padding-right:0; }
|
104
|
+
.top { margin-top:0; padding-top:0; }
|
105
|
+
.bottom { margin-bottom:0; padding-bottom:0; }
|
@@ -0,0 +1 @@
|
|
1
|
+
[12/2/2008] First public release
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 botanicus
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
h1. About merb_pupu
|
2
|
+
|
3
|
+
Merb_pupu is a plugin system for merb's public stuff like mootools plugins, icon sets etc. It knows dependencies and it has CLI interface, so it's really easy to bundle such plugins into your app. Please see http://github.com/botanicus/merb_pupu for more informations.
|
4
|
+
|
5
|
+
h1. About flash
|
6
|
+
|
7
|
+
h1. Usage
|
8
|
+
|
9
|
+
h2. Layout
|
10
|
+
|
11
|
+
<pre>
|
12
|
+
# for basic functionality
|
13
|
+
plugin :flash
|
14
|
+
</pre>
|
15
|
+
|
16
|
+
h2. Initializers
|
17
|
+
|
18
|
+
<pre>
|
19
|
+
window.addEvent("domready", function() {
|
20
|
+
// do the init stuff
|
21
|
+
})
|
22
|
+
</pre>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
namespace :git do
|
2
|
+
desc "Do the initial import"
|
3
|
+
task :init do
|
4
|
+
sh "git init"
|
5
|
+
sh "git add ."
|
6
|
+
sh "git commit -a -m 'Initial import'"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
namespace :github do
|
11
|
+
desc "Do the initial import"
|
12
|
+
task :create do
|
13
|
+
user = ENV["USER"]
|
14
|
+
repo = "pupu-<%= name %>" # TODO: add the Rakefile as erb template
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
namespace :javascripts do
|
19
|
+
desc "Compress javascripts"
|
20
|
+
task :compress do
|
21
|
+
puts "This task isn't ready yet."
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
namespace :stylesheets do
|
26
|
+
desc "Compress stylesheets"
|
27
|
+
task :compress do
|
28
|
+
puts "This task isn't ready yet."
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
namespace :sass do
|
33
|
+
desc "Compile Sass templates"
|
34
|
+
task :compile do
|
35
|
+
puts "This task isn't ready yet."
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
- write README
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# dependencies of the pupu
|
2
|
+
dependencies :mootools
|
3
|
+
|
4
|
+
# javascripts for loading
|
5
|
+
javascript "flash"
|
6
|
+
|
7
|
+
# parameters of plugin
|
8
|
+
# it will be blank in most cases
|
9
|
+
#parameter :request, :optional => ["local", "ajax"] do |type|
|
10
|
+
# javascript "lib/autocompleter.#{type}"
|
11
|
+
#end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
|
2
|
+
// var flash = new Flash("msg", {duration: "small"});
|
3
|
+
// <div id="msg-error"></div>
|
4
|
+
Flash = new Class({
|
5
|
+
initialize: function(prefix, options) {
|
6
|
+
this.prefix = prefix;
|
7
|
+
this.error_element = $(this.prefix + "-error");
|
8
|
+
this.notice_element = $(this.prefix + "-notice");
|
9
|
+
this.success_element = $(this.prefix + "-success");
|
10
|
+
this.first_run();
|
11
|
+
},
|
12
|
+
|
13
|
+
message: function(element, title, text) {
|
14
|
+
if (title) { text = "<h3>" + title + "</h3>" + text }
|
15
|
+
var slide = new Fx.Slide(element);
|
16
|
+
slide.hide();
|
17
|
+
element.set("html", text);
|
18
|
+
slide.slideIn();
|
19
|
+
(function() { slide.slideOut() }).delay(2500);
|
20
|
+
},
|
21
|
+
|
22
|
+
error: function(title, text) {
|
23
|
+
if (text) {
|
24
|
+
// flash.error("Just an alert");
|
25
|
+
this.message(this.error_element, title, text);
|
26
|
+
} else {
|
27
|
+
// flash.error("Just an alert");
|
28
|
+
this.message(this.error_element, null, title);
|
29
|
+
}
|
30
|
+
},
|
31
|
+
|
32
|
+
notice: function(title, text) {
|
33
|
+
if (text) {
|
34
|
+
// flash.notice("Just an alert");
|
35
|
+
this.message(this.notice_element, title, text);
|
36
|
+
} else {
|
37
|
+
// flash.notice("Just an alert");
|
38
|
+
this.message(this.notice_element, null, title);
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
success: function(title, text) {
|
43
|
+
if (text) {
|
44
|
+
// flash.error("Just an alert");
|
45
|
+
this.message(this.success_element, title, text);
|
46
|
+
} else {
|
47
|
+
// flash.error("Just an alert");
|
48
|
+
this.message(this.success_element, null, title);
|
49
|
+
}
|
50
|
+
},
|
51
|
+
|
52
|
+
first_run: function() {
|
53
|
+
var flash = this;
|
54
|
+
[this.error_element, this.notice_element, this.success_element].each(function(element) {
|
55
|
+
element.setStyle("display", "block");
|
56
|
+
if (element.get("html") != "") {
|
57
|
+
flash.message(element, "", element.get("html"));
|
58
|
+
} else {
|
59
|
+
element.slide("hide");
|
60
|
+
}
|
61
|
+
});
|
62
|
+
},
|
63
|
+
});
|