splendeo-generators 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/CHANGELOG +119 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +98 -0
  4. data/Rakefile +12 -0
  5. data/lib/nifty_generators.rb +3 -0
  6. data/rails_generators/splendeo_authentication/USAGE +50 -0
  7. data/rails_generators/splendeo_authentication/lib/insert_commands.rb +74 -0
  8. data/rails_generators/splendeo_authentication/splendeo_authentication_generator.rb +128 -0
  9. data/rails_generators/splendeo_authentication/templates/authentication.rb +61 -0
  10. data/rails_generators/splendeo_authentication/templates/authlogic_session.rb +2 -0
  11. data/rails_generators/splendeo_authentication/templates/fixtures.yml +24 -0
  12. data/rails_generators/splendeo_authentication/templates/migration.rb +20 -0
  13. data/rails_generators/splendeo_authentication/templates/sessions_controller.rb +45 -0
  14. data/rails_generators/splendeo_authentication/templates/sessions_helper.rb +2 -0
  15. data/rails_generators/splendeo_authentication/templates/tests/rspec/sessions_controller.rb +39 -0
  16. data/rails_generators/splendeo_authentication/templates/tests/rspec/user.rb +83 -0
  17. data/rails_generators/splendeo_authentication/templates/tests/rspec/users_controller.rb +26 -0
  18. data/rails_generators/splendeo_authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
  19. data/rails_generators/splendeo_authentication/templates/tests/shoulda/user.rb +85 -0
  20. data/rails_generators/splendeo_authentication/templates/tests/shoulda/users_controller.rb +27 -0
  21. data/rails_generators/splendeo_authentication/templates/tests/testunit/sessions_controller.rb +36 -0
  22. data/rails_generators/splendeo_authentication/templates/tests/testunit/user.rb +88 -0
  23. data/rails_generators/splendeo_authentication/templates/tests/testunit/users_controller.rb +23 -0
  24. data/rails_generators/splendeo_authentication/templates/user.rb +42 -0
  25. data/rails_generators/splendeo_authentication/templates/users_controller.rb +18 -0
  26. data/rails_generators/splendeo_authentication/templates/users_helper.rb +2 -0
  27. data/rails_generators/splendeo_authentication/templates/views/erb/login.html.erb +30 -0
  28. data/rails_generators/splendeo_authentication/templates/views/erb/signup.html.erb +24 -0
  29. data/rails_generators/splendeo_authentication/templates/views/haml/login.html.haml +30 -0
  30. data/rails_generators/splendeo_authentication/templates/views/haml/signup.html.haml +24 -0
  31. data/rails_generators/splendeo_config/USAGE +23 -0
  32. data/rails_generators/splendeo_config/splendeo_config_generator.rb +32 -0
  33. data/rails_generators/splendeo_config/templates/config.yml +8 -0
  34. data/rails_generators/splendeo_config/templates/load_config.rb +2 -0
  35. data/rails_generators/splendeo_layout/USAGE +25 -0
  36. data/rails_generators/splendeo_layout/splendeo_layout_generator.rb +76 -0
  37. data/rails_generators/splendeo_layout/templates/blueprint-sass/ie.sass +103 -0
  38. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/buttons/icons/cross.png +0 -0
  39. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/buttons/icons/key.png +0 -0
  40. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/buttons/icons/tick.png +0 -0
  41. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/buttons/readme.txt +32 -0
  42. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/buttons/screen.sass +104 -0
  43. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/fancy-type/readme.txt +14 -0
  44. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/fancy-type/screen.sass +34 -0
  45. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/doc.png +0 -0
  46. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/email.png +0 -0
  47. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/external.png +0 -0
  48. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/feed.png +0 -0
  49. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/im.png +0 -0
  50. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/pdf.png +0 -0
  51. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/visited.png +0 -0
  52. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/icons/xls.png +0 -0
  53. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/readme.txt +18 -0
  54. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/link-icons/screen.sass +50 -0
  55. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/rtl/readme.txt +10 -0
  56. data/rails_generators/splendeo_layout/templates/blueprint-sass/plugins/rtl/screen.sass +272 -0
  57. data/rails_generators/splendeo_layout/templates/blueprint-sass/print.sass +75 -0
  58. data/rails_generators/splendeo_layout/templates/blueprint-sass/screen.sass +1062 -0
  59. data/rails_generators/splendeo_layout/templates/blueprint/ie.css +35 -0
  60. data/rails_generators/splendeo_layout/templates/blueprint/plugins/buttons/icons/cross.png +0 -0
  61. data/rails_generators/splendeo_layout/templates/blueprint/plugins/buttons/icons/key.png +0 -0
  62. data/rails_generators/splendeo_layout/templates/blueprint/plugins/buttons/icons/tick.png +0 -0
  63. data/rails_generators/splendeo_layout/templates/blueprint/plugins/buttons/readme.txt +32 -0
  64. data/rails_generators/splendeo_layout/templates/blueprint/plugins/buttons/screen.css +97 -0
  65. data/rails_generators/splendeo_layout/templates/blueprint/plugins/fancy-type/readme.txt +14 -0
  66. data/rails_generators/splendeo_layout/templates/blueprint/plugins/fancy-type/screen.css +71 -0
  67. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/doc.png +0 -0
  68. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/email.png +0 -0
  69. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/external.png +0 -0
  70. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/feed.png +0 -0
  71. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/im.png +0 -0
  72. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  73. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/visited.png +0 -0
  74. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/icons/xls.png +0 -0
  75. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/readme.txt +18 -0
  76. data/rails_generators/splendeo_layout/templates/blueprint/plugins/link-icons/screen.css +40 -0
  77. data/rails_generators/splendeo_layout/templates/blueprint/plugins/rtl/readme.txt +10 -0
  78. data/rails_generators/splendeo_layout/templates/blueprint/plugins/rtl/screen.css +110 -0
  79. data/rails_generators/splendeo_layout/templates/blueprint/print.css +29 -0
  80. data/rails_generators/splendeo_layout/templates/blueprint/screen.css +258 -0
  81. data/rails_generators/splendeo_layout/templates/haml/init.rb +16 -0
  82. data/rails_generators/splendeo_layout/templates/helper.rb +22 -0
  83. data/rails_generators/splendeo_layout/templates/layout.html.erb +34 -0
  84. data/rails_generators/splendeo_layout/templates/layout.html.haml +31 -0
  85. data/rails_generators/splendeo_layout/templates/stylesheet.css +77 -0
  86. data/rails_generators/splendeo_layout/templates/stylesheet.sass +63 -0
  87. data/rails_generators/splendeo_scaffold/USAGE +51 -0
  88. data/rails_generators/splendeo_scaffold/splendeo_scaffold_generator.rb +232 -0
  89. data/rails_generators/splendeo_scaffold/templates/actions/create.rb +9 -0
  90. data/rails_generators/splendeo_scaffold/templates/actions/destroy.rb +6 -0
  91. data/rails_generators/splendeo_scaffold/templates/actions/edit.rb +3 -0
  92. data/rails_generators/splendeo_scaffold/templates/actions/index.rb +3 -0
  93. data/rails_generators/splendeo_scaffold/templates/actions/new.rb +3 -0
  94. data/rails_generators/splendeo_scaffold/templates/actions/show.rb +3 -0
  95. data/rails_generators/splendeo_scaffold/templates/actions/update.rb +9 -0
  96. data/rails_generators/splendeo_scaffold/templates/controller.rb +3 -0
  97. data/rails_generators/splendeo_scaffold/templates/fixtures.yml +9 -0
  98. data/rails_generators/splendeo_scaffold/templates/helper.rb +2 -0
  99. data/rails_generators/splendeo_scaffold/templates/migration.rb +16 -0
  100. data/rails_generators/splendeo_scaffold/templates/model.rb +3 -0
  101. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/create.rb +11 -0
  102. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  103. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  104. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/index.rb +4 -0
  105. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/new.rb +4 -0
  106. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/show.rb +4 -0
  107. data/rails_generators/splendeo_scaffold/templates/tests/rspec/actions/update.rb +11 -0
  108. data/rails_generators/splendeo_scaffold/templates/tests/rspec/controller.rb +8 -0
  109. data/rails_generators/splendeo_scaffold/templates/tests/rspec/model.rb +7 -0
  110. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  111. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  112. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  113. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  114. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  115. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  116. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  117. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/controller.rb +5 -0
  118. data/rails_generators/splendeo_scaffold/templates/tests/shoulda/model.rb +7 -0
  119. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/create.rb +11 -0
  120. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  121. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  122. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/index.rb +4 -0
  123. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/new.rb +4 -0
  124. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/show.rb +4 -0
  125. data/rails_generators/splendeo_scaffold/templates/tests/testunit/actions/update.rb +11 -0
  126. data/rails_generators/splendeo_scaffold/templates/tests/testunit/controller.rb +5 -0
  127. data/rails_generators/splendeo_scaffold/templates/tests/testunit/model.rb +7 -0
  128. data/rails_generators/splendeo_scaffold/templates/views/erb/_form.html.erb +10 -0
  129. data/rails_generators/splendeo_scaffold/templates/views/erb/edit.html.erb +14 -0
  130. data/rails_generators/splendeo_scaffold/templates/views/erb/index.html.erb +29 -0
  131. data/rails_generators/splendeo_scaffold/templates/views/erb/new.html.erb +7 -0
  132. data/rails_generators/splendeo_scaffold/templates/views/erb/show.html.erb +20 -0
  133. data/rails_generators/splendeo_scaffold/templates/views/haml/_form.html.haml +10 -0
  134. data/rails_generators/splendeo_scaffold/templates/views/haml/edit.html.haml +14 -0
  135. data/rails_generators/splendeo_scaffold/templates/views/haml/index.html.haml +25 -0
  136. data/rails_generators/splendeo_scaffold/templates/views/haml/new.html.haml +7 -0
  137. data/rails_generators/splendeo_scaffold/templates/views/haml/show.html.haml +20 -0
  138. data/test/test_helper.rb +119 -0
  139. data/test/test_splendeo_authentication_generator.rb +274 -0
  140. data/test/test_splendeo_config_generator.rb +37 -0
  141. data/test/test_splendeo_layout_generator.rb +42 -0
  142. data/test/test_splendeo_scaffold_generator.rb +534 -0
  143. metadata +212 -0
@@ -0,0 +1,29 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 0.9
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* print.css */
15
+ body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;}
16
+ .container {background:none;}
17
+ hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;}
18
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
19
+ h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;}
20
+ code {font:.9em "Courier New", Monaco, Courier, monospace;}
21
+ a img {border:none;}
22
+ p img.top {margin-top:0;}
23
+ blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;}
24
+ .small {font-size:.9em;}
25
+ .large {font-size:1.1em;}
26
+ .quiet {color:#999;}
27
+ .hide {display:none;}
28
+ a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;}
29
+ a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;}
@@ -0,0 +1,258 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 0.9
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* reset.css */
15
+ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
16
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
17
+ body {line-height:1.5;}
18
+ table {border-collapse:separate;border-spacing:0;}
19
+ caption, th, td {text-align:left;font-weight:normal;}
20
+ table, td, th {vertical-align:middle;}
21
+ blockquote:before, blockquote:after, q:before, q:after {content:"";}
22
+ blockquote, q {quotes:"" "";}
23
+ a img {border:none;}
24
+
25
+ /* typography.css */
26
+ html {font-size:100.01%;}
27
+ body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
28
+ h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
29
+ h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
30
+ h2 {font-size:2em;margin-bottom:0.75em;}
31
+ h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
32
+ h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
33
+ h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
34
+ h6 {font-size:1em;font-weight:bold;}
35
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
36
+ p {margin:0 0 1.5em;}
37
+ p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
38
+ p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
39
+ a:focus, a:hover {color:#000;}
40
+ a {color:#009;text-decoration:underline;}
41
+ blockquote {margin:1.5em;color:#666;font-style:italic;}
42
+ strong {font-weight:bold;}
43
+ em, dfn {font-style:italic;}
44
+ dfn {font-weight:bold;}
45
+ sup, sub {line-height:0;}
46
+ abbr, acronym {border-bottom:1px dotted #666;}
47
+ address {margin:0 0 1.5em;font-style:italic;}
48
+ del {color:#666;}
49
+ pre {margin:1.5em 0;white-space:pre;}
50
+ pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
51
+ li ul, li ol {margin:0;}
52
+ ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
53
+ ul {list-style-type:disc;}
54
+ ol {list-style-type:decimal;}
55
+ dl {margin:0 0 1.5em 0;}
56
+ dl dt {font-weight:bold;}
57
+ dd {margin-left:1.5em;}
58
+ table {margin-bottom:1.4em;width:100%;}
59
+ th {font-weight:bold;}
60
+ thead th {background:#c3d9ff;}
61
+ th, td, caption {padding:4px 10px 4px 5px;}
62
+ tr.even td {background:#e5ecf9;}
63
+ tfoot {font-style:italic;}
64
+ caption {background:#eee;}
65
+ .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
66
+ .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
67
+ .hide {display:none;}
68
+ .quiet {color:#666;}
69
+ .loud {color:#000;}
70
+ .highlight {background:#ff0;}
71
+ .added {background:#060;color:#fff;}
72
+ .removed {background:#900;color:#fff;}
73
+ .first {margin-left:0;padding-left:0;}
74
+ .last {margin-right:0;padding-right:0;}
75
+ .top {margin-top:0;padding-top:0;}
76
+ .bottom {margin-bottom:0;padding-bottom:0;}
77
+
78
+ /* forms.css */
79
+ label {font-weight:bold;}
80
+ fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
81
+ legend {font-weight:bold;font-size:1.2em;}
82
+ input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
83
+ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
84
+ input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
85
+ input.text, input.title {width:300px;padding:5px;}
86
+ input.title {font-size:1.5em;}
87
+ textarea {width:390px;height:250px;padding:5px;}
88
+ input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
89
+ form.inline {line-height:3;}
90
+ form.inline p {margin-bottom:0;}
91
+ .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
92
+ .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
93
+ .notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
94
+ .success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
95
+ .error a {color:#8a1f11;}
96
+ .notice a {color:#514721;}
97
+ .success a {color:#264409;}
98
+
99
+ /* grid.css */
100
+ .container {width:950px;margin:0 auto;}
101
+ .showgrid {background:url(src/grid.png);}
102
+ .column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {float:left;margin-right:10px;}
103
+ .last {margin-right:0;}
104
+ .span-1 {width:30px;}
105
+ .span-2 {width:70px;}
106
+ .span-3 {width:110px;}
107
+ .span-4 {width:150px;}
108
+ .span-5 {width:190px;}
109
+ .span-6 {width:230px;}
110
+ .span-7 {width:270px;}
111
+ .span-8 {width:310px;}
112
+ .span-9 {width:350px;}
113
+ .span-10 {width:390px;}
114
+ .span-11 {width:430px;}
115
+ .span-12 {width:470px;}
116
+ .span-13 {width:510px;}
117
+ .span-14 {width:550px;}
118
+ .span-15 {width:590px;}
119
+ .span-16 {width:630px;}
120
+ .span-17 {width:670px;}
121
+ .span-18 {width:710px;}
122
+ .span-19 {width:750px;}
123
+ .span-20 {width:790px;}
124
+ .span-21 {width:830px;}
125
+ .span-22 {width:870px;}
126
+ .span-23 {width:910px;}
127
+ .span-24 {width:950px;margin-right:0;}
128
+ input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;}
129
+ input.span-1, textarea.span-1 {width:18px!important;}
130
+ input.span-2, textarea.span-2 {width:58px!important;}
131
+ input.span-3, textarea.span-3 {width:98px!important;}
132
+ input.span-4, textarea.span-4 {width:138px!important;}
133
+ input.span-5, textarea.span-5 {width:178px!important;}
134
+ input.span-6, textarea.span-6 {width:218px!important;}
135
+ input.span-7, textarea.span-7 {width:258px!important;}
136
+ input.span-8, textarea.span-8 {width:298px!important;}
137
+ input.span-9, textarea.span-9 {width:338px!important;}
138
+ input.span-10, textarea.span-10 {width:378px!important;}
139
+ input.span-11, textarea.span-11 {width:418px!important;}
140
+ input.span-12, textarea.span-12 {width:458px!important;}
141
+ input.span-13, textarea.span-13 {width:498px!important;}
142
+ input.span-14, textarea.span-14 {width:538px!important;}
143
+ input.span-15, textarea.span-15 {width:578px!important;}
144
+ input.span-16, textarea.span-16 {width:618px!important;}
145
+ input.span-17, textarea.span-17 {width:658px!important;}
146
+ input.span-18, textarea.span-18 {width:698px!important;}
147
+ input.span-19, textarea.span-19 {width:738px!important;}
148
+ input.span-20, textarea.span-20 {width:778px!important;}
149
+ input.span-21, textarea.span-21 {width:818px!important;}
150
+ input.span-22, textarea.span-22 {width:858px!important;}
151
+ input.span-23, textarea.span-23 {width:898px!important;}
152
+ input.span-24, textarea.span-24 {width:938px!important;}
153
+ .append-1 {padding-right:40px;}
154
+ .append-2 {padding-right:80px;}
155
+ .append-3 {padding-right:120px;}
156
+ .append-4 {padding-right:160px;}
157
+ .append-5 {padding-right:200px;}
158
+ .append-6 {padding-right:240px;}
159
+ .append-7 {padding-right:280px;}
160
+ .append-8 {padding-right:320px;}
161
+ .append-9 {padding-right:360px;}
162
+ .append-10 {padding-right:400px;}
163
+ .append-11 {padding-right:440px;}
164
+ .append-12 {padding-right:480px;}
165
+ .append-13 {padding-right:520px;}
166
+ .append-14 {padding-right:560px;}
167
+ .append-15 {padding-right:600px;}
168
+ .append-16 {padding-right:640px;}
169
+ .append-17 {padding-right:680px;}
170
+ .append-18 {padding-right:720px;}
171
+ .append-19 {padding-right:760px;}
172
+ .append-20 {padding-right:800px;}
173
+ .append-21 {padding-right:840px;}
174
+ .append-22 {padding-right:880px;}
175
+ .append-23 {padding-right:920px;}
176
+ .prepend-1 {padding-left:40px;}
177
+ .prepend-2 {padding-left:80px;}
178
+ .prepend-3 {padding-left:120px;}
179
+ .prepend-4 {padding-left:160px;}
180
+ .prepend-5 {padding-left:200px;}
181
+ .prepend-6 {padding-left:240px;}
182
+ .prepend-7 {padding-left:280px;}
183
+ .prepend-8 {padding-left:320px;}
184
+ .prepend-9 {padding-left:360px;}
185
+ .prepend-10 {padding-left:400px;}
186
+ .prepend-11 {padding-left:440px;}
187
+ .prepend-12 {padding-left:480px;}
188
+ .prepend-13 {padding-left:520px;}
189
+ .prepend-14 {padding-left:560px;}
190
+ .prepend-15 {padding-left:600px;}
191
+ .prepend-16 {padding-left:640px;}
192
+ .prepend-17 {padding-left:680px;}
193
+ .prepend-18 {padding-left:720px;}
194
+ .prepend-19 {padding-left:760px;}
195
+ .prepend-20 {padding-left:800px;}
196
+ .prepend-21 {padding-left:840px;}
197
+ .prepend-22 {padding-left:880px;}
198
+ .prepend-23 {padding-left:920px;}
199
+ .border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;}
200
+ .colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;}
201
+ .pull-1 {margin-left:-40px;}
202
+ .pull-2 {margin-left:-80px;}
203
+ .pull-3 {margin-left:-120px;}
204
+ .pull-4 {margin-left:-160px;}
205
+ .pull-5 {margin-left:-200px;}
206
+ .pull-6 {margin-left:-240px;}
207
+ .pull-7 {margin-left:-280px;}
208
+ .pull-8 {margin-left:-320px;}
209
+ .pull-9 {margin-left:-360px;}
210
+ .pull-10 {margin-left:-400px;}
211
+ .pull-11 {margin-left:-440px;}
212
+ .pull-12 {margin-left:-480px;}
213
+ .pull-13 {margin-left:-520px;}
214
+ .pull-14 {margin-left:-560px;}
215
+ .pull-15 {margin-left:-600px;}
216
+ .pull-16 {margin-left:-640px;}
217
+ .pull-17 {margin-left:-680px;}
218
+ .pull-18 {margin-left:-720px;}
219
+ .pull-19 {margin-left:-760px;}
220
+ .pull-20 {margin-left:-800px;}
221
+ .pull-21 {margin-left:-840px;}
222
+ .pull-22 {margin-left:-880px;}
223
+ .pull-23 {margin-left:-920px;}
224
+ .pull-24 {margin-left:-960px;}
225
+ .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;}
226
+ .push-1 {margin:0 -40px 1.5em 40px;}
227
+ .push-2 {margin:0 -80px 1.5em 80px;}
228
+ .push-3 {margin:0 -120px 1.5em 120px;}
229
+ .push-4 {margin:0 -160px 1.5em 160px;}
230
+ .push-5 {margin:0 -200px 1.5em 200px;}
231
+ .push-6 {margin:0 -240px 1.5em 240px;}
232
+ .push-7 {margin:0 -280px 1.5em 280px;}
233
+ .push-8 {margin:0 -320px 1.5em 320px;}
234
+ .push-9 {margin:0 -360px 1.5em 360px;}
235
+ .push-10 {margin:0 -400px 1.5em 400px;}
236
+ .push-11 {margin:0 -440px 1.5em 440px;}
237
+ .push-12 {margin:0 -480px 1.5em 480px;}
238
+ .push-13 {margin:0 -520px 1.5em 520px;}
239
+ .push-14 {margin:0 -560px 1.5em 560px;}
240
+ .push-15 {margin:0 -600px 1.5em 600px;}
241
+ .push-16 {margin:0 -640px 1.5em 640px;}
242
+ .push-17 {margin:0 -680px 1.5em 680px;}
243
+ .push-18 {margin:0 -720px 1.5em 720px;}
244
+ .push-19 {margin:0 -760px 1.5em 760px;}
245
+ .push-20 {margin:0 -800px 1.5em 800px;}
246
+ .push-21 {margin:0 -840px 1.5em 840px;}
247
+ .push-22 {margin:0 -880px 1.5em 880px;}
248
+ .push-23 {margin:0 -920px 1.5em 920px;}
249
+ .push-24 {margin:0 -960px 1.5em 960px;}
250
+ .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;}
251
+ .prepend-top {margin-top:1.5em;}
252
+ .append-bottom {margin-bottom:1.5em;}
253
+ .box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
254
+ hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
255
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
256
+ .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
257
+ .clearfix, .container {display:block;}
258
+ .clear {clear:both;}
@@ -0,0 +1,16 @@
1
+ begin
2
+ require File.join(File.dirname(__FILE__), 'lib', 'haml') # From here
3
+ rescue LoadError
4
+ begin
5
+ require 'haml' # From gem
6
+ rescue LoadError => e
7
+ # gems:install may be run to install Haml with the skeleton plugin
8
+ # but not the gem itself installed.
9
+ # Don't die if this is the case.
10
+ raise e unless defined?(Rake) && Rake.application.top_level_tasks.include?('gems:install')
11
+ end
12
+ end
13
+
14
+ # Load Haml and Sass.
15
+ # Haml may be undefined if we're running gems:install.
16
+ Haml.init_rails(binding) if defined?(Haml)
@@ -0,0 +1,22 @@
1
+ # These helper methods can be called in your template to set variables to be used in the layout
2
+ # This module should be included in all views globally,
3
+ # to do so you may need to add this line to your ApplicationController
4
+ # helper :layout
5
+ module LayoutHelper
6
+ def title(page_title, show_title = true)
7
+ @content_for_title = page_title.to_s
8
+ @show_title = show_title
9
+ end
10
+
11
+ def show_title?
12
+ @show_title
13
+ end
14
+
15
+ def stylesheet(*args)
16
+ content_for(:head) { stylesheet_link_tag(*args) }
17
+ end
18
+
19
+ def javascript(*args)
20
+ content_for(:head) { javascript_include_tag(*args) }
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html>
4
+ <head>
5
+ <title><%%= h(yield(:title) || "Untitled") %></title>
6
+ <%%= stylesheet_link_tag 'blueprint/screen.css', :media => 'screen, projection' %>
7
+ <%%= stylesheet_link_tag 'blueprint/print.css', :media => 'print' %>
8
+ <!--[if lt IE 8]>
9
+ <%%= stylesheet_link_tag 'blueprint/ie.css', :media => 'screen, projection' %>
10
+ <![endif]-->
11
+
12
+ <!-- uncomment for activating blueprint plugins -->
13
+ <!-- <%%= stylesheet_link_tag 'blueprint/plugins/buttons/screen.css', :media => 'screen, projection' %> -->
14
+ <!-- <%%= stylesheet_link_tag 'blueprint/plugins/fancy-type/screen.css', :media => 'screen, projection' %> -->
15
+ <!-- <%%= stylesheet_link_tag 'blueprint/plugins/link-icons/screen.css', :media => 'screen, projection' %> -->
16
+ <!-- <%%= stylesheet_link_tag 'blueprint/plugins/rtl/screen.css', :media => 'screen, projection' %> -->
17
+
18
+ <%%= stylesheet_link_tag '<%= file_name %>' %>
19
+ <%%= yield(:head) %>
20
+ </head>
21
+ <body>
22
+ <div id="container">
23
+ <%%- flash.each do |name, msg| -%>
24
+ <%%= content_tag :div, msg, :id => "flash_#{name}" %>
25
+ <%%- end -%>
26
+
27
+ <%%- if show_title? -%>
28
+ <h1><%%=h yield(:title) %></h1>
29
+ <%%- end -%>
30
+
31
+ <%%= yield %>
32
+ </div>
33
+ </body>
34
+ </html>
@@ -0,0 +1,31 @@
1
+ !!! Strict
2
+ %html{html_attrs}
3
+
4
+ %head
5
+ %title
6
+ = h(yield(:title) || "Untitled")
7
+ %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
8
+
9
+ = stylesheet_link_tag 'blueprint/screen.css', :media => 'screen, projection'
10
+ = stylesheet_link_tag 'blueprint/print.css', :media => 'print'
11
+ /[if lt IE 8]
12
+ = stylesheet_link_tag 'blueprint/ie.css', :media => 'screen, projection'
13
+
14
+ / uncomment for activating blueprint plugins
15
+ /= stylesheet_link_tag 'blueprint/plugins/buttons/screen.css', :media => 'screen, projection'
16
+ /= stylesheet_link_tag 'blueprint/plugins/fancy-type/screen.css', :media => 'screen, projection'
17
+ /= stylesheet_link_tag 'blueprint/plugins/link-icons/screen.css', :media => 'screen, projection'
18
+ /= stylesheet_link_tag 'blueprint/plugins/rtl/screen.css', :media => 'screen, projection'
19
+
20
+ = stylesheet_link_tag '<%= file_name %>'
21
+ = yield(:head)
22
+
23
+ %body
24
+ #container
25
+ - flash.each do |name, msg|
26
+ = content_tag :div, msg, :id => "flash_#{name}"
27
+
28
+ - if show_title?
29
+ %h1=h yield(:title)
30
+
31
+ = yield
@@ -0,0 +1,77 @@
1
+ body {
2
+ background-color: #4B7399;
3
+ }
4
+
5
+ a img {
6
+ border: none;
7
+ }
8
+
9
+ a {
10
+ color: #0000FF;
11
+ }
12
+
13
+ .clear {
14
+ clear: both;
15
+ height: 0;
16
+ overflow: hidden;
17
+ }
18
+
19
+ #container {
20
+ background-color: #FFF;
21
+ padding: 20px 40px;
22
+ border: solid 1px black;
23
+ margin-top 20px;
24
+ }
25
+
26
+ #flash_notice, #flash_error {
27
+ padding: 5px 8px;
28
+ margin: 10px 0;
29
+ }
30
+
31
+ #flash_notice {
32
+ background-color: #CFC;
33
+ border: solid 1px #6C6;
34
+ }
35
+
36
+ #flash_error {
37
+ background-color: #FCC;
38
+ border: solid 1px #C66;
39
+ }
40
+
41
+ .fieldWithErrors {
42
+ display: inline;
43
+ }
44
+
45
+ #errorExplanation {
46
+ width: 400px;
47
+ border: 2px solid #CF0000;
48
+ padding: 0px;
49
+ padding-bottom: 12px;
50
+ margin-bottom: 20px;
51
+ background-color: #f0f0f0;
52
+ }
53
+
54
+ #errorExplanation h2 {
55
+ text-align: left;
56
+ font-weight: bold;
57
+ padding: 5px 5px 5px 15px;
58
+ font-size: 12px;
59
+ margin: 0;
60
+ background-color: #c00;
61
+ color: #fff;
62
+ }
63
+
64
+ #errorExplanation p {
65
+ color: #333;
66
+ margin-bottom: 0;
67
+ padding: 8px;
68
+ }
69
+
70
+ #errorExplanation ul {
71
+ margin: 2px 24px;
72
+ }
73
+
74
+ #errorExplanation ul li {
75
+ font-size: 12px;
76
+ list-style: disc;
77
+ }