radiant 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of radiant might be problematic. Click here for more details.

Files changed (208) hide show
  1. data/CHANGELOG +15 -0
  2. data/CONTRIBUTORS +8 -0
  3. data/app/controllers/admin/page_controller.rb +1 -11
  4. data/app/controllers/admin/welcome_controller.rb +5 -6
  5. data/app/controllers/application.rb +2 -0
  6. data/app/controllers/site_controller.rb +1 -0
  7. data/app/helpers/admin/page_helper.rb +36 -0
  8. data/app/helpers/admin/regions_helper.rb +28 -0
  9. data/app/helpers/admin/user_helper.rb +6 -0
  10. data/app/helpers/application_helper.rb +2 -1
  11. data/app/models/user.rb +7 -8
  12. data/app/views/admin/extension/index.html.haml +28 -0
  13. data/app/views/admin/layout/edit.html.haml +44 -0
  14. data/app/views/admin/layout/index.html.haml +25 -0
  15. data/app/views/admin/layout/remove.html.haml +16 -0
  16. data/app/views/admin/page/_meta_row.html.haml +6 -0
  17. data/app/views/admin/page/_node.html.haml +25 -0
  18. data/app/views/admin/page/_part.html.haml +17 -0
  19. data/app/views/admin/page/_tag_reference.html.haml +3 -0
  20. data/app/views/admin/page/children.html.haml +2 -0
  21. data/app/views/admin/page/edit.html.haml +114 -0
  22. data/app/views/admin/page/index.html.haml +28 -0
  23. data/app/views/admin/page/remove.html.haml +20 -0
  24. data/app/views/admin/snippet/edit.html.haml +36 -0
  25. data/app/views/admin/snippet/index.html.haml +20 -0
  26. data/app/views/admin/snippet/remove.html.haml +19 -0
  27. data/app/views/admin/user/edit.html.haml +80 -0
  28. data/app/views/admin/user/index.html.haml +23 -0
  29. data/app/views/admin/user/preferences.html.haml +28 -0
  30. data/app/views/admin/user/remove.html.haml +18 -0
  31. data/app/views/admin/welcome/login.html.haml +44 -0
  32. data/app/views/layouts/application.html.haml +54 -0
  33. data/app/views/site/not_found.html.haml +3 -0
  34. data/db/migrate/019_add_salt_to_users.rb +11 -0
  35. data/db/schema.rb +2 -1
  36. data/lib/login_system.rb +1 -0
  37. data/lib/radiant.rb +1 -1
  38. data/lib/radiant/admin_ui.rb +65 -0
  39. data/lib/radiant/admin_ui/region_partials.rb +18 -0
  40. data/lib/radiant/admin_ui/region_set.rb +35 -0
  41. data/lib/tasks/extensions.rake +33 -0
  42. data/public/javascripts/admin/admin.js +8 -2
  43. data/public/javascripts/admin/sitemap.js +2 -1
  44. data/public/stylesheets/admin/main.css +4 -0
  45. data/spec/controllers/admin/abstract_model_controller_spec.rb +2 -0
  46. data/spec/controllers/admin/page_controller_spec.rb +3 -28
  47. data/spec/controllers/admin/user_controller_spec.rb +1 -1
  48. data/spec/controllers/admin/welcome_controller_spec.rb +26 -0
  49. data/spec/helpers/admin/page_helper_spec.rb +4 -0
  50. data/spec/helpers/admin/regions_helper_spec.rb +47 -0
  51. data/spec/helpers/admin/user_helper_spec.rb +7 -0
  52. data/spec/helpers/application_helper_spec.rb +7 -3
  53. data/spec/lib/login_system_spec.rb +5 -0
  54. data/spec/lib/radiant/admin_ui/region_partials_spec.rb +35 -0
  55. data/spec/lib/radiant/admin_ui/region_set_spec.rb +61 -0
  56. data/spec/lib/radiant/admin_ui_spec.rb +74 -18
  57. data/spec/models/user_spec.rb +11 -4
  58. data/spec/scenarios/users_scenario.rb +2 -2
  59. data/vendor/plugins/haml/MIT-LICENSE +20 -0
  60. data/vendor/plugins/haml/README.rdoc +319 -0
  61. data/vendor/plugins/haml/Rakefile +158 -0
  62. data/vendor/plugins/haml/TODO +9 -0
  63. data/vendor/plugins/haml/VERSION +1 -0
  64. data/vendor/plugins/haml/bin/css2sass +7 -0
  65. data/vendor/plugins/haml/bin/haml +8 -0
  66. data/vendor/plugins/haml/bin/html2haml +7 -0
  67. data/vendor/plugins/haml/bin/sass +8 -0
  68. data/vendor/plugins/haml/extra/haml-mode.el +328 -0
  69. data/vendor/plugins/haml/extra/sass-mode.el +88 -0
  70. data/vendor/plugins/haml/init.rb +2 -0
  71. data/vendor/plugins/haml/lib/haml.rb +977 -0
  72. data/vendor/plugins/haml/lib/haml/buffer.rb +229 -0
  73. data/vendor/plugins/haml/lib/haml/engine.rb +274 -0
  74. data/vendor/plugins/haml/lib/haml/error.rb +23 -0
  75. data/vendor/plugins/haml/lib/haml/exec.rb +347 -0
  76. data/vendor/plugins/haml/lib/haml/filters.rb +249 -0
  77. data/vendor/plugins/haml/lib/haml/helpers.rb +413 -0
  78. data/vendor/plugins/haml/lib/haml/helpers/action_view_extensions.rb +45 -0
  79. data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +122 -0
  80. data/vendor/plugins/haml/lib/haml/html.rb +188 -0
  81. data/vendor/plugins/haml/lib/haml/precompiler.rb +757 -0
  82. data/vendor/plugins/haml/lib/haml/template.rb +43 -0
  83. data/vendor/plugins/haml/lib/haml/template/patch.rb +58 -0
  84. data/vendor/plugins/haml/lib/haml/template/plugin.rb +72 -0
  85. data/vendor/plugins/haml/lib/sass.rb +833 -0
  86. data/vendor/plugins/haml/lib/sass/constant.rb +245 -0
  87. data/vendor/plugins/haml/lib/sass/constant/color.rb +101 -0
  88. data/vendor/plugins/haml/lib/sass/constant/literal.rb +53 -0
  89. data/vendor/plugins/haml/lib/sass/constant/number.rb +87 -0
  90. data/vendor/plugins/haml/lib/sass/constant/operation.rb +30 -0
  91. data/vendor/plugins/haml/lib/sass/constant/string.rb +22 -0
  92. data/vendor/plugins/haml/lib/sass/css.rb +378 -0
  93. data/vendor/plugins/haml/lib/sass/engine.rb +459 -0
  94. data/vendor/plugins/haml/lib/sass/error.rb +35 -0
  95. data/vendor/plugins/haml/lib/sass/plugin.rb +165 -0
  96. data/vendor/plugins/haml/lib/sass/plugin/merb.rb +56 -0
  97. data/vendor/plugins/haml/lib/sass/plugin/rails.rb +24 -0
  98. data/vendor/plugins/haml/lib/sass/tree/attr_node.rb +53 -0
  99. data/vendor/plugins/haml/lib/sass/tree/comment_node.rb +20 -0
  100. data/vendor/plugins/haml/lib/sass/tree/directive_node.rb +46 -0
  101. data/vendor/plugins/haml/lib/sass/tree/node.rb +42 -0
  102. data/vendor/plugins/haml/lib/sass/tree/rule_node.rb +89 -0
  103. data/vendor/plugins/haml/lib/sass/tree/value_node.rb +16 -0
  104. data/vendor/plugins/haml/test/benchmark.rb +82 -0
  105. data/vendor/plugins/haml/test/haml/engine_test.rb +587 -0
  106. data/vendor/plugins/haml/test/haml/helper_test.rb +187 -0
  107. data/vendor/plugins/haml/test/haml/html2haml_test.rb +60 -0
  108. data/vendor/plugins/haml/test/haml/markaby/standard.mab +52 -0
  109. data/vendor/plugins/haml/test/haml/mocks/article.rb +6 -0
  110. data/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml +16 -0
  111. data/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml +11 -0
  112. data/vendor/plugins/haml/test/haml/results/filters.xhtml +82 -0
  113. data/vendor/plugins/haml/test/haml/results/helpers.xhtml +94 -0
  114. data/vendor/plugins/haml/test/haml/results/helpful.xhtml +10 -0
  115. data/vendor/plugins/haml/test/haml/results/just_stuff.xhtml +64 -0
  116. data/vendor/plugins/haml/test/haml/results/list.xhtml +12 -0
  117. data/vendor/plugins/haml/test/haml/results/original_engine.xhtml +22 -0
  118. data/vendor/plugins/haml/test/haml/results/partials.xhtml +21 -0
  119. data/vendor/plugins/haml/test/haml/results/silent_script.xhtml +74 -0
  120. data/vendor/plugins/haml/test/haml/results/standard.xhtml +42 -0
  121. data/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml +28 -0
  122. data/vendor/plugins/haml/test/haml/results/very_basic.xhtml +7 -0
  123. data/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml +94 -0
  124. data/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml +12 -0
  125. data/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml +8 -0
  126. data/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml +62 -0
  127. data/vendor/plugins/haml/test/haml/rhtml/standard.rhtml +54 -0
  128. data/vendor/plugins/haml/test/haml/template_test.rb +168 -0
  129. data/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml +9 -0
  130. data/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml +5 -0
  131. data/vendor/plugins/haml/test/haml/templates/_partial.haml +8 -0
  132. data/vendor/plugins/haml/test/haml/templates/_text_area.haml +3 -0
  133. data/vendor/plugins/haml/test/haml/templates/action_view.haml +47 -0
  134. data/vendor/plugins/haml/test/haml/templates/breakage.haml +8 -0
  135. data/vendor/plugins/haml/test/haml/templates/content_for_layout.haml +10 -0
  136. data/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml +11 -0
  137. data/vendor/plugins/haml/test/haml/templates/filters.haml +81 -0
  138. data/vendor/plugins/haml/test/haml/templates/helpers.haml +69 -0
  139. data/vendor/plugins/haml/test/haml/templates/helpful.haml +11 -0
  140. data/vendor/plugins/haml/test/haml/templates/just_stuff.haml +77 -0
  141. data/vendor/plugins/haml/test/haml/templates/list.haml +12 -0
  142. data/vendor/plugins/haml/test/haml/templates/original_engine.haml +17 -0
  143. data/vendor/plugins/haml/test/haml/templates/partialize.haml +1 -0
  144. data/vendor/plugins/haml/test/haml/templates/partials.haml +12 -0
  145. data/vendor/plugins/haml/test/haml/templates/silent_script.haml +40 -0
  146. data/vendor/plugins/haml/test/haml/templates/standard.haml +42 -0
  147. data/vendor/plugins/haml/test/haml/templates/tag_parsing.haml +24 -0
  148. data/vendor/plugins/haml/test/haml/templates/very_basic.haml +4 -0
  149. data/vendor/plugins/haml/test/haml/templates/whitespace_handling.haml +87 -0
  150. data/vendor/plugins/haml/test/haml/test_helper.rb +15 -0
  151. data/vendor/plugins/haml/test/profile.rb +65 -0
  152. data/vendor/plugins/haml/test/sass/engine_test.rb +276 -0
  153. data/vendor/plugins/haml/test/sass/plugin_test.rb +159 -0
  154. data/vendor/plugins/haml/test/sass/results/alt.css +4 -0
  155. data/vendor/plugins/haml/test/sass/results/basic.css +9 -0
  156. data/vendor/plugins/haml/test/sass/results/compact.css +5 -0
  157. data/vendor/plugins/haml/test/sass/results/complex.css +87 -0
  158. data/vendor/plugins/haml/test/sass/results/compressed.css +1 -0
  159. data/vendor/plugins/haml/test/sass/results/constants.css +14 -0
  160. data/vendor/plugins/haml/test/sass/results/expanded.css +19 -0
  161. data/vendor/plugins/haml/test/sass/results/import.css +29 -0
  162. data/vendor/plugins/haml/test/sass/results/mixins.css +95 -0
  163. data/vendor/plugins/haml/test/sass/results/multiline.css +24 -0
  164. data/vendor/plugins/haml/test/sass/results/nested.css +22 -0
  165. data/vendor/plugins/haml/test/sass/results/parent_ref.css +13 -0
  166. data/vendor/plugins/haml/test/sass/results/subdir/nested_subdir/nested_subdir.css +1 -0
  167. data/vendor/plugins/haml/test/sass/results/subdir/subdir.css +1 -0
  168. data/vendor/plugins/haml/test/sass/templates/_partial.sass +2 -0
  169. data/vendor/plugins/haml/test/sass/templates/alt.sass +16 -0
  170. data/vendor/plugins/haml/test/sass/templates/basic.sass +23 -0
  171. data/vendor/plugins/haml/test/sass/templates/bork.sass +2 -0
  172. data/vendor/plugins/haml/test/sass/templates/bork2.sass +2 -0
  173. data/vendor/plugins/haml/test/sass/templates/compact.sass +17 -0
  174. data/vendor/plugins/haml/test/sass/templates/complex.sass +310 -0
  175. data/vendor/plugins/haml/test/sass/templates/compressed.sass +15 -0
  176. data/vendor/plugins/haml/test/sass/templates/constants.sass +97 -0
  177. data/vendor/plugins/haml/test/sass/templates/expanded.sass +17 -0
  178. data/vendor/plugins/haml/test/sass/templates/import.sass +11 -0
  179. data/vendor/plugins/haml/test/sass/templates/importee.sass +14 -0
  180. data/vendor/plugins/haml/test/sass/templates/mixins.sass +76 -0
  181. data/vendor/plugins/haml/test/sass/templates/multiline.sass +20 -0
  182. data/vendor/plugins/haml/test/sass/templates/nested.sass +25 -0
  183. data/vendor/plugins/haml/test/sass/templates/parent_ref.sass +25 -0
  184. data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +3 -0
  185. data/vendor/plugins/haml/test/sass/templates/subdir/subdir.sass +6 -0
  186. metadata +185 -24
  187. data/app/views/admin/extension/index.html.erb +0 -40
  188. data/app/views/admin/layout/edit.html.erb +0 -39
  189. data/app/views/admin/layout/index.html.erb +0 -38
  190. data/app/views/admin/layout/remove.html.erb +0 -17
  191. data/app/views/admin/page/_meta_row.html.erb +0 -4
  192. data/app/views/admin/page/_node.html.erb +0 -28
  193. data/app/views/admin/page/_part.html.erb +0 -13
  194. data/app/views/admin/page/_tag_reference.html.erb +0 -4
  195. data/app/views/admin/page/children.html.erb +0 -4
  196. data/app/views/admin/page/edit.html.erb +0 -140
  197. data/app/views/admin/page/index.html.erb +0 -31
  198. data/app/views/admin/page/remove.html.erb +0 -14
  199. data/app/views/admin/snippet/edit.html.erb +0 -29
  200. data/app/views/admin/snippet/index.html.erb +0 -36
  201. data/app/views/admin/snippet/remove.html.erb +0 -16
  202. data/app/views/admin/user/edit.html.erb +0 -54
  203. data/app/views/admin/user/index.html.erb +0 -43
  204. data/app/views/admin/user/preferences.html.erb +0 -29
  205. data/app/views/admin/user/remove.html.erb +0 -16
  206. data/app/views/admin/welcome/login.html.erb +0 -51
  207. data/app/views/layouts/application.html.erb +0 -83
  208. data/app/views/site/not_found.html.erb +0 -3
@@ -0,0 +1,22 @@
1
+ #main {
2
+ width: 15em;
3
+ color: #0000ff; }
4
+ #main p {
5
+ border-style: dotted;
6
+ /* Nested comment
7
+ * More nested stuff */
8
+ border-width: 2px; }
9
+ #main .cool {
10
+ width: 100px; }
11
+
12
+ #left {
13
+ font-size: 2em;
14
+ font-weight: bold;
15
+ float: left; }
16
+
17
+ #right .header {
18
+ border-style: solid; }
19
+ #right .body {
20
+ border-style: dotted; }
21
+ #right .footer {
22
+ border-style: dashed; }
@@ -0,0 +1,13 @@
1
+ a { color: #000; }
2
+ a:hover { color: #f00; }
3
+
4
+ p, div { width: 100em; }
5
+ p foo, div foo { width: 10em; }
6
+ p:hover, p bar, div:hover, div bar { height: 20em; }
7
+
8
+ #cool { border-style: solid; border-width: 2em; }
9
+ .ie7 #cool, .ie6 #cool { content: string(Totally not cool.); }
10
+ .firefox #cool { content: string(Quite cool.); }
11
+
12
+ .wow, .snazzy { font-family: fantasy; }
13
+ .wow:hover, .wow:visited, .snazzy:hover, .snazzy:visited { font-weight: bold; }
@@ -0,0 +1 @@
1
+ #subdir { font-size: 20px; font-weight: bold; }
@@ -0,0 +1,2 @@
1
+ #foo
2
+ :background-color #baf
@@ -0,0 +1,16 @@
1
+ h1
2
+ :float left
3
+ :width 274px
4
+ height: 75px
5
+ margin: 0
6
+ background:
7
+ repeat: no-repeat
8
+ :image none
9
+ a:hover, a:visited
10
+ color: green
11
+ b:hover
12
+ color: red
13
+ :background-color green
14
+ const
15
+ nosp= 1 + 2
16
+ sp = 1 + 2
@@ -0,0 +1,23 @@
1
+
2
+
3
+ body
4
+ :font Arial
5
+ :background blue
6
+
7
+ #page
8
+ :width 700px
9
+ :height 100
10
+ #header
11
+ :height 300px
12
+ h1
13
+ :font-size 50px
14
+ :color blue
15
+
16
+ #content.user.show
17
+ #container.top
18
+ #column.left
19
+ :width 100px
20
+ #column.right
21
+ :width 600px
22
+ #container.bottom
23
+ :background brown
@@ -0,0 +1,2 @@
1
+ bork
2
+ :bork= !bork
@@ -0,0 +1,2 @@
1
+ bork
2
+ :bork: bork;
@@ -0,0 +1,17 @@
1
+ #main
2
+ :width 15em
3
+ :color #0000ff
4
+ p
5
+ :border
6
+ :style dotted
7
+ /* Nested comment
8
+ More nested stuff
9
+ :width 2px
10
+ .cool
11
+ :width 100px
12
+
13
+ #left
14
+ :font
15
+ :size 2em
16
+ :weight bold
17
+ :float left
@@ -0,0 +1,310 @@
1
+ body
2
+ :margin 0
3
+ :font 0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif
4
+ :color #fff
5
+ :background url(/images/global_bg.gif)
6
+
7
+ #page
8
+ :width 900px
9
+ :margin 0 auto
10
+ :background #440008
11
+ :border-top
12
+ :width 5px
13
+ :style solid
14
+ :color #ff8500
15
+
16
+ #header
17
+ :height 75px
18
+ :padding 0
19
+ h1
20
+ :float left
21
+ :width 274px
22
+ :height 75px
23
+ :margin 0
24
+ :background
25
+ :image url(/images/global_logo.gif)
26
+ /* Crazy nested comment
27
+ :repeat no-repeat
28
+ :text-indent -9999px
29
+ .status
30
+ :float right
31
+ :padding
32
+ :top .5em
33
+ :left .5em
34
+ :right .5em
35
+ :bottom 0
36
+ p
37
+ :float left
38
+ :margin
39
+ :top 0
40
+ :right 0.5em
41
+ :bottom 0
42
+ :left 0
43
+ ul
44
+ :float left
45
+ :margin 0
46
+ :padding 0
47
+ li
48
+ :list-style-type none
49
+ :display inline
50
+ :margin 0 5px
51
+ a:link, a:visited
52
+ :color #ff8500
53
+ :text-decoration none
54
+ a:hover
55
+ :text-decoration underline
56
+ .search
57
+ :float right
58
+ :clear right
59
+ :margin 12px 0 0 0
60
+ form
61
+ :margin 0
62
+ input
63
+ :margin 0 3px 0 0
64
+ :padding 2px
65
+ :border none
66
+
67
+ #menu
68
+ :clear both
69
+ :text-align right
70
+ :height 20px
71
+ :border-bottom 5px solid #006b95
72
+ :background #00a4e4
73
+ .contests
74
+ ul
75
+ :margin 0 5px 0 0
76
+ :padding 0
77
+ li
78
+ :list-style-type none
79
+ :margin 0 5px
80
+ :padding 5px 5px 0 5px
81
+ :display inline
82
+ // This comment is in the middle of this rule
83
+ :font-size 1.1em
84
+ // This comment is properly indented
85
+ :color #fff
86
+ :background #00a4e4
87
+ / This rule isn't a comment!
88
+ :red green
89
+ a:link, a:visited
90
+ :color #fff
91
+ :text-decoration none
92
+ :font-weight bold
93
+ a:hover
94
+ :text-decoration underline
95
+
96
+ //General content information
97
+ #content
98
+ :clear both
99
+ .container
100
+ :clear both
101
+ .column
102
+ :float left
103
+ .left
104
+ .middle
105
+ .right
106
+ :float right
107
+ a:link, a:visited
108
+ :color #93d700
109
+ :text-decoration none
110
+ a:hover
111
+ :text-decoration underline
112
+
113
+ // A hard tab:
114
+
115
+
116
+ #content
117
+ p, div
118
+ :width 40em
119
+ li, dt, dd
120
+ :color #ddffdd
121
+ :background-color #4792bb
122
+ .container.video
123
+ .column.left
124
+ :width 200px
125
+ .box
126
+ :margin-top 10px
127
+ p
128
+ :margin 0 1em auto 1em
129
+ .box.participants
130
+ img
131
+ :float left
132
+ :margin 0 1em auto 1em
133
+ :border 1px solid #6e000d
134
+ :style solid
135
+ h2
136
+ :margin 0 0 10px 0
137
+ :padding 0.5em
138
+ /* The background image is a gif!
139
+ :background #6e000d url(/images/hdr_participant.gif) 2px 2px no-repeat
140
+ /* Okay check this out
141
+ Multiline comments
142
+ Wow dude
143
+ I mean seriously, WOW
144
+ :text-indent -9999px
145
+ // And also...
146
+ Multiline comments that don't output!
147
+ Snazzy, no?
148
+ :border
149
+ :top
150
+ :width 5px
151
+ :style solid
152
+ :color #a20013
153
+ :right
154
+ :width 1px
155
+ :style dotted
156
+ .column.middle
157
+ :width 500px
158
+ .column.right
159
+ :width 200px
160
+ .box
161
+ :margin-top 0
162
+ p
163
+ :margin 0 1em auto 1em
164
+ .column
165
+ p
166
+ :margin-top 0
167
+
168
+ #content.contests
169
+ .container.information
170
+ .column.right
171
+ .box
172
+ :margin 1em 0
173
+ .box.videos
174
+ .thumbnail img
175
+ :width 200px
176
+ :height 150px
177
+ :margin-bottom 5px
178
+ a:link, a:visited
179
+ :color #93d700
180
+ :text-decoration none
181
+ a:hover
182
+ :text-decoration underline
183
+ .box.votes
184
+ a
185
+ :display block
186
+ :width 200px
187
+ :height 60px
188
+ :margin 15px 0
189
+ :background url(/images/btn_votenow.gif) no-repeat
190
+ :text-indent -9999px
191
+ :outline none
192
+ :border none
193
+ h2
194
+ :margin 52px 0 10px 0
195
+ :padding 0.5em
196
+ :background #6e000d url(/images/hdr_videostats.gif) 2px 2px no-repeat
197
+ :text-indent -9999px
198
+ :border-top 5px solid #a20013
199
+
200
+ #content.contests
201
+ .container.video
202
+ .box.videos
203
+ h2
204
+ :margin 0
205
+ :padding 0.5em
206
+ :background #6e000d url(/images/hdr_newestclips.gif) 2px 2px no-repeat
207
+ :text-indent -9999px
208
+ :border-top 5px solid #a20013
209
+ table
210
+ :width 100
211
+ td
212
+ :padding 1em
213
+ :width 25
214
+ :vertical-align top
215
+ p
216
+ :margin 0 0 5px 0
217
+ a:link, a:visited
218
+ :color #93d700
219
+ :text-decoration none
220
+ a:hover
221
+ :text-decoration underline
222
+ .thumbnail
223
+ :float left
224
+ img
225
+ :width 80px
226
+ :height 60px
227
+ :margin 0 10px 0 0
228
+ :border 1px solid #6e000d
229
+
230
+ #content
231
+ .container.comments
232
+ .column
233
+ :margin-top 15px
234
+ .column.left
235
+ :width 600px
236
+ .box
237
+ ol
238
+ :margin 0
239
+ :padding 0
240
+ li
241
+ :list-style-type none
242
+ :padding 10px
243
+ :margin 0 0 1em 0
244
+ :background #6e000d
245
+ :border-top 5px solid #a20013
246
+ div
247
+ :margin-bottom 1em
248
+ ul
249
+ :text-align right
250
+ li
251
+ :display inline
252
+ :border none
253
+ :padding 0
254
+ .column.right
255
+ :width 290px
256
+ :padding-left 10px
257
+ h2
258
+ :margin 0
259
+ :padding 0.5em
260
+ :background #6e000d url(/images/hdr_addcomment.gif) 2px 2px no-repeat
261
+ :text-indent -9999px
262
+ :border-top 5px solid #a20013
263
+ .box
264
+ textarea
265
+ :width 290px
266
+ :height 100px
267
+ :border none
268
+
269
+ #footer
270
+ :margin-top 10px
271
+ :padding 1.2em 1.5em
272
+ :background #ff8500
273
+ ul
274
+ :margin 0
275
+ :padding 0
276
+ :list-style-type none
277
+ li
278
+ :display inline
279
+ :margin 0 0.5em
280
+ :color #440008
281
+ ul.links
282
+ :float left
283
+ a:link, a:visited
284
+ :color #440008
285
+ :text-decoration none
286
+ a:hover
287
+ :text-decoration underline
288
+ ul.copyright
289
+ :float right
290
+
291
+
292
+ .clear
293
+ :clear both
294
+
295
+ .centered
296
+ :text-align center
297
+
298
+ img
299
+ :border none
300
+
301
+ button.short
302
+ :width 60px
303
+ :height 22px
304
+ :padding 0 0 2px 0
305
+ :color #fff
306
+ :border none
307
+ :background url(/images/btn_short.gif) no-repeat
308
+
309
+ table
310
+ :border-collapse collapse
@@ -0,0 +1,15 @@
1
+ #main
2
+ :width 15em
3
+ :color #0000ff
4
+ p
5
+ :border
6
+ :style dotted
7
+ :width 2px
8
+ .cool
9
+ :width 100px
10
+
11
+ #left
12
+ :font
13
+ :size 2em
14
+ :weight bold
15
+ :float left
@@ -0,0 +1,97 @@
1
+ !width = 10em + 20
2
+ !color = #00ff98
3
+ !main_text = #ffa
4
+ !num = 10
5
+ !dec = 10.2
6
+ !dec_0 = 99.0
7
+ !neg = -10
8
+ !esc= 10\+12
9
+ !str= "Hello!"
10
+ !qstr= "Quo\"ted\"!"
11
+ !hstr= "Hyph-en!"
12
+ !concat = (5 + 4) hi there
13
+ !percent= 11%
14
+
15
+ #main
16
+ :content = !str
17
+ :qstr = !qstr
18
+ :hstr = !hstr
19
+ :width = !width
20
+ :background-color #000
21
+ :color= !main_text
22
+ :short-color= #123
23
+ :named-color= olive
24
+ :con= foo bar (!concat boom)
25
+ :con2= noquo "quo"
26
+ #sidebar
27
+ :background-color= !color
28
+ :num
29
+ :normal= !num
30
+ :dec= !dec
31
+ :dec0= !dec_0
32
+ :neg= !neg
33
+ :esc= !esc
34
+ :many= 1 + 2 + 3
35
+ :order= 1 + 2 * 3
36
+ :complex= ((1 + 2) + 15)+#3a8b9f + (hi+(1 +1+ 2)* 4)
37
+
38
+ #plus
39
+ :num
40
+ :num= 5+2
41
+ :num-un= 10em + 15em
42
+ :num-un2= 10 + 13em
43
+ :num-neg= 10 + -.13
44
+ :str= 100 + px
45
+ :col= 13 + #aaa
46
+ :perc = !percent + 20%
47
+ :str
48
+ :str= hi + \ there
49
+ :str2= hi + " there"
50
+ :col= "14em solid " + #123
51
+ :num= times:\ + 13
52
+ :col
53
+ :num= #f02 + 123.5
54
+ :col= #12A + #405162
55
+
56
+ #minus
57
+ :num
58
+ :num= 912 - 12
59
+ :col
60
+ :num= #fffffa - 5.2
61
+ :col= #abcdef - #fedcba
62
+ :unary
63
+ :num= -1
64
+ :const= -!neg
65
+ :paren= -(5 + 6)
66
+ :two= --12
67
+ :many= --------12
68
+ :crazy= -----(5 + ---!neg)
69
+
70
+ #times
71
+ :num
72
+ :num= 2 * 3.5
73
+ :col= 2 * #3a4b5c
74
+ :col
75
+ :num= #12468a * 0.5
76
+ :col= #121212 * #020304
77
+
78
+ #div
79
+ :num
80
+ :num= 10 / 3.0
81
+ :num2= 10 / 3
82
+ :col
83
+ :num= #12468a / 2
84
+ :col= #abcdef / #0f0f0f
85
+
86
+ #mod
87
+ :num
88
+ :num= 17 % 3
89
+ :col
90
+ :col= #5f6e7d % #10200a
91
+ :num= #aaabac % 3
92
+
93
+ #const
94
+ :escaped
95
+ :quote = "!foo"
96
+ :slash = \!foo
97
+ :default = !str !important