cable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/app/controllers/cable/admin_controller.rb +8 -0
  2. data/app/helpers/admin_helper.rb +7 -0
  3. data/app/models/cable/global_setting.rb +3 -0
  4. data/app/views/cable/admin/index.html.erb +2 -0
  5. data/app/views/cable/layouts/_messages.html.erb +12 -0
  6. data/app/views/cable/layouts/admin.html.erb +49 -0
  7. data/config/routes.rb +4 -0
  8. data/lib/cable.rb +3 -0
  9. data/lib/cable/engine.rb +10 -0
  10. data/lib/generators/cable/controllers_generator.rb +21 -0
  11. data/lib/generators/cable/install_generator.rb +35 -0
  12. data/lib/generators/cable/templates/admin_navigation.rb +5 -0
  13. data/lib/generators/cable/templates/javascripts/admin.js +24 -0
  14. data/lib/generators/cable/templates/javascripts/wymeditor/GPL-license.txt +278 -0
  15. data/lib/generators/cable/templates/javascripts/wymeditor/MIT-license.txt +20 -0
  16. data/lib/generators/cable/templates/javascripts/wymeditor/README +33 -0
  17. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-blockquote.png +0 -0
  18. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h1.png +0 -0
  19. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h2.png +0 -0
  20. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h3.png +0 -0
  21. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h4.png +0 -0
  22. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h5.png +0 -0
  23. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-h6.png +0 -0
  24. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-p.png +0 -0
  25. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/lbl-pre.png +0 -0
  26. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/wymiframe.css +93 -0
  27. data/lib/generators/cable/templates/javascripts/wymeditor/iframe/default/wymiframe.html +26 -0
  28. data/lib/generators/cable/templates/javascripts/wymeditor/jquery.wymeditor.js +4724 -0
  29. data/lib/generators/cable/templates/javascripts/wymeditor/jquery.wymeditor.min.js +1 -0
  30. data/lib/generators/cable/templates/javascripts/wymeditor/jquery.wymeditor.pack.js +1 -0
  31. data/lib/generators/cable/templates/javascripts/wymeditor/lang/bg.js +45 -0
  32. data/lib/generators/cable/templates/javascripts/wymeditor/lang/ca.js +45 -0
  33. data/lib/generators/cable/templates/javascripts/wymeditor/lang/cs.js +45 -0
  34. data/lib/generators/cable/templates/javascripts/wymeditor/lang/cy.js +45 -0
  35. data/lib/generators/cable/templates/javascripts/wymeditor/lang/de.js +45 -0
  36. data/lib/generators/cable/templates/javascripts/wymeditor/lang/en.js +46 -0
  37. data/lib/generators/cable/templates/javascripts/wymeditor/lang/es.js +45 -0
  38. data/lib/generators/cable/templates/javascripts/wymeditor/lang/fa.js +46 -0
  39. data/lib/generators/cable/templates/javascripts/wymeditor/lang/fi.js +44 -0
  40. data/lib/generators/cable/templates/javascripts/wymeditor/lang/fr.js +45 -0
  41. data/lib/generators/cable/templates/javascripts/wymeditor/lang/gl.js +45 -0
  42. data/lib/generators/cable/templates/javascripts/wymeditor/lang/he.js +45 -0
  43. data/lib/generators/cable/templates/javascripts/wymeditor/lang/hr.js +45 -0
  44. data/lib/generators/cable/templates/javascripts/wymeditor/lang/hu.js +45 -0
  45. data/lib/generators/cable/templates/javascripts/wymeditor/lang/it.js +45 -0
  46. data/lib/generators/cable/templates/javascripts/wymeditor/lang/ja.js +44 -0
  47. data/lib/generators/cable/templates/javascripts/wymeditor/lang/nb.js +45 -0
  48. data/lib/generators/cable/templates/javascripts/wymeditor/lang/nl.js +45 -0
  49. data/lib/generators/cable/templates/javascripts/wymeditor/lang/nn.js +45 -0
  50. data/lib/generators/cable/templates/javascripts/wymeditor/lang/pl.js +45 -0
  51. data/lib/generators/cable/templates/javascripts/wymeditor/lang/pt-br.js +45 -0
  52. data/lib/generators/cable/templates/javascripts/wymeditor/lang/pt.js +45 -0
  53. data/lib/generators/cable/templates/javascripts/wymeditor/lang/ru.js +45 -0
  54. data/lib/generators/cable/templates/javascripts/wymeditor/lang/sv.js +46 -0
  55. data/lib/generators/cable/templates/javascripts/wymeditor/lang/tr.js +45 -0
  56. data/lib/generators/cable/templates/javascripts/wymeditor/lang/zh_cn.js +47 -0
  57. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
  58. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
  59. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
  60. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
  61. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/mediabrowser/browser.png +0 -0
  62. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/mediabrowser/jquery.wymeditor.mediabrowser.js +115 -0
  63. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
  64. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/resizable/readme.txt +124 -0
  65. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/tidy/README +19 -0
  66. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
  67. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/tidy/tidy.php +36 -0
  68. data/lib/generators/cable/templates/javascripts/wymeditor/plugins/tidy/wand.png +0 -0
  69. data/lib/generators/cable/templates/javascripts/wymeditor/skins/compact/icons.png +0 -0
  70. data/lib/generators/cable/templates/javascripts/wymeditor/skins/compact/skin.css +134 -0
  71. data/lib/generators/cable/templates/javascripts/wymeditor/skins/compact/skin.js +35 -0
  72. data/lib/generators/cable/templates/javascripts/wymeditor/skins/default/icons.png +0 -0
  73. data/lib/generators/cable/templates/javascripts/wymeditor/skins/default/skin.css +158 -0
  74. data/lib/generators/cable/templates/javascripts/wymeditor/skins/default/skin.js +40 -0
  75. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/images/bg.header.gif +0 -0
  76. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
  77. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
  78. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
  79. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/skin.css +131 -0
  80. data/lib/generators/cable/templates/javascripts/wymeditor/skins/minimal/skin.js +30 -0
  81. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/COPYING +674 -0
  82. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/README +27 -0
  83. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/images/bg.header.gif +0 -0
  84. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
  85. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
  86. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/images/icons.silver.gif +0 -0
  87. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/skin.css +297 -0
  88. data/lib/generators/cable/templates/javascripts/wymeditor/skins/silver/skin.js +61 -0
  89. data/lib/generators/cable/templates/javascripts/wymeditor/skins/twopanels/icons.png +0 -0
  90. data/lib/generators/cable/templates/javascripts/wymeditor/skins/twopanels/skin.css +134 -0
  91. data/lib/generators/cable/templates/javascripts/wymeditor/skins/twopanels/skin.js +39 -0
  92. data/lib/generators/cable/templates/javascripts/wymeditor/skins/wymeditor_icon.png +0 -0
  93. data/lib/generators/cable/templates/stylesheets/admin.css +417 -0
  94. data/lib/generators/cable/templates/stylesheets/admin/blueprint/ie.css +36 -0
  95. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/buttons/icons/cross.png +0 -0
  96. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/buttons/icons/key.png +0 -0
  97. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/buttons/icons/tick.png +0 -0
  98. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/buttons/readme.txt +32 -0
  99. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/buttons/screen.css +97 -0
  100. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/fancy-type/readme.txt +14 -0
  101. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/fancy-type/screen.css +71 -0
  102. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/doc.png +0 -0
  103. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/email.png +0 -0
  104. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/external.png +0 -0
  105. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/feed.png +0 -0
  106. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/im.png +0 -0
  107. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/pdf.png +0 -0
  108. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/visited.png +0 -0
  109. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/icons/xls.png +0 -0
  110. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/readme.txt +18 -0
  111. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/link-icons/screen.css +40 -0
  112. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/rtl/readme.txt +10 -0
  113. data/lib/generators/cable/templates/stylesheets/admin/blueprint/plugins/rtl/screen.css +110 -0
  114. data/lib/generators/cable/templates/stylesheets/admin/blueprint/print.css +29 -0
  115. data/lib/generators/cable/templates/stylesheets/admin/blueprint/screen.css +260 -0
  116. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/forms.css +73 -0
  117. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/grid.css +280 -0
  118. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/grid.png +0 -0
  119. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/ie.css +77 -0
  120. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/print.css +85 -0
  121. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/reset.css +67 -0
  122. data/lib/generators/cable/templates/stylesheets/admin/blueprint/src/typography.css +121 -0
  123. data/lib/railties/tasks.rake +6 -0
  124. metadata +187 -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,260 @@
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 {margin:0;padding:0;border:0;}
16
+ 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;}
17
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
18
+ body {line-height:1.5;background:white;}
19
+ table {border-collapse:separate;border-spacing:0;}
20
+ caption, th, td {text-align:left;font-weight:normal;float:none !important;}
21
+ table, th, td {vertical-align:middle;}
22
+ blockquote:before, blockquote:after, q:before, q:after {content:'';}
23
+ blockquote, q {quotes:"" "";}
24
+ a img {border:none;}
25
+ :focus {outline:0;}
26
+
27
+ /* typography.css */
28
+ html {font-size:100.01%;}
29
+ body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
30
+ h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
31
+ h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
32
+ h2 {font-size:2em;margin-bottom:0.75em;}
33
+ h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
34
+ h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
35
+ h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
36
+ h6 {font-size:1em;font-weight:bold;}
37
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
38
+ p {margin:0 0 1.5em;}
39
+ .left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
40
+ .right {float:right;margin:1.5em 0 1.5em 1.5em;}
41
+ a:focus, a:hover {color:#09f;}
42
+ a {color:#06c;text-decoration:underline;}
43
+ blockquote {margin:1.5em;color:#666;font-style:italic;}
44
+ strong, dfn {font-weight:bold;}
45
+ em, dfn {font-style:italic;}
46
+ sup, sub {line-height:0;}
47
+ abbr, acronym {border-bottom:1px dotted #666;}
48
+ address {margin:0 0 1.5em;font-style:italic;}
49
+ del {color:#666;}
50
+ pre {margin:1.5em 0;white-space:pre;}
51
+ pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
52
+ li ul, li ol {margin:0;}
53
+ ul, ol {margin:0 1.5em 1.5em 0;padding-left:1.5em;}
54
+ ul {list-style-type:disc;}
55
+ ol {list-style-type:decimal;}
56
+ dl {margin:0 0 1.5em 0;}
57
+ dl dt {font-weight:bold;}
58
+ dd {margin-left:1.5em;}
59
+ table {margin-bottom:1.4em;width:100%;}
60
+ th {font-weight:bold;}
61
+ thead th {background:#c3d9ff;}
62
+ th, td, caption {padding:4px 10px 4px 5px;}
63
+ tbody tr:nth-child(even) td, tbody tr.even td {background:#e5ecf9;}
64
+ tfoot {font-style:italic;}
65
+ caption {background:#eee;}
66
+ .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
67
+ .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
68
+ .hide {display:none;}
69
+ .quiet {color:#666;}
70
+ .loud {color:#000;}
71
+ .highlight {background:#ff0;}
72
+ .added {background:#060;color:#fff;}
73
+ .removed {background:#900;color:#fff;}
74
+ .first {margin-left:0;padding-left:0;}
75
+ .last {margin-right:0;padding-right:0;}
76
+ .top {margin-top:0;padding-top:0;}
77
+ .bottom {margin-bottom:0;padding-bottom:0;}
78
+
79
+ /* forms.css */
80
+ label {font-weight:bold;}
81
+ fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
82
+ legend {font-weight:bold;font-size:1.2em;}
83
+ input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
84
+ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
85
+ input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
86
+ input.text, input.title {width:300px;padding:5px;}
87
+ input.title {font-size:1.5em;}
88
+ textarea {width:390px;height:250px;padding:5px;}
89
+ form.inline {line-height:3;}
90
+ form.inline p {margin-bottom:0;}
91
+ .error, .notice, .success, .info {padding:0.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
+ .info {background:#d5edf8;color:#205791;border-color:#92cae4;}
96
+ .error a {color:#8a1f11;}
97
+ .notice a {color:#514721;}
98
+ .success a {color:#264409;}
99
+ .info a {color:#205791;}
100
+
101
+ /* grid.css */
102
+ .container {width:950px;margin:0 auto;}
103
+ .showgrid {background:url(src/grid.png);}
104
+ .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;}
105
+ .last {margin-right:0;}
106
+ .span-1 {width:30px;}
107
+ .span-2 {width:70px;}
108
+ .span-3 {width:110px;}
109
+ .span-4 {width:150px;}
110
+ .span-5 {width:190px;}
111
+ .span-6 {width:230px;}
112
+ .span-7 {width:270px;}
113
+ .span-8 {width:310px;}
114
+ .span-9 {width:350px;}
115
+ .span-10 {width:390px;}
116
+ .span-11 {width:430px;}
117
+ .span-12 {width:470px;}
118
+ .span-13 {width:510px;}
119
+ .span-14 {width:550px;}
120
+ .span-15 {width:590px;}
121
+ .span-16 {width:630px;}
122
+ .span-17 {width:670px;}
123
+ .span-18 {width:710px;}
124
+ .span-19 {width:750px;}
125
+ .span-20 {width:790px;}
126
+ .span-21 {width:830px;}
127
+ .span-22 {width:870px;}
128
+ .span-23 {width:910px;}
129
+ .span-24 {width:950px;margin-right:0;}
130
+ 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;border-right-width:1px;padding-left:5px;padding-right:5px;}
131
+ input.span-1, textarea.span-1 {width:18px;}
132
+ input.span-2, textarea.span-2 {width:58px;}
133
+ input.span-3, textarea.span-3 {width:98px;}
134
+ input.span-4, textarea.span-4 {width:138px;}
135
+ input.span-5, textarea.span-5 {width:178px;}
136
+ input.span-6, textarea.span-6 {width:218px;}
137
+ input.span-7, textarea.span-7 {width:258px;}
138
+ input.span-8, textarea.span-8 {width:298px;}
139
+ input.span-9, textarea.span-9 {width:338px;}
140
+ input.span-10, textarea.span-10 {width:378px;}
141
+ input.span-11, textarea.span-11 {width:418px;}
142
+ input.span-12, textarea.span-12 {width:458px;}
143
+ input.span-13, textarea.span-13 {width:498px;}
144
+ input.span-14, textarea.span-14 {width:538px;}
145
+ input.span-15, textarea.span-15 {width:578px;}
146
+ input.span-16, textarea.span-16 {width:618px;}
147
+ input.span-17, textarea.span-17 {width:658px;}
148
+ input.span-18, textarea.span-18 {width:698px;}
149
+ input.span-19, textarea.span-19 {width:738px;}
150
+ input.span-20, textarea.span-20 {width:778px;}
151
+ input.span-21, textarea.span-21 {width:818px;}
152
+ input.span-22, textarea.span-22 {width:858px;}
153
+ input.span-23, textarea.span-23 {width:898px;}
154
+ input.span-24, textarea.span-24 {width:938px;}
155
+ .append-1 {padding-right:40px;}
156
+ .append-2 {padding-right:80px;}
157
+ .append-3 {padding-right:120px;}
158
+ .append-4 {padding-right:160px;}
159
+ .append-5 {padding-right:200px;}
160
+ .append-6 {padding-right:240px;}
161
+ .append-7 {padding-right:280px;}
162
+ .append-8 {padding-right:320px;}
163
+ .append-9 {padding-right:360px;}
164
+ .append-10 {padding-right:400px;}
165
+ .append-11 {padding-right:440px;}
166
+ .append-12 {padding-right:480px;}
167
+ .append-13 {padding-right:520px;}
168
+ .append-14 {padding-right:560px;}
169
+ .append-15 {padding-right:600px;}
170
+ .append-16 {padding-right:640px;}
171
+ .append-17 {padding-right:680px;}
172
+ .append-18 {padding-right:720px;}
173
+ .append-19 {padding-right:760px;}
174
+ .append-20 {padding-right:800px;}
175
+ .append-21 {padding-right:840px;}
176
+ .append-22 {padding-right:880px;}
177
+ .append-23 {padding-right:920px;}
178
+ .prepend-1 {padding-left:40px;}
179
+ .prepend-2 {padding-left:80px;}
180
+ .prepend-3 {padding-left:120px;}
181
+ .prepend-4 {padding-left:160px;}
182
+ .prepend-5 {padding-left:200px;}
183
+ .prepend-6 {padding-left:240px;}
184
+ .prepend-7 {padding-left:280px;}
185
+ .prepend-8 {padding-left:320px;}
186
+ .prepend-9 {padding-left:360px;}
187
+ .prepend-10 {padding-left:400px;}
188
+ .prepend-11 {padding-left:440px;}
189
+ .prepend-12 {padding-left:480px;}
190
+ .prepend-13 {padding-left:520px;}
191
+ .prepend-14 {padding-left:560px;}
192
+ .prepend-15 {padding-left:600px;}
193
+ .prepend-16 {padding-left:640px;}
194
+ .prepend-17 {padding-left:680px;}
195
+ .prepend-18 {padding-left:720px;}
196
+ .prepend-19 {padding-left:760px;}
197
+ .prepend-20 {padding-left:800px;}
198
+ .prepend-21 {padding-left:840px;}
199
+ .prepend-22 {padding-left:880px;}
200
+ .prepend-23 {padding-left:920px;}
201
+ .border {padding-right:4px;margin-right:5px;border-right:1px solid #ddd;}
202
+ .colborder {padding-right:24px;margin-right:25px;border-right:1px solid #ddd;}
203
+ .pull-1 {margin-left:-40px;}
204
+ .pull-2 {margin-left:-80px;}
205
+ .pull-3 {margin-left:-120px;}
206
+ .pull-4 {margin-left:-160px;}
207
+ .pull-5 {margin-left:-200px;}
208
+ .pull-6 {margin-left:-240px;}
209
+ .pull-7 {margin-left:-280px;}
210
+ .pull-8 {margin-left:-320px;}
211
+ .pull-9 {margin-left:-360px;}
212
+ .pull-10 {margin-left:-400px;}
213
+ .pull-11 {margin-left:-440px;}
214
+ .pull-12 {margin-left:-480px;}
215
+ .pull-13 {margin-left:-520px;}
216
+ .pull-14 {margin-left:-560px;}
217
+ .pull-15 {margin-left:-600px;}
218
+ .pull-16 {margin-left:-640px;}
219
+ .pull-17 {margin-left:-680px;}
220
+ .pull-18 {margin-left:-720px;}
221
+ .pull-19 {margin-left:-760px;}
222
+ .pull-20 {margin-left:-800px;}
223
+ .pull-21 {margin-left:-840px;}
224
+ .pull-22 {margin-left:-880px;}
225
+ .pull-23 {margin-left:-920px;}
226
+ .pull-24 {margin-left:-960px;}
227
+ .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;}
228
+ .push-1 {margin:0 -40px 1.5em 40px;}
229
+ .push-2 {margin:0 -80px 1.5em 80px;}
230
+ .push-3 {margin:0 -120px 1.5em 120px;}
231
+ .push-4 {margin:0 -160px 1.5em 160px;}
232
+ .push-5 {margin:0 -200px 1.5em 200px;}
233
+ .push-6 {margin:0 -240px 1.5em 240px;}
234
+ .push-7 {margin:0 -280px 1.5em 280px;}
235
+ .push-8 {margin:0 -320px 1.5em 320px;}
236
+ .push-9 {margin:0 -360px 1.5em 360px;}
237
+ .push-10 {margin:0 -400px 1.5em 400px;}
238
+ .push-11 {margin:0 -440px 1.5em 440px;}
239
+ .push-12 {margin:0 -480px 1.5em 480px;}
240
+ .push-13 {margin:0 -520px 1.5em 520px;}
241
+ .push-14 {margin:0 -560px 1.5em 560px;}
242
+ .push-15 {margin:0 -600px 1.5em 600px;}
243
+ .push-16 {margin:0 -640px 1.5em 640px;}
244
+ .push-17 {margin:0 -680px 1.5em 680px;}
245
+ .push-18 {margin:0 -720px 1.5em 720px;}
246
+ .push-19 {margin:0 -760px 1.5em 760px;}
247
+ .push-20 {margin:0 -800px 1.5em 800px;}
248
+ .push-21 {margin:0 -840px 1.5em 840px;}
249
+ .push-22 {margin:0 -880px 1.5em 880px;}
250
+ .push-23 {margin:0 -920px 1.5em 920px;}
251
+ .push-24 {margin:0 -960px 1.5em 960px;}
252
+ .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:left;position:relative;}
253
+ div.prepend-top, .prepend-top {margin-top:1.5em;}
254
+ div.append-bottom, .append-bottom {margin-bottom:1.5em;}
255
+ .box {padding:1.5em;margin-bottom:1.5em;background:#e5eCf9;}
256
+ hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:1px;margin:0 0 1.45em;border:none;}
257
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
258
+ .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
259
+ .clearfix, .container {display:block;}
260
+ .clear {clear:both;}
@@ -0,0 +1,73 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ forms.css
4
+ * Sets up some default styling for forms
5
+ * Gives you classes to enhance your forms
6
+
7
+ Usage:
8
+ * For text fields, use class .title or .text
9
+ * For inline forms, use .inline (even when using columns)
10
+
11
+ -------------------------------------------------------------- */
12
+
13
+ label { font-weight: bold; }
14
+ fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
15
+ legend { font-weight: bold; font-size:1.2em; }
16
+
17
+
18
+ /* Form fields
19
+ -------------------------------------------------------------- */
20
+
21
+ /*
22
+ Attribute selectors are used to differentiate the different types
23
+ of input elements, but to support old browsers, you will have to
24
+ add classes for each one. ".title" simply creates a large text
25
+ field, this is purely for looks.
26
+ */
27
+ input[type=text], input[type=password],
28
+ input.text, input.title,
29
+ textarea, select {
30
+ background-color:#fff;
31
+ border:1px solid #bbb;
32
+ }
33
+ input[type=text]:focus, input[type=password]:focus,
34
+ input.text:focus, input.title:focus,
35
+ textarea:focus, select:focus {
36
+ border-color:#666;
37
+ }
38
+
39
+ input[type=text], input[type=password],
40
+ input.text, input.title,
41
+ textarea, select {
42
+ margin:0.5em 0;
43
+ }
44
+
45
+ input.text,
46
+ input.title { width: 300px; padding:5px; }
47
+ input.title { font-size:1.5em; }
48
+ textarea { width: 390px; height: 250px; padding:5px; }
49
+
50
+ /*
51
+ This is to be used on forms where a variety of elements are
52
+ placed side-by-side. Use the p tag to denote a line.
53
+ */
54
+ form.inline { line-height:3; }
55
+ form.inline p { margin-bottom:0; }
56
+
57
+
58
+ /* Success, info, notice and error boxes
59
+ -------------------------------------------------------------- */
60
+
61
+ .error,
62
+ .notice,
63
+ .success,
64
+ .info { padding: 0.8em; margin-bottom: 1em; border: 2px solid #ddd; }
65
+
66
+ .error { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; }
67
+ .notice { background: #fff6bf; color: #514721; border-color: #ffd324; }
68
+ .success { background: #e6efc2; color: #264409; border-color: #c6d880; }
69
+ .info { background: #d5edf8; color: #205791; border-color: #92cae4; }
70
+ .error a { color: #8a1f11; }
71
+ .notice a { color: #514721; }
72
+ .success a { color: #264409; }
73
+ .info a { color: #205791; }
@@ -0,0 +1,280 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ grid.css
4
+ * Sets up an easy-to-use grid of 24 columns.
5
+
6
+ By default, the grid is 950px wide, with 24 columns
7
+ spanning 30px, and a 10px margin between columns.
8
+
9
+ If you need fewer or more columns, namespaces or semantic
10
+ element names, use the compressor script (lib/compress.rb)
11
+
12
+ -------------------------------------------------------------- */
13
+
14
+ /* A container should group all your columns. */
15
+ .container {
16
+ width: 950px;
17
+ margin: 0 auto;
18
+ }
19
+
20
+ /* Use this class on any .span / container to see the grid. */
21
+ .showgrid {
22
+ background: url(src/grid.png);
23
+ }
24
+
25
+
26
+ /* Columns
27
+ -------------------------------------------------------------- */
28
+
29
+ /* Sets up basic grid floating and margin. */
30
+ .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 {
31
+ float: left;
32
+ margin-right: 10px;
33
+ }
34
+
35
+ /* The last column in a row needs this class. */
36
+ .last { margin-right: 0; }
37
+
38
+ /* Use these classes to set the width of a column. */
39
+ .span-1 {width: 30px;}
40
+
41
+ .span-2 {width: 70px;}
42
+ .span-3 {width: 110px;}
43
+ .span-4 {width: 150px;}
44
+ .span-5 {width: 190px;}
45
+ .span-6 {width: 230px;}
46
+ .span-7 {width: 270px;}
47
+ .span-8 {width: 310px;}
48
+ .span-9 {width: 350px;}
49
+ .span-10 {width: 390px;}
50
+ .span-11 {width: 430px;}
51
+ .span-12 {width: 470px;}
52
+ .span-13 {width: 510px;}
53
+ .span-14 {width: 550px;}
54
+ .span-15 {width: 590px;}
55
+ .span-16 {width: 630px;}
56
+ .span-17 {width: 670px;}
57
+ .span-18 {width: 710px;}
58
+ .span-19 {width: 750px;}
59
+ .span-20 {width: 790px;}
60
+ .span-21 {width: 830px;}
61
+ .span-22 {width: 870px;}
62
+ .span-23 {width: 910px;}
63
+ .span-24 {width:950px; margin-right:0;}
64
+
65
+ /* Use these classes to set the width of an input. */
66
+ 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 {
67
+ border-left-width: 1px;
68
+ border-right-width: 1px;
69
+ padding-left: 5px;
70
+ padding-right: 5px;
71
+ }
72
+
73
+ input.span-1, textarea.span-1 { width: 18px; }
74
+ input.span-2, textarea.span-2 { width: 58px; }
75
+ input.span-3, textarea.span-3 { width: 98px; }
76
+ input.span-4, textarea.span-4 { width: 138px; }
77
+ input.span-5, textarea.span-5 { width: 178px; }
78
+ input.span-6, textarea.span-6 { width: 218px; }
79
+ input.span-7, textarea.span-7 { width: 258px; }
80
+ input.span-8, textarea.span-8 { width: 298px; }
81
+ input.span-9, textarea.span-9 { width: 338px; }
82
+ input.span-10, textarea.span-10 { width: 378px; }
83
+ input.span-11, textarea.span-11 { width: 418px; }
84
+ input.span-12, textarea.span-12 { width: 458px; }
85
+ input.span-13, textarea.span-13 { width: 498px; }
86
+ input.span-14, textarea.span-14 { width: 538px; }
87
+ input.span-15, textarea.span-15 { width: 578px; }
88
+ input.span-16, textarea.span-16 { width: 618px; }
89
+ input.span-17, textarea.span-17 { width: 658px; }
90
+ input.span-18, textarea.span-18 { width: 698px; }
91
+ input.span-19, textarea.span-19 { width: 738px; }
92
+ input.span-20, textarea.span-20 { width: 778px; }
93
+ input.span-21, textarea.span-21 { width: 818px; }
94
+ input.span-22, textarea.span-22 { width: 858px; }
95
+ input.span-23, textarea.span-23 { width: 898px; }
96
+ input.span-24, textarea.span-24 { width: 938px; }
97
+
98
+ /* Add these to a column to append empty cols. */
99
+
100
+ .append-1 { padding-right: 40px;}
101
+ .append-2 { padding-right: 80px;}
102
+ .append-3 { padding-right: 120px;}
103
+ .append-4 { padding-right: 160px;}
104
+ .append-5 { padding-right: 200px;}
105
+ .append-6 { padding-right: 240px;}
106
+ .append-7 { padding-right: 280px;}
107
+ .append-8 { padding-right: 320px;}
108
+ .append-9 { padding-right: 360px;}
109
+ .append-10 { padding-right: 400px;}
110
+ .append-11 { padding-right: 440px;}
111
+ .append-12 { padding-right: 480px;}
112
+ .append-13 { padding-right: 520px;}
113
+ .append-14 { padding-right: 560px;}
114
+ .append-15 { padding-right: 600px;}
115
+ .append-16 { padding-right: 640px;}
116
+ .append-17 { padding-right: 680px;}
117
+ .append-18 { padding-right: 720px;}
118
+ .append-19 { padding-right: 760px;}
119
+ .append-20 { padding-right: 800px;}
120
+ .append-21 { padding-right: 840px;}
121
+ .append-22 { padding-right: 880px;}
122
+ .append-23 { padding-right: 920px;}
123
+
124
+ /* Add these to a column to prepend empty cols. */
125
+
126
+ .prepend-1 { padding-left: 40px;}
127
+ .prepend-2 { padding-left: 80px;}
128
+ .prepend-3 { padding-left: 120px;}
129
+ .prepend-4 { padding-left: 160px;}
130
+ .prepend-5 { padding-left: 200px;}
131
+ .prepend-6 { padding-left: 240px;}
132
+ .prepend-7 { padding-left: 280px;}
133
+ .prepend-8 { padding-left: 320px;}
134
+ .prepend-9 { padding-left: 360px;}
135
+ .prepend-10 { padding-left: 400px;}
136
+ .prepend-11 { padding-left: 440px;}
137
+ .prepend-12 { padding-left: 480px;}
138
+ .prepend-13 { padding-left: 520px;}
139
+ .prepend-14 { padding-left: 560px;}
140
+ .prepend-15 { padding-left: 600px;}
141
+ .prepend-16 { padding-left: 640px;}
142
+ .prepend-17 { padding-left: 680px;}
143
+ .prepend-18 { padding-left: 720px;}
144
+ .prepend-19 { padding-left: 760px;}
145
+ .prepend-20 { padding-left: 800px;}
146
+ .prepend-21 { padding-left: 840px;}
147
+ .prepend-22 { padding-left: 880px;}
148
+ .prepend-23 { padding-left: 920px;}
149
+
150
+
151
+ /* Border on right hand side of a column. */
152
+ .border {
153
+ padding-right: 4px;
154
+ margin-right: 5px;
155
+ border-right: 1px solid #ddd;
156
+ }
157
+
158
+ /* Border with more whitespace, spans one column. */
159
+ .colborder {
160
+ padding-right: 24px;
161
+ margin-right: 25px;
162
+ border-right: 1px solid #ddd;
163
+ }
164
+
165
+
166
+ /* Use these classes on an element to push it into the
167
+ next column, or to pull it into the previous column. */
168
+
169
+
170
+ .pull-1 { margin-left: -40px; }
171
+ .pull-2 { margin-left: -80px; }
172
+ .pull-3 { margin-left: -120px; }
173
+ .pull-4 { margin-left: -160px; }
174
+ .pull-5 { margin-left: -200px; }
175
+ .pull-6 { margin-left: -240px; }
176
+ .pull-7 { margin-left: -280px; }
177
+ .pull-8 { margin-left: -320px; }
178
+ .pull-9 { margin-left: -360px; }
179
+ .pull-10 { margin-left: -400px; }
180
+ .pull-11 { margin-left: -440px; }
181
+ .pull-12 { margin-left: -480px; }
182
+ .pull-13 { margin-left: -520px; }
183
+ .pull-14 { margin-left: -560px; }
184
+ .pull-15 { margin-left: -600px; }
185
+ .pull-16 { margin-left: -640px; }
186
+ .pull-17 { margin-left: -680px; }
187
+ .pull-18 { margin-left: -720px; }
188
+ .pull-19 { margin-left: -760px; }
189
+ .pull-20 { margin-left: -800px; }
190
+ .pull-21 { margin-left: -840px; }
191
+ .pull-22 { margin-left: -880px; }
192
+ .pull-23 { margin-left: -920px; }
193
+ .pull-24 { margin-left: -960px; }
194
+
195
+ .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;}
196
+
197
+
198
+ .push-1 { margin: 0 -40px 1.5em 40px; }
199
+ .push-2 { margin: 0 -80px 1.5em 80px; }
200
+ .push-3 { margin: 0 -120px 1.5em 120px; }
201
+ .push-4 { margin: 0 -160px 1.5em 160px; }
202
+ .push-5 { margin: 0 -200px 1.5em 200px; }
203
+ .push-6 { margin: 0 -240px 1.5em 240px; }
204
+ .push-7 { margin: 0 -280px 1.5em 280px; }
205
+ .push-8 { margin: 0 -320px 1.5em 320px; }
206
+ .push-9 { margin: 0 -360px 1.5em 360px; }
207
+ .push-10 { margin: 0 -400px 1.5em 400px; }
208
+ .push-11 { margin: 0 -440px 1.5em 440px; }
209
+ .push-12 { margin: 0 -480px 1.5em 480px; }
210
+ .push-13 { margin: 0 -520px 1.5em 520px; }
211
+ .push-14 { margin: 0 -560px 1.5em 560px; }
212
+ .push-15 { margin: 0 -600px 1.5em 600px; }
213
+ .push-16 { margin: 0 -640px 1.5em 640px; }
214
+ .push-17 { margin: 0 -680px 1.5em 680px; }
215
+ .push-18 { margin: 0 -720px 1.5em 720px; }
216
+ .push-19 { margin: 0 -760px 1.5em 760px; }
217
+ .push-20 { margin: 0 -800px 1.5em 800px; }
218
+ .push-21 { margin: 0 -840px 1.5em 840px; }
219
+ .push-22 { margin: 0 -880px 1.5em 880px; }
220
+ .push-23 { margin: 0 -920px 1.5em 920px; }
221
+ .push-24 { margin: 0 -960px 1.5em 960px; }
222
+
223
+ .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: left; position:relative;}
224
+
225
+
226
+ /* Misc classes and elements
227
+ -------------------------------------------------------------- */
228
+
229
+ /* In case you need to add a gutter above/below an element */
230
+ div.prepend-top, .prepend-top {
231
+ margin-top:1.5em;
232
+ }
233
+ div.append-bottom, .append-bottom {
234
+ margin-bottom:1.5em;
235
+ }
236
+
237
+ /* Use a .box to create a padded box inside a column. */
238
+ .box {
239
+ padding: 1.5em;
240
+ margin-bottom: 1.5em;
241
+ background: #e5eCf9;
242
+ }
243
+
244
+ /* Use this to create a horizontal ruler across a column. */
245
+ hr {
246
+ background: #ddd;
247
+ color: #ddd;
248
+ clear: both;
249
+ float: none;
250
+ width: 100%;
251
+ height: 1px;
252
+ margin: 0 0 1.45em;
253
+ border: none;
254
+ }
255
+
256
+ hr.space {
257
+ background: #fff;
258
+ color: #fff;
259
+ visibility: hidden;
260
+ }
261
+
262
+
263
+ /* Clearing floats without extra markup
264
+ Based on How To Clear Floats Without Structural Markup by PiE
265
+ [http://www.positioniseverything.net/easyclearing.html] */
266
+
267
+ .clearfix:after, .container:after {
268
+ content: "\0020";
269
+ display: block;
270
+ height: 0;
271
+ clear: both;
272
+ visibility: hidden;
273
+ overflow:hidden;
274
+ }
275
+ .clearfix, .container {display: block;}
276
+
277
+ /* Regular clearing
278
+ apply to column that should drop below previous ones. */
279
+
280
+ .clear { clear:both; }