spontaneous 0.1.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (556) hide show
  1. data/Gemfile +49 -0
  2. data/Gemfile.lock +146 -0
  3. data/LICENSE +0 -0
  4. data/README +0 -0
  5. data/Rakefile +284 -0
  6. data/Readme.markdown +7 -0
  7. data/application/css/add_alias_dialogue.scss +27 -0
  8. data/application/css/definitions.scss +249 -0
  9. data/application/css/developer.scss +9 -0
  10. data/application/css/editing.scss +649 -0
  11. data/application/css/login.scss +91 -0
  12. data/application/css/min/54ee0ed3c7fac7632bd5c020d69e9a2503e0c88c.css +1 -0
  13. data/application/css/min/c256adc144e2bdd0b0539356b04eb62db01e1dc3.css +1 -0
  14. data/application/css/popover.scss +335 -0
  15. data/application/css/schema_error.scss +90 -0
  16. data/application/css/spontaneous.scss +111 -0
  17. data/application/css/unsupported.scss +16 -0
  18. data/application/css/v2.scss +1606 -0
  19. data/application/css/variables.scss +80 -0
  20. data/application/js/add_alias_dialogue.js +59 -0
  21. data/application/js/add_home_dialogue.js +59 -0
  22. data/application/js/ajax.js +99 -0
  23. data/application/js/authentication.js +22 -0
  24. data/application/js/box.js +104 -0
  25. data/application/js/box_container.js +82 -0
  26. data/application/js/compatibility.js +132 -0
  27. data/application/js/conflicted_field_dialogue.js +92 -0
  28. data/application/js/content.js +224 -0
  29. data/application/js/content_area.js +44 -0
  30. data/application/js/dialogue.js +196 -0
  31. data/application/js/dom.js +71 -0
  32. data/application/js/edit_dialogue.js +137 -0
  33. data/application/js/edit_panel.js +232 -0
  34. data/application/js/editing.js +42 -0
  35. data/application/js/entry.js +13 -0
  36. data/application/js/extensions.js +104 -0
  37. data/application/js/field.js +4 -0
  38. data/application/js/field_preview.js +55 -0
  39. data/application/js/field_types/date_field.js +16 -0
  40. data/application/js/field_types/file_field.js +71 -0
  41. data/application/js/field_types/image_field.js +358 -0
  42. data/application/js/field_types/markdown_field.js +656 -0
  43. data/application/js/field_types/string_field.js +185 -0
  44. data/application/js/image.js +72 -0
  45. data/application/js/init.js +34 -0
  46. data/application/js/load.js +4 -0
  47. data/application/js/location.js +157 -0
  48. data/application/js/login.js +53 -0
  49. data/application/js/min/492a209de8ee955fa9c729a765377495001e11b1.js +17 -0
  50. data/application/js/min/80f684d77c940887a1d4a63e3a96102e993baa98.js +88 -0
  51. data/application/js/min/b8abf302a824c35385ff517b34111e1710ff3b37.js +2 -0
  52. data/application/js/min/c7140ec9475e5bf868b901e0621338d7d162358b.js +3 -0
  53. data/application/js/min/f07f2bd6630ee31e1c2288ec223383d8f0658ba6.js +2 -0
  54. data/application/js/page.js +43 -0
  55. data/application/js/page_browser.js +147 -0
  56. data/application/js/page_entry.js +47 -0
  57. data/application/js/popover.js +99 -0
  58. data/application/js/popover_view.js +56 -0
  59. data/application/js/preview.js +64 -0
  60. data/application/js/progress.js +358 -0
  61. data/application/js/properties.js +90 -0
  62. data/application/js/publish.js +187 -0
  63. data/application/js/require.js +129 -0
  64. data/application/js/sharded_upload.js +206 -0
  65. data/application/js/side_bar.js +30 -0
  66. data/application/js/spontaneous.js +6 -0
  67. data/application/js/state.js +64 -0
  68. data/application/js/status_bar.js +47 -0
  69. data/application/js/top_bar.js +368 -0
  70. data/application/js/types.js +98 -0
  71. data/application/js/upload.js +88 -0
  72. data/application/js/upload_manager.js +319 -0
  73. data/application/js/user.js +37 -0
  74. data/application/js/vendor/.DS_Store +0 -0
  75. data/application/js/vendor/JS.Class-2.1.5/CHANGELOG +283 -0
  76. data/application/js/vendor/JS.Class-2.1.5/MIT-LICENSE +30 -0
  77. data/application/js/vendor/JS.Class-2.1.5/README +30 -0
  78. data/application/js/vendor/JS.Class-2.1.5/min/command.js +1 -0
  79. data/application/js/vendor/JS.Class-2.1.5/min/comparable.js +1 -0
  80. data/application/js/vendor/JS.Class-2.1.5/min/constant_scope.js +1 -0
  81. data/application/js/vendor/JS.Class-2.1.5/min/core.js +1 -0
  82. data/application/js/vendor/JS.Class-2.1.5/min/decorator.js +1 -0
  83. data/application/js/vendor/JS.Class-2.1.5/min/enumerable.js +1 -0
  84. data/application/js/vendor/JS.Class-2.1.5/min/forwardable.js +1 -0
  85. data/application/js/vendor/JS.Class-2.1.5/min/hash.js +1 -0
  86. data/application/js/vendor/JS.Class-2.1.5/min/linked_list.js +1 -0
  87. data/application/js/vendor/JS.Class-2.1.5/min/loader.js +1 -0
  88. data/application/js/vendor/JS.Class-2.1.5/min/method_chain.js +1 -0
  89. data/application/js/vendor/JS.Class-2.1.5/min/observable.js +1 -0
  90. data/application/js/vendor/JS.Class-2.1.5/min/package.js +1 -0
  91. data/application/js/vendor/JS.Class-2.1.5/min/proxy.js +1 -0
  92. data/application/js/vendor/JS.Class-2.1.5/min/ruby.js +1 -0
  93. data/application/js/vendor/JS.Class-2.1.5/min/set.js +1 -0
  94. data/application/js/vendor/JS.Class-2.1.5/min/stack_trace.js +1 -0
  95. data/application/js/vendor/JS.Class-2.1.5/min/state.js +1 -0
  96. data/application/js/vendor/JS.Class-2.1.5/min/stdlib.js +16 -0
  97. data/application/js/vendor/JS.Class-2.1.5/src/command.js +93 -0
  98. data/application/js/vendor/JS.Class-2.1.5/src/comparable.js +37 -0
  99. data/application/js/vendor/JS.Class-2.1.5/src/constant_scope.js +48 -0
  100. data/application/js/vendor/JS.Class-2.1.5/src/core.js +1060 -0
  101. data/application/js/vendor/JS.Class-2.1.5/src/decorator.js +50 -0
  102. data/application/js/vendor/JS.Class-2.1.5/src/enumerable.js +505 -0
  103. data/application/js/vendor/JS.Class-2.1.5/src/forwardable.js +22 -0
  104. data/application/js/vendor/JS.Class-2.1.5/src/hash.js +334 -0
  105. data/application/js/vendor/JS.Class-2.1.5/src/linked_list.js +114 -0
  106. data/application/js/vendor/JS.Class-2.1.5/src/loader.js +553 -0
  107. data/application/js/vendor/JS.Class-2.1.5/src/method_chain.js +172 -0
  108. data/application/js/vendor/JS.Class-2.1.5/src/observable.js +55 -0
  109. data/application/js/vendor/JS.Class-2.1.5/src/package.js +472 -0
  110. data/application/js/vendor/JS.Class-2.1.5/src/proxy.js +58 -0
  111. data/application/js/vendor/JS.Class-2.1.5/src/ruby.js +44 -0
  112. data/application/js/vendor/JS.Class-2.1.5/src/set.js +332 -0
  113. data/application/js/vendor/JS.Class-2.1.5/src/stack_trace.js +151 -0
  114. data/application/js/vendor/JS.Class-2.1.5/src/state.js +95 -0
  115. data/application/js/vendor/JS.Class-2.1.5/src/stdlib.js +2612 -0
  116. data/application/js/vendor/crypto-2.3.0-crypto.js +160 -0
  117. data/application/js/vendor/crypto-2.3.0-sha1.js +91 -0
  118. data/application/js/vendor/diff_match_patch.js +2153 -0
  119. data/application/js/vendor/jquery-1.4.2.min.js +154 -0
  120. data/application/js/vendor/jquery-1.4.3.min.js +166 -0
  121. data/application/js/vendor/jquery-1.5.1.min.js +16 -0
  122. data/application/js/vendor/jquery-1.5.1rc1.min.js +24 -0
  123. data/application/js/vendor/jquery-1.6.2.min.js +18 -0
  124. data/application/js/vendor/jquery-ui-1.8.6.custom.min.js +265 -0
  125. data/application/js/vendor/jquery-ui-1.8.9.custom.min.js +415 -0
  126. data/application/js/vendor/jquery-ui-1.8.custom.min.js +106 -0
  127. data/application/js/vendor/jquery.hotkeys-0.7.9.js +248 -0
  128. data/application/js/vendor/jquery.hotkeys-0.7.9.min.js +19 -0
  129. data/application/js/vendor/jsdiff.js +169 -0
  130. data/application/js/views/box_view.js +229 -0
  131. data/application/js/views/page_piece_view.js +45 -0
  132. data/application/js/views/page_view.js +238 -0
  133. data/application/js/views/piece_view.js +178 -0
  134. data/application/js/views.js +110 -0
  135. data/application/static/editing-0-noise.png +0 -0
  136. data/application/static/editing-1-noise.png +0 -0
  137. data/application/static/editing-texture-1.png +0 -0
  138. data/application/static/editing-texture.png +0 -0
  139. data/application/static/editing-toolbar-shadow-bottom.png +0 -0
  140. data/application/static/editing-toolbar-shadow-top.png +0 -0
  141. data/application/static/favicon.ico +0 -0
  142. data/application/static/inner-glow.png +0 -0
  143. data/application/static/item-buttons.png +0 -0
  144. data/application/static/location-arrow.png +0 -0
  145. data/application/static/logo-400px-transparent.png +0 -0
  146. data/application/static/missing.png +0 -0
  147. data/application/static/orange-down-arrow.png +0 -0
  148. data/application/static/page-browser-next.png +0 -0
  149. data/application/static/paper-texture-dark.png +0 -0
  150. data/application/static/px.gif +0 -0
  151. data/application/static/select-arrow-root.png +0 -0
  152. data/application/static/select-arrow.png +0 -0
  153. data/application/static/slot-down-arrow.png +0 -0
  154. data/application/static/splash.png +0 -0
  155. data/application/static/spontaneous.png +0 -0
  156. data/application/static/spot.png +0 -0
  157. data/application/static/spot.svg +40 -0
  158. data/application/static/texture.png +0 -0
  159. data/application/views/index.erubis +46 -0
  160. data/application/views/login.erubis +69 -0
  161. data/application/views/schema_modification_error.html.erb +61 -0
  162. data/application/views/unsupported.erubis +23 -0
  163. data/bin/limit-upload +5 -0
  164. data/bin/spot +10 -0
  165. data/bin/unlimit-upload +3 -0
  166. data/config/nginx.conf +60 -0
  167. data/db/migrations/20100610142136_init.rb +66 -0
  168. data/db/migrations/20101130104334_timestamps.rb +44 -0
  169. data/db/migrations/20101202113205_site_publishing_flags.rb +12 -0
  170. data/db/migrations/20101206124543_aliases.rb +16 -0
  171. data/db/migrations/20110201133550_visibility.rb +27 -0
  172. data/db/migrations/20110209152710_users_and_groups.rb +58 -0
  173. data/db/migrations/20110215133910_boxes.rb +25 -0
  174. data/db/migrations/20110521114145_remove_slots_and_entries.rb +21 -0
  175. data/db/migrations/20110604192145_rename_schema_id_columns.rb +22 -0
  176. data/db/migrations/20110805141925_rename_site_to_state.rb +11 -0
  177. data/lib/cutaneous/context_helper.rb +82 -0
  178. data/lib/cutaneous/first_pass_parser.rb +23 -0
  179. data/lib/cutaneous/first_pass_renderer.rb +18 -0
  180. data/lib/cutaneous/parser_core.rb +18 -0
  181. data/lib/cutaneous/preview_context.rb +31 -0
  182. data/lib/cutaneous/preview_renderer.rb +15 -0
  183. data/lib/cutaneous/publish_context.rb +9 -0
  184. data/lib/cutaneous/renderer.rb +122 -0
  185. data/lib/cutaneous/request_context.rb +8 -0
  186. data/lib/cutaneous/second_pass_parser.rb +23 -0
  187. data/lib/cutaneous/second_pass_renderer.rb +18 -0
  188. data/lib/cutaneous.rb +47 -0
  189. data/lib/sequel/plugins/content_table_inheritance.rb +196 -0
  190. data/lib/sequel/plugins/yajl_serialization.rb +154 -0
  191. data/lib/spontaneous/application/feature.rb +9 -0
  192. data/lib/spontaneous/application/plugin.rb +13 -0
  193. data/lib/spontaneous/application.rb +8 -0
  194. data/lib/spontaneous/box.rb +232 -0
  195. data/lib/spontaneous/box_style.rb +64 -0
  196. data/lib/spontaneous/change.rb +107 -0
  197. data/lib/spontaneous/cli/adapter.rb +13 -0
  198. data/lib/spontaneous/cli/base.rb +184 -0
  199. data/lib/spontaneous/cli/console.rb +0 -0
  200. data/lib/spontaneous/cli/media.rb +13 -0
  201. data/lib/spontaneous/cli/server.rb +50 -0
  202. data/lib/spontaneous/cli/site.rb +46 -0
  203. data/lib/spontaneous/cli/sync.rb +42 -0
  204. data/lib/spontaneous/cli/tasks.rb +9 -0
  205. data/lib/spontaneous/cli.rb +83 -0
  206. data/lib/spontaneous/collections/box_set.rb +56 -0
  207. data/lib/spontaneous/collections/change_set.rb +43 -0
  208. data/lib/spontaneous/collections/entry_set.rb +83 -0
  209. data/lib/spontaneous/collections/field_set.rb +53 -0
  210. data/lib/spontaneous/collections/prototype_set.rb +131 -0
  211. data/lib/spontaneous/collections/style_set.rb +13 -0
  212. data/lib/spontaneous/config.rb +156 -0
  213. data/lib/spontaneous/constants.rb +24 -0
  214. data/lib/spontaneous/content.rb +113 -0
  215. data/lib/spontaneous/content_query.rb +17 -0
  216. data/lib/spontaneous/errors.rb +48 -0
  217. data/lib/spontaneous/extensions/array.rb +18 -0
  218. data/lib/spontaneous/extensions/class.rb +17 -0
  219. data/lib/spontaneous/extensions/hash.rb +18 -0
  220. data/lib/spontaneous/extensions/json.rb +26 -0
  221. data/lib/spontaneous/extensions/kernel.rb +7 -0
  222. data/lib/spontaneous/extensions/object.rb +30 -0
  223. data/lib/spontaneous/extensions/object_space.rb +12 -0
  224. data/lib/spontaneous/extensions/string.rb +44 -0
  225. data/lib/spontaneous/facet.rb +47 -0
  226. data/lib/spontaneous/field_types/date_field.rb +12 -0
  227. data/lib/spontaneous/field_types/field.rb +252 -0
  228. data/lib/spontaneous/field_types/image_field.rb +329 -0
  229. data/lib/spontaneous/field_types/markdown_field.rb +37 -0
  230. data/lib/spontaneous/field_types/string_field.rb +14 -0
  231. data/lib/spontaneous/field_types.rb +40 -0
  232. data/lib/spontaneous/generators/page/inline.html.cut +1 -0
  233. data/lib/spontaneous/generators/page/page.html.cut.tt +4 -0
  234. data/lib/spontaneous/generators/page/page.rb.tt +9 -0
  235. data/lib/spontaneous/generators/page.rb +38 -0
  236. data/lib/spontaneous/generators/site/.gitignore +4 -0
  237. data/lib/spontaneous/generators/site/Gemfile.tt +31 -0
  238. data/lib/spontaneous/generators/site/Rakefile.tt +6 -0
  239. data/lib/spontaneous/generators/site/config/back.ru +7 -0
  240. data/lib/spontaneous/generators/site/config/boot.rb +19 -0
  241. data/lib/spontaneous/generators/site/config/database.yml.tt +21 -0
  242. data/lib/spontaneous/generators/site/config/deploy.rb.tt +0 -0
  243. data/lib/spontaneous/generators/site/config/environment.rb.tt +8 -0
  244. data/lib/spontaneous/generators/site/config/environments/development.rb.tt +15 -0
  245. data/lib/spontaneous/generators/site/config/environments/production.rb.tt +5 -0
  246. data/lib/spontaneous/generators/site/config/front.ru +8 -0
  247. data/lib/spontaneous/generators/site/config/user_levels.yml +22 -0
  248. data/lib/spontaneous/generators/site/lib/site.rb.tt +4 -0
  249. data/lib/spontaneous/generators/site/lib/tasks/site.rake.tt +8 -0
  250. data/lib/spontaneous/generators/site/public/css/site.css +0 -0
  251. data/lib/spontaneous/generators/site/public/favicon.ico +0 -0
  252. data/lib/spontaneous/generators/site/public/js/.empty_directory +0 -0
  253. data/lib/spontaneous/generators/site/public/js/site.js +0 -0
  254. data/lib/spontaneous/generators/site/public/robots.txt +0 -0
  255. data/lib/spontaneous/generators/site/schema/.map +1 -0
  256. data/lib/spontaneous/generators/site/schema/page.rb.tt +8 -0
  257. data/lib/spontaneous/generators/site/schema/piece.rb.tt +4 -0
  258. data/lib/spontaneous/generators/site/templates/layouts/standard.html.cut.tt +13 -0
  259. data/lib/spontaneous/generators/site.rb +77 -0
  260. data/lib/spontaneous/generators.rb +23 -0
  261. data/lib/spontaneous/image_size.rb +117 -0
  262. data/lib/spontaneous/json.rb +33 -0
  263. data/lib/spontaneous/layout.rb +15 -0
  264. data/lib/spontaneous/loader.rb +280 -0
  265. data/lib/spontaneous/logger.rb +369 -0
  266. data/lib/spontaneous/media.rb +84 -0
  267. data/lib/spontaneous/page.rb +92 -0
  268. data/lib/spontaneous/page_controller.rb +18 -0
  269. data/lib/spontaneous/page_piece.rb +77 -0
  270. data/lib/spontaneous/paths.rb +30 -0
  271. data/lib/spontaneous/permissions/access_group.rb +50 -0
  272. data/lib/spontaneous/permissions/access_key.rb +35 -0
  273. data/lib/spontaneous/permissions/user.rb +167 -0
  274. data/lib/spontaneous/permissions/user_level.rb +177 -0
  275. data/lib/spontaneous/permissions.rb +55 -0
  276. data/lib/spontaneous/piece.rb +30 -0
  277. data/lib/spontaneous/plugins/aliases.rb +128 -0
  278. data/lib/spontaneous/plugins/allowed_types.rb +173 -0
  279. data/lib/spontaneous/plugins/application/facets.rb +25 -0
  280. data/lib/spontaneous/plugins/application/paths.rb +137 -0
  281. data/lib/spontaneous/plugins/application/render.rb +29 -0
  282. data/lib/spontaneous/plugins/application/serialisation.rb +16 -0
  283. data/lib/spontaneous/plugins/application/state.rb +86 -0
  284. data/lib/spontaneous/plugins/boxes.rb +84 -0
  285. data/lib/spontaneous/plugins/controllers.rb +52 -0
  286. data/lib/spontaneous/plugins/entries.rb +193 -0
  287. data/lib/spontaneous/plugins/entry.rb +51 -0
  288. data/lib/spontaneous/plugins/fields.rb +103 -0
  289. data/lib/spontaneous/plugins/instance_code.rb +18 -0
  290. data/lib/spontaneous/plugins/layouts.rb +87 -0
  291. data/lib/spontaneous/plugins/media.rb +41 -0
  292. data/lib/spontaneous/plugins/page/formats.rb +67 -0
  293. data/lib/spontaneous/plugins/page/request.rb +89 -0
  294. data/lib/spontaneous/plugins/page_search.rb +64 -0
  295. data/lib/spontaneous/plugins/page_tree.rb +25 -0
  296. data/lib/spontaneous/plugins/paths.rb +125 -0
  297. data/lib/spontaneous/plugins/permissions.rb +63 -0
  298. data/lib/spontaneous/plugins/prototypes.rb +84 -0
  299. data/lib/spontaneous/plugins/publishing.rb +255 -0
  300. data/lib/spontaneous/plugins/render.rb +24 -0
  301. data/lib/spontaneous/plugins/schema_hierarchy.rb +76 -0
  302. data/lib/spontaneous/plugins/schema_id.rb +60 -0
  303. data/lib/spontaneous/plugins/schema_title.rb +33 -0
  304. data/lib/spontaneous/plugins/serialisation.rb +67 -0
  305. data/lib/spontaneous/plugins/site/instance.rb +22 -0
  306. data/lib/spontaneous/plugins/site/map.rb +19 -0
  307. data/lib/spontaneous/plugins/site/publishing.rb +74 -0
  308. data/lib/spontaneous/plugins/site/revisions.rb +28 -0
  309. data/lib/spontaneous/plugins/site/selectors.rb +41 -0
  310. data/lib/spontaneous/plugins/site_map.rb +34 -0
  311. data/lib/spontaneous/plugins/styles.rb +119 -0
  312. data/lib/spontaneous/plugins/supertype.rb +11 -0
  313. data/lib/spontaneous/plugins/visibility.rb +151 -0
  314. data/lib/spontaneous/plugins.rb +20 -0
  315. data/lib/spontaneous/prototypes/box_prototype.rb +168 -0
  316. data/lib/spontaneous/prototypes/field_prototype.rb +112 -0
  317. data/lib/spontaneous/prototypes/layout_prototype.rb +17 -0
  318. data/lib/spontaneous/prototypes/style_prototype.rb +42 -0
  319. data/lib/spontaneous/proxy_object.rb +12 -0
  320. data/lib/spontaneous/publishing/fire_and_forget.rb +57 -0
  321. data/lib/spontaneous/publishing/immediate.rb +197 -0
  322. data/lib/spontaneous/publishing/threaded.rb +25 -0
  323. data/lib/spontaneous/publishing.rb +10 -0
  324. data/lib/spontaneous/rack/around_back.rb +44 -0
  325. data/lib/spontaneous/rack/around_front.rb +29 -0
  326. data/lib/spontaneous/rack/around_preview.rb +26 -0
  327. data/lib/spontaneous/rack/assets.rb +98 -0
  328. data/lib/spontaneous/rack/back.rb +729 -0
  329. data/lib/spontaneous/rack/front.rb +41 -0
  330. data/lib/spontaneous/rack/http.rb +18 -0
  331. data/lib/spontaneous/rack/media.rb +29 -0
  332. data/lib/spontaneous/rack/public.rb +232 -0
  333. data/lib/spontaneous/rack/reloader.rb +42 -0
  334. data/lib/spontaneous/rack/static.rb +25 -0
  335. data/lib/spontaneous/rack.rb +55 -0
  336. data/lib/spontaneous/render/context.rb +100 -0
  337. data/lib/spontaneous/render/development_renderer.rb +14 -0
  338. data/lib/spontaneous/render/engine.rb +19 -0
  339. data/lib/spontaneous/render/format/html.rb +5 -0
  340. data/lib/spontaneous/render/format.rb +70 -0
  341. data/lib/spontaneous/render/preview_renderer.rb +18 -0
  342. data/lib/spontaneous/render/published_renderer.rb +54 -0
  343. data/lib/spontaneous/render/publishing_renderer.rb +13 -0
  344. data/lib/spontaneous/render/renderer.rb +46 -0
  345. data/lib/spontaneous/render.rb +173 -0
  346. data/lib/spontaneous/revision.rb +7 -0
  347. data/lib/spontaneous/schema/schema_modification.rb +260 -0
  348. data/lib/spontaneous/schema/uid.rb +221 -0
  349. data/lib/spontaneous/schema.rb +295 -0
  350. data/lib/spontaneous/server.rb +65 -0
  351. data/lib/spontaneous/site.rb +87 -0
  352. data/lib/spontaneous/state.rb +53 -0
  353. data/lib/spontaneous/style.rb +144 -0
  354. data/lib/spontaneous/tasks/database.rake +9 -0
  355. data/lib/spontaneous/tasks.rb +5 -0
  356. data/lib/spontaneous/version.rb +6 -0
  357. data/lib/spontaneous.rb +179 -0
  358. data/spontaneous.gemspec.tmpl +66 -0
  359. data/test/disabled/test_slots.rb +287 -0
  360. data/test/experimental/test_formats.rb +92 -0
  361. data/test/experimental/test_plugins.rb +64 -0
  362. data/test/fixtures/application/css/test.less +5 -0
  363. data/test/fixtures/application/js/test.js +1 -0
  364. data/test/fixtures/application/static/favicon.ico +1 -0
  365. data/test/fixtures/application/static/test.html +1 -0
  366. data/test/fixtures/application/views/index.erubis +1 -0
  367. data/test/fixtures/back/public/test.html +1 -0
  368. data/test/fixtures/back/templates/layouts/standard.html.cut +1 -0
  369. data/test/fixtures/config/config/environment.rb +4 -0
  370. data/test/fixtures/config/config/environments/development.rb +13 -0
  371. data/test/fixtures/config/config/environments/production.rb +22 -0
  372. data/test/fixtures/config/config/environments/staging.rb +2 -0
  373. data/test/fixtures/example_application/Gemfile +6 -0
  374. data/test/fixtures/example_application/Gemfile.lock +76 -0
  375. data/test/fixtures/example_application/Rakefile +6 -0
  376. data/test/fixtures/example_application/config/back.rb +15 -0
  377. data/test/fixtures/example_application/config/back.ru +8 -0
  378. data/test/fixtures/example_application/config/back.yml +8 -0
  379. data/test/fixtures/example_application/config/boot.rb +16 -0
  380. data/test/fixtures/example_application/config/database.yml +24 -0
  381. data/test/fixtures/example_application/config/environment.rb +4 -0
  382. data/test/fixtures/example_application/config/environments/development.rb +16 -0
  383. data/test/fixtures/example_application/config/environments/production.rb +21 -0
  384. data/test/fixtures/example_application/config/environments/staging.rb +1 -0
  385. data/test/fixtures/example_application/config/front.rb +8 -0
  386. data/test/fixtures/example_application/config/front.ru +8 -0
  387. data/test/fixtures/example_application/config/front.yml +8 -0
  388. data/test/fixtures/example_application/config/schema.yml +48 -0
  389. data/test/fixtures/example_application/config/unicorn.rb +1 -0
  390. data/test/fixtures/example_application/config/user_levels.yml +19 -0
  391. data/test/fixtures/example_application/public/css/test.css +0 -0
  392. data/test/fixtures/example_application/public/favicon.ico +1 -0
  393. data/test/fixtures/example_application/public/js/test.js +0 -0
  394. data/test/fixtures/example_application/public/test.html +1 -0
  395. data/test/fixtures/example_application/schema/client_project.rb +18 -0
  396. data/test/fixtures/example_application/schema/client_projects.rb +8 -0
  397. data/test/fixtures/example_application/schema/home_page.rb +22 -0
  398. data/test/fixtures/example_application/schema/info_page.rb +13 -0
  399. data/test/fixtures/example_application/schema/inline_image.rb +11 -0
  400. data/test/fixtures/example_application/schema/page.rb +4 -0
  401. data/test/fixtures/example_application/schema/piece.rb +3 -0
  402. data/test/fixtures/example_application/schema/project.rb +21 -0
  403. data/test/fixtures/example_application/schema/project_image.rb +18 -0
  404. data/test/fixtures/example_application/schema/projects_page.rb +12 -0
  405. data/test/fixtures/example_application/schema/text.rb +8 -0
  406. data/test/fixtures/example_application/templates/client_project/images.html.cut +1 -0
  407. data/test/fixtures/example_application/templates/client_project.html.cut +4 -0
  408. data/test/fixtures/example_application/templates/client_projects.html.cut +6 -0
  409. data/test/fixtures/example_application/templates/info_page/inline.html.cut +0 -0
  410. data/test/fixtures/example_application/templates/inline_image.html.cut +1 -0
  411. data/test/fixtures/example_application/templates/layouts/home.html.cut +15 -0
  412. data/test/fixtures/example_application/templates/layouts/info.html.cut +3 -0
  413. data/test/fixtures/example_application/templates/layouts/project.html.cut +13 -0
  414. data/test/fixtures/example_application/templates/layouts/projects.html.cut +11 -0
  415. data/test/fixtures/example_application/templates/layouts/standard.html.cut +0 -0
  416. data/test/fixtures/example_application/templates/project/inline.html.cut +5 -0
  417. data/test/fixtures/example_application/templates/project.html.cut +5 -0
  418. data/test/fixtures/example_application/templates/project_image.html.cut +1 -0
  419. data/test/fixtures/example_application/templates/text.html.cut +1 -0
  420. data/test/fixtures/images/rose.greyscale.jpg +0 -0
  421. data/test/fixtures/images/rose.jpg +0 -0
  422. data/test/fixtures/images/size.gif +0 -0
  423. data/test/fixtures/images/size.jpg +0 -0
  424. data/test/fixtures/images/size.png24 +0 -0
  425. data/test/fixtures/images/size.png8 +0 -0
  426. data/test/fixtures/layouts/layouts/custom1.html.cut +1 -0
  427. data/test/fixtures/layouts/layouts/custom1.pdf.cut +0 -0
  428. data/test/fixtures/layouts/layouts/custom1.xml.cut +0 -0
  429. data/test/fixtures/layouts/layouts/custom2.html.cut +1 -0
  430. data/test/fixtures/layouts/layouts/custom3.html.cut +0 -0
  431. data/test/fixtures/layouts/layouts/standard.html.cut +1 -0
  432. data/test/fixtures/media/101/003/rose.jpg +0 -0
  433. data/test/fixtures/permissions/config/user_levels.yml +9 -0
  434. data/test/fixtures/permissions/media/image.jpg +0 -0
  435. data/test/fixtures/plugins/schema_plugin/init.rb +1 -0
  436. data/test/fixtures/plugins/schema_plugin/schema/external.rb +5 -0
  437. data/test/fixtures/plugins/schema_plugin/templates/external.html.cut +1 -0
  438. data/test/fixtures/plugins/schema_plugin/templates/from_plugin.html.cut +0 -0
  439. data/test/fixtures/plugins/schema_plugin/templates/layouts/from_plugin.html.cut +0 -0
  440. data/test/fixtures/public/templates/layouts/default.html.cut +1 -0
  441. data/test/fixtures/public/templates/layouts/default.pdf.cut +1 -0
  442. data/test/fixtures/public/templates/layouts/default.rss.cut +1 -0
  443. data/test/fixtures/public/templates/layouts/dynamic.html.cut +1 -0
  444. data/test/fixtures/public/templates/layouts/standard.html.cut +0 -0
  445. data/test/fixtures/schema/before.yml +24 -0
  446. data/test/fixtures/schema/resolvable.yml +12 -0
  447. data/test/fixtures/schema/schema.yml +7 -0
  448. data/test/fixtures/serialisation/class_hash.yaml.erb +53 -0
  449. data/test/fixtures/serialisation/root_hash.yaml.erb +184 -0
  450. data/test/fixtures/sharding/rose.jpg +0 -0
  451. data/test/fixtures/sharding/xaa +0 -0
  452. data/test/fixtures/sharding/xab +0 -0
  453. data/test/fixtures/sharding/xac +0 -0
  454. data/test/fixtures/sharding/xad +0 -0
  455. data/test/fixtures/sharding/xae +0 -0
  456. data/test/fixtures/sharding/xaf +0 -0
  457. data/test/fixtures/sharding/xag +0 -0
  458. data/test/fixtures/styles/box_a/runny.html.cut +0 -0
  459. data/test/fixtures/styles/box_a.html.cut +1 -0
  460. data/test/fixtures/styles/named2.html.cut +1 -0
  461. data/test/fixtures/styles/orange/apple.html.cut +1 -0
  462. data/test/fixtures/styles/template_class/named1.html.cut +1 -0
  463. data/test/fixtures/styles/template_class/results.html.cut +1 -0
  464. data/test/fixtures/styles/template_class/walky.html.cut +0 -0
  465. data/test/fixtures/styles/template_class.epub.cut +0 -0
  466. data/test/fixtures/styles/template_class.html.cut +1 -0
  467. data/test/fixtures/styles/template_class.pdf.cut +0 -0
  468. data/test/fixtures/styles/template_sub_class1.html.cut +1 -0
  469. data/test/fixtures/templates/aliases/a/a_style.html.cut +0 -0
  470. data/test/fixtures/templates/aliases/a/page.html.cut +0 -0
  471. data/test/fixtures/templates/aliases/a_alias/a_alias_style.html.cut +0 -0
  472. data/test/fixtures/templates/aliases/layouts/b.html.cut +1 -0
  473. data/test/fixtures/templates/aliases/layouts/b_alias.html.cut +1 -0
  474. data/test/fixtures/templates/aliases/layouts/c_alias.html.cut +1 -0
  475. data/test/fixtures/templates/boxes/blank_content/things.html.cut +1 -0
  476. data/test/fixtures/templates/boxes/my_box_class/christy.html.cut +1 -0
  477. data/test/fixtures/templates/boxes/thangs.html.cut +1 -0
  478. data/test/fixtures/templates/boxes/with_template_box.html.cut +1 -0
  479. data/test/fixtures/templates/content/include.html.cut +1 -0
  480. data/test/fixtures/templates/content/include_dir.html.cut +1 -0
  481. data/test/fixtures/templates/content/included.epub.cut +1 -0
  482. data/test/fixtures/templates/content/included.html.cut +1 -0
  483. data/test/fixtures/templates/content/partial/included.html.cut +1 -0
  484. data/test/fixtures/templates/content/preprocess.html.cut +1 -0
  485. data/test/fixtures/templates/content/second.html.cut +1 -0
  486. data/test/fixtures/templates/content/template.epub.cut +1 -0
  487. data/test/fixtures/templates/content/template.html.cut +1 -0
  488. data/test/fixtures/templates/default_style_class.html.cut +1 -0
  489. data/test/fixtures/templates/direct.html.cut +1 -0
  490. data/test/fixtures/templates/extended/grandparent.html.cut +10 -0
  491. data/test/fixtures/templates/extended/main.html.cut +6 -0
  492. data/test/fixtures/templates/extended/parent.html.cut +10 -0
  493. data/test/fixtures/templates/layouts/entries.html.cut +7 -0
  494. data/test/fixtures/templates/layouts/page_style.html.cut +1 -0
  495. data/test/fixtures/templates/layouts/params.html.cut +1 -0
  496. data/test/fixtures/templates/layouts/preview_render.html.cut +2 -0
  497. data/test/fixtures/templates/layouts/standard_page.html.cut +1 -0
  498. data/test/fixtures/templates/layouts/subdir_style.html.cut +1 -0
  499. data/test/fixtures/templates/layouts/template_params.html.cut +1 -0
  500. data/test/fixtures/templates/page_class/inline_style.html.cut +1 -0
  501. data/test/fixtures/templates/preview_render/inline.html.cut +0 -0
  502. data/test/fixtures/templates/publishing/layouts/dynamic.html.cut +1 -0
  503. data/test/fixtures/templates/publishing/layouts/static.html.cut +1 -0
  504. data/test/fixtures/templates/template_class/anonymous_style.html.cut +4 -0
  505. data/test/fixtures/templates/template_class/another_template.html.cut +0 -0
  506. data/test/fixtures/templates/template_class/complex_template.html.cut +6 -0
  507. data/test/fixtures/templates/template_class/complex_template.pdf.cut +6 -0
  508. data/test/fixtures/templates/template_class/default_template_style.html.cut +4 -0
  509. data/test/fixtures/templates/template_class/images_with_template.html.cut +5 -0
  510. data/test/fixtures/templates/template_class/slots_template.html.cut +5 -0
  511. data/test/fixtures/templates/template_class/slots_template.pdf.cut +5 -0
  512. data/test/fixtures/templates/template_class/this_template.epub.cut +1 -0
  513. data/test/fixtures/templates/template_class/this_template.html.cut +1 -0
  514. data/test/fixtures/templates/template_class/this_template.pdf.cut +1 -0
  515. data/test/fixtures/templates/with_default_style_class.html.cut +1 -0
  516. data/test/functional/test_application.rb +176 -0
  517. data/test/functional/test_back.rb +902 -0
  518. data/test/functional/test_front.rb +571 -0
  519. data/test/javascript/test_dom.rb +94 -0
  520. data/test/javascript/test_markdown.rb +97 -0
  521. data/test/slow/test_publishing.rb +987 -0
  522. data/test/slow/test_visibility.rb +250 -0
  523. data/test/support/custom_matchers.rb +77 -0
  524. data/test/support/timing.rb +23 -0
  525. data/test/test_helper.rb +164 -0
  526. data/test/test_javascript.rb +34 -0
  527. data/test/ui/test_page_editing.rb +167 -0
  528. data/test/ui_helper.rb +114 -0
  529. data/test/unit/test_alias.rb +254 -0
  530. data/test/unit/test_authentication.rb +510 -0
  531. data/test/unit/test_boxes.rb +497 -0
  532. data/test/unit/test_config.rb +156 -0
  533. data/test/unit/test_content.rb +221 -0
  534. data/test/unit/test_content_inheritance.rb +103 -0
  535. data/test/unit/test_extensions.rb +14 -0
  536. data/test/unit/test_fields.rb +392 -0
  537. data/test/unit/test_generators.rb +97 -0
  538. data/test/unit/test_image_size.rb +25 -0
  539. data/test/unit/test_images.rb +265 -0
  540. data/test/unit/test_layouts.rb +111 -0
  541. data/test/unit/test_logger.rb +80 -0
  542. data/test/unit/test_media.rb +70 -0
  543. data/test/unit/test_page.rb +244 -0
  544. data/test/unit/test_permissions.rb +834 -0
  545. data/test/unit/test_piece.rb +80 -0
  546. data/test/unit/test_prototype_set.rb +192 -0
  547. data/test/unit/test_prototypes.rb +102 -0
  548. data/test/unit/test_render.rb +359 -0
  549. data/test/unit/test_schema.rb +1009 -0
  550. data/test/unit/test_serialisation.rb +215 -0
  551. data/test/unit/test_site.rb +145 -0
  552. data/test/unit/test_structure.rb +85 -0
  553. data/test/unit/test_styles.rb +417 -0
  554. data/test/unit/test_templates.rb +224 -0
  555. data/test/unit/test_type_hierarchy.rb +28 -0
  556. metadata +1017 -0
@@ -0,0 +1,1606 @@
1
+ @import "definitions";
2
+
3
+ @mixin image-overlay {
4
+ opacity: 0.7;
5
+ color: black;
6
+ padding-left: 4px;
7
+ padding-top: 2px;
8
+ background-color: #efefef;
9
+ }
10
+
11
+
12
+
13
+ @mixin down-arrow($image: "/@spontaneous/static/orange-down-arrow.png", $height: 7px) {
14
+ position: absolute;
15
+ display: block;
16
+ left: 0;
17
+ right: 0;
18
+ bottom: 0 - $height;
19
+ height: $height;
20
+ background: url($image) 50% 0 no-repeat;
21
+ }
22
+
23
+ .preview-label {
24
+ @extend .interface;
25
+ color: #333333;
26
+ }
27
+
28
+ .preview-value {
29
+ font-size: $field-preview-font-size;
30
+ font-family: $content-font-family;
31
+ line-height: $field-preview-font-size + 2;
32
+ color: #666666;
33
+ font-weight: normal;
34
+ }
35
+
36
+ .container-padding {
37
+ padding-left: $container-padding;
38
+ padding-right: $container-padding;
39
+ }
40
+
41
+
42
+ img.missing {
43
+ width: 100%;
44
+ height: 50px;
45
+ background: url("/@spontaneous/static/missing.png") 50% 50% no-repeat;
46
+ border: none;
47
+ // display: none;
48
+ }
49
+
50
+ .clear {
51
+ clear: both;
52
+ }
53
+
54
+
55
+ #top {
56
+ @extend .container-padding;
57
+ @extend .controls-gradient;
58
+ @extend .clearfix;
59
+ @include display-box;
60
+ @include box-align(center);
61
+ position: fixed;
62
+ height: 31px;
63
+ top: 0;
64
+ right: 0;
65
+ left: 0;
66
+ #navigation {
67
+ @include box-flex;
68
+ font-size: 11px;
69
+ font-weight: bold;
70
+ color: #999999;
71
+ width: 100%;
72
+ li {
73
+ padding-left: 10px;
74
+ padding-right: 15px;
75
+ background: url("/@spontaneous/static/location-arrow.png") right 0 no-repeat;
76
+ float: left;
77
+ display: block;
78
+ font-weight: bold;
79
+ select {
80
+ @include box-sizing;
81
+ @extend .interface;
82
+ text-transform: none;
83
+ font-size: 11px;
84
+ -webkit-appearance: none;
85
+ cursor: pointer;
86
+ display: block;
87
+ background: url("/@spontaneous/static/select-arrow.png") 95% 50% no-repeat;
88
+ border: none;
89
+ outline: none;
90
+ position: relative;
91
+ padding-top: 0px;
92
+ padding-right: 25px;
93
+ height: 31px;
94
+ color: #888888;
95
+ font-weight: bold;
96
+ width: 100%;
97
+ }
98
+ select.unselected {
99
+ color: #555555;
100
+ font-weight: normal;
101
+ font-style: italic;
102
+ max-width: 80px;
103
+ }
104
+ a {
105
+ @include box-sizing;
106
+ cursor: pointer;
107
+ color: #888888;
108
+ height: 31px;
109
+ padding-top: 9px;
110
+ display: block;
111
+ background: url("/@spontaneous/static/select-arrow.png") right 50% no-repeat;
112
+ padding-right: 20px;
113
+ }
114
+ a:hover, select:hover {
115
+ color: white;
116
+ }
117
+ }
118
+ li.root a {
119
+ background-image: none;
120
+ }
121
+ li:first-child {
122
+ background-image: url("/@spontaneous/static/spontaneous.png"), url("/@spontaneous/static/location-arrow.png");
123
+ background-position: 0 70%, right 0;
124
+ background-repeat: no-repeat;
125
+ padding-right: 12px;
126
+ a {
127
+ padding-right: 28px;
128
+ }
129
+ }
130
+ }
131
+ #switch-mode, #open-publish {
132
+ @include button;
133
+ @include display-box;
134
+ @include box-orient(vertical);
135
+ @include box-align(center);
136
+ margin: 0;
137
+ width: 64px;
138
+ }
139
+ #open-publish {
140
+ position: relative;
141
+ margin-right: $unit;
142
+ #publish-progress {
143
+ position: absolute;
144
+ left: 4px;
145
+ top: 1px;
146
+ }
147
+ }
148
+ #open-publish.progress {
149
+ padding-left: 20px;
150
+ padding-right: 20px;
151
+ width: 124px;
152
+ @include button-color(#666666);
153
+ color: #999999;
154
+ }
155
+ }
156
+
157
+ #content {
158
+ position: fixed;
159
+ overflow: auto;
160
+ top: 31px;
161
+ right: 0;
162
+ bottom: 0px;
163
+ left: 0;
164
+ #data_pane, #preview_pane {
165
+ border: none;
166
+ display: block;
167
+ position: absolute;
168
+ left: 0;
169
+ right: 0;
170
+ top: 0;
171
+ bottom: 0;
172
+ width: 100%;
173
+ height: 100%;
174
+ }
175
+ }
176
+
177
+ #page-content {
178
+ #page-info {
179
+ @extend .container-padding;
180
+ @include vertical-gradient(#3a3a3a, #222222);
181
+ height: 64px - 10px;
182
+ padding-top: 10px;
183
+ position: relative;
184
+ h1, h3 {
185
+ position: relative;
186
+ }
187
+ h1 {
188
+ font-family: $headline-font-family;
189
+ font-weight: 100;
190
+ color: white;
191
+ font-size: 24px;
192
+ line-height: 21px;
193
+ span {
194
+ color: #888888;
195
+ }
196
+ }
197
+ .path, .path h3, .path h3.developer a {
198
+ @extend .interface;
199
+ cursor: pointer;
200
+ color: #c1c1c1;
201
+ font-size: 11px;
202
+ line-height: 12px;
203
+ text-transform: none;
204
+ }
205
+ .path .uid, .path .developer {
206
+ // @include rounded;
207
+ // background-color: rgba(0, 0, 0, 0.4);
208
+ // padding: $unit/2;
209
+ margin-left: $unit*4;
210
+ opacity: 0.5;
211
+ &.missing {
212
+ opacity: 0.5;
213
+ }
214
+ }
215
+ & > .path {
216
+ @include display-box;
217
+ position: absolute;
218
+ bottom: 12px;
219
+ }
220
+ .path .edit {
221
+ @include display-box;
222
+ @include box-orient(horizontal);
223
+ @include box-align(center);
224
+ .input-error {
225
+ display: block;
226
+ position: relative;
227
+ top: 0;
228
+ vertical-align: top;
229
+ margin-left: 8px;
230
+ input[type="text"], span {
231
+ height: 16px;
232
+ padding: 4px;
233
+ }
234
+ input[type="text"] {
235
+ @include rounded;
236
+ font-weight: bold;
237
+ width: 400px;
238
+ border: none;
239
+ outline: none;
240
+ vertical-align: top;
241
+ }
242
+ span {
243
+ @include rounded-right;
244
+ padding-left: 8px;
245
+ padding-right: 8px;
246
+ background-color: $error;
247
+ position: absolute;
248
+ right: -1px;
249
+ top: 0;
250
+ color: white;
251
+ }
252
+ }
253
+ input[type="text"].error {
254
+ color: $error;
255
+ }
256
+ .input-error.uid-input {
257
+ input[type="text"] {
258
+ padding-left: 1.05em;
259
+ width: 200px;
260
+ }
261
+ }
262
+ .button {
263
+ display: block;
264
+ margin-left: 8px;
265
+ padding-left: 32px;
266
+ padding-right: 32px;
267
+ }
268
+ .button.cancel {
269
+ padding-left: 10px;
270
+ padding-right: 10px;
271
+ }
272
+ span, a.path {
273
+ display: block;
274
+ position: relative;
275
+ }
276
+ a.path {
277
+ color: #c1c1c1;
278
+ margin-right: 1px;
279
+ &:hover {
280
+ color: white;
281
+ }
282
+ }
283
+ span {
284
+ color: #bbbbbb;
285
+ margin-right: 1px;
286
+ }
287
+ .hash {
288
+ color: #666;
289
+ position: absolute;
290
+ left: 4px;
291
+ font-weight: bold;
292
+ padding-top: ($unit/2)+1;
293
+ }
294
+ }
295
+ .path h3:hover {
296
+ color: white;
297
+ }
298
+ .buttons {
299
+ position: absolute;
300
+ right: $container-padding;
301
+ top: 16px;
302
+ .button.publish {
303
+ width: 120px;
304
+ height: 32px;
305
+ padding-top: 8px;
306
+ background-color: #666666;
307
+ font-size: 12px;
308
+ position: relative;
309
+ }
310
+ .button.publish:hover {
311
+ background-color: $highlight;
312
+ }
313
+ .status {
314
+ @extend .interface;
315
+ vertical-align: top;
316
+ display: inline-block;
317
+ text-transform: none;
318
+ font-weight: normal;
319
+ margin: 0;
320
+ padding: 0;
321
+ color: #666666;
322
+ font-size: 10px;
323
+ line-height: 11px;
324
+ position: relative;
325
+ top: 5px;
326
+ margin-right: 8px;
327
+ strong {
328
+ display: block;
329
+ text-transform: uppercase;
330
+ }
331
+ }
332
+ }
333
+ }
334
+ #page-fields {
335
+ .fields-preview {
336
+ @extend .container-padding;
337
+ padding-top: 8px;
338
+ padding-bottom: 8px;
339
+ position: relative;
340
+ .overlay {
341
+ position: absolute;
342
+ left: 0;
343
+ right: 0;
344
+ top: 0;
345
+ bottom: 0;
346
+ border-style: solid;
347
+ border-width: 2px;
348
+ border-color: transparent;
349
+ }
350
+ &.hover {
351
+ .overlay {
352
+ border-color: $action;
353
+ }
354
+ }
355
+ }
356
+ }
357
+ }
358
+
359
+ .fields-preview {
360
+ @extend .clearfix;
361
+ @include box-sizing;
362
+ background-color: #fff;
363
+ // border: solid 3px transparent;
364
+ cursor: pointer;
365
+ }
366
+
367
+ // .fields-preview:hover {
368
+ // border-color: $action !important;
369
+ //}
370
+
371
+ .fields-preview .value p {
372
+ margin: 0 0 8px 0;
373
+ padding: 0;
374
+ }
375
+
376
+ .fields-preview .value p:last-child {
377
+ margin-bottom: 0;
378
+ }
379
+
380
+ .fields-preview .fields-preview-text {
381
+ @include box-sizing;
382
+ // border: dotted 1px transparent;
383
+ }
384
+ .fields-preview.hover .fields-preview-text {
385
+ // border: dotted 1px $action;
386
+ }
387
+ .fields-preview-text {
388
+ &.empty {
389
+ display: none;
390
+ }
391
+ @include box-sizing;
392
+ width: $field-text-preview-width;
393
+ float: left;
394
+ padding-right: 100px;
395
+ margin-right: 16px;
396
+ li {
397
+ @extend .clearfix;
398
+ border-bottom: solid 1px #cccccc;
399
+ padding-top: 3px;
400
+ padding-bottom: 3px;
401
+ display: block;
402
+ line-height: $field-preview-font-size + 2;
403
+ font-size: $field-preview-font-size;
404
+ font-family: $content-font-family;
405
+ float: left;
406
+ width: 100%;
407
+ position: relative;
408
+ padding-left: 100px;
409
+ .name, .value {
410
+ float: left;
411
+ }
412
+ }
413
+ li:last-child {
414
+ border-bottom: none;
415
+ }
416
+ .name {
417
+ @extend .preview-label;
418
+ @include box-sizing;
419
+ width: 100px;
420
+ right: 100px;
421
+ margin-left: -100px;
422
+ padding-right: $unit;
423
+ }
424
+ .value {
425
+ @extend .preview-value;
426
+ a {
427
+ color: $highlight;
428
+ }
429
+ h1, h2 {
430
+ font-size: 1.2em;
431
+ font-weight: bold;
432
+ margin-bottom: 1em;
433
+ }
434
+ h2 {
435
+ font-size: 1em;
436
+ }
437
+ ul, ol {
438
+ display: block;
439
+ padding-left: 1.4em;
440
+ margin-bottom: $unit;
441
+
442
+ li {
443
+ display: list-item;
444
+ list-style-position: outside;
445
+ border: none;
446
+ margin: 0;
447
+ padding: 0;
448
+ float: none;
449
+ }
450
+ }
451
+ ul {
452
+ list-style-type: disc !important;
453
+ }
454
+ ol {
455
+ list-style-type: decimal !important;
456
+ }
457
+ }
458
+ }
459
+
460
+ .fields-preview-image {
461
+ &.empty {
462
+ display: none;
463
+ }
464
+ @extend .clearfix;
465
+ float: left;
466
+ width: $field-image-preview-width;
467
+ li {
468
+ float: left;
469
+ display: block;
470
+ margin-right: 4px;
471
+ margin-bottom: 4px;
472
+ position: relative;
473
+ .name {
474
+ @extend .preview-label;
475
+ @include image-overlay;
476
+ @include box-sizing;
477
+ position: absolute;
478
+ left: 0;
479
+ right: 0;
480
+ bottom: 0;
481
+ top: auto;
482
+ height: 16px;
483
+ z-index: 4;
484
+ }
485
+ .value {
486
+ @include rounded;
487
+ background-color: #efefef;
488
+ max-height: 90px;
489
+ min-height: 45px;
490
+ min-width: 90px;
491
+ cursor: pointer;
492
+ text-align: center;
493
+ position: relative;
494
+ .waiting {
495
+ position: absolute;
496
+ display: block;
497
+ left: 0;
498
+ right: 0;
499
+ text-align: center;
500
+ top: 30%;
501
+ height: $unit*2;
502
+ z-index: 3;
503
+ }
504
+ .image-drop {
505
+ @include rounded;
506
+ z-index: 100;
507
+ position: absolute;
508
+ top: 0;
509
+ right: 0;
510
+ bottom: 0;
511
+ left: 0;
512
+ text-align: center;
513
+ .drop-upload-outer {
514
+ @include rounded(4px);
515
+ border: solid 1px white;
516
+ position: absolute;
517
+ margin: 4px;
518
+ height: 6px;
519
+ left: 0;
520
+ right: 0;
521
+ bottom: 50%;
522
+ padding: 0 1px;
523
+ .drop-upload-inner {
524
+ position: relative;
525
+ margin-right: 2px;
526
+ top: 1px;
527
+ @include rounded(3px);
528
+ background-color: white;
529
+ height: 4px;
530
+ }
531
+ }
532
+ }
533
+ .image-drop.drop-active {
534
+ border: solid 2px $action;
535
+ cursor: copy;
536
+ }
537
+ .image-drop.drop-invalid {
538
+ cursor: no-drop;
539
+ }
540
+ .image-drop.uploading {
541
+ background-color: rgba(0, 0, 0, 0.5);
542
+ }
543
+ img {
544
+ @extend .no-select;
545
+ @include rounded;
546
+ position: relative;
547
+ max-height: 90px;
548
+ }
549
+ img:hover {
550
+
551
+ }
552
+ }
553
+ }
554
+ }
555
+
556
+ .fields-preview-text + .fields-preview-image {}
557
+
558
+ #page-slots.slots {
559
+ .slot-tabs {
560
+ @extend .clearfix;
561
+ height: 32px;
562
+ vertical-align: top;
563
+ @include vertical-gradient(#666666, #4d4d4d);
564
+ li {
565
+ @include box-sizing;
566
+ @extend .interface;
567
+ font-size: 11px;
568
+ color: #dddddd;
569
+ display: block;
570
+ float: left;
571
+ height: 100%;
572
+ padding-left: 16px;
573
+ width: 160px;
574
+ padding-top: 9px;
575
+ cursor: pointer;
576
+ border-left: solid 1px transparent;
577
+ border-right: solid 1px #494949;
578
+ position: relative;
579
+ .down {
580
+ display: none;
581
+ }
582
+ }
583
+ li:hover, li.active {
584
+ @include vertical-gradient($highlight + #111111, $highlight);
585
+ background-color: $highlight;
586
+ color: white;
587
+ border-right-color: $highlight;
588
+ .down {
589
+ @include down-arrow("/@spontaneous/static/orange-down-arrow.png", 7px);
590
+ z-index: 1;
591
+ }
592
+ }
593
+ li:first-child {
594
+ padding-left: $container-padding;
595
+ width: 160px + $container-padding;
596
+ &.active {
597
+ .down {
598
+ padding-left: $container-padding;
599
+ }
600
+ }
601
+ }
602
+ li.active + li:hover {
603
+ border-left-color: $highlight - #151515;
604
+ }
605
+ }
606
+ .fields-preview.depth-box {
607
+ @extend .container-padding;
608
+ @include vertical-gradient(#eeeeee, #dddddd);
609
+ @include display-box;
610
+ position:relative;
611
+ padding-top: 12px;
612
+ padding-bottom: 5px;
613
+ .overlay {
614
+ position: absolute;
615
+ left: 0;
616
+ right: 0;
617
+ top: 0;
618
+ bottom: 0;
619
+ border-style: solid;
620
+ border-width: 2px;
621
+ border-color: transparent;
622
+ }
623
+ &.hover {
624
+ .overlay {
625
+ border-color: $action;
626
+ }
627
+ }
628
+ &:hover {
629
+ // border-top-color: $action;
630
+ // border-bottom-color: $action;
631
+ }
632
+ .value {
633
+ color: #555555;
634
+ }
635
+ .fields-preview-text {
636
+ @include box-flex;
637
+ width: 60%;
638
+ }
639
+ .fields-preview-image {
640
+ @include box-flex;
641
+ width: 40%;
642
+ }
643
+ }
644
+ .slot-addable {
645
+ @extend .container-padding;
646
+ @include box-sizing;
647
+ @include vertical-gradient(#dddddd, #eeeeee);
648
+ border-top: solid 1px #cccccc;
649
+ height: 40px;
650
+ padding-top: 10px;
651
+ position: relative;
652
+ a {
653
+ @include button;
654
+ padding-right: 16px;
655
+ padding-left: 16px;
656
+ }
657
+ // a:hover {
658
+ // background-color: $highlight;
659
+ // color: white;
660
+ // }
661
+ a + a {
662
+ margin-left: 8px;
663
+ }
664
+ .alias {
665
+ font-style: italic;
666
+ }
667
+ .down {
668
+ @include down-arrow("/@spontaneous/static/slot-down-arrow.png", 18px);
669
+ }
670
+ }
671
+ .slot-addable.drop-active {
672
+ outline: solid 2px $action;
673
+ }
674
+ }
675
+
676
+ #page-slots.slots .slot-entries {
677
+ padding-top: 32px;
678
+ .fields-preview {
679
+ @include rounded;
680
+ padding: 4px;
681
+ background: none;
682
+ background-color: white;
683
+ }
684
+ .entry-wrap {
685
+ @extend .clearfix;
686
+ position: relative;
687
+ margin-left: $container-padding;
688
+ margin-right: $container-padding;
689
+
690
+ .entry-contents {
691
+ @include rounded;
692
+ background-color: gray;
693
+ padding: 1px;
694
+ padding-top: $title-bar-height + 4px;
695
+ }
696
+ .entry-spacer {
697
+ height: $container-padding/2;
698
+ }
699
+ .entry-inner {
700
+ @extend .clearfix;
701
+ @include rounded;
702
+ background-color: gray;
703
+ // padding: $unit;
704
+ position: relative;
705
+ }
706
+ .title-bar {
707
+ @include vertical-gradient(gray + #111111, gray);
708
+ @include box-sizing;
709
+ @include rounded-top;
710
+ @extend .interface;
711
+ color: rgba(255, 255, 255, 0.4);
712
+ padding-top: 4px;
713
+ padding-left: $unit/2 + 2px;
714
+ text-transform: none;
715
+ font-weight: normal;
716
+ cursor: ns-resize;
717
+ position: absolute;
718
+ left: 0;
719
+ right: 0;
720
+ top: 0;
721
+ height: $title-bar-height;
722
+ .actions {
723
+ @include rounded-bottom;
724
+ background-color: rgba(0, 0, 0, 0.2);
725
+ position: absolute;
726
+ top: 0;
727
+ right: $unit/2;
728
+ a {
729
+ background: url("/@spontaneous/static/item-buttons.png") 0 0 no-repeat;
730
+ display: inline-block;
731
+ width: 15px;
732
+ height: 15px;
733
+ position: relative;
734
+ top: 4px;
735
+ cursor: pointer;
736
+ padding: 0 10px;
737
+ }
738
+ .delete {
739
+ background-position: -54px 0;
740
+ }
741
+ .delete:hover {
742
+ background-position: -54px -20px;
743
+ }
744
+ .visibility {
745
+ background-position: -25px 0;
746
+ }
747
+ .visibility:hover {
748
+ background-position: -25px -20px;
749
+ }
750
+ }
751
+ }
752
+ .dialogue {
753
+ @include rounded-bottom;
754
+ @extend .shadow;
755
+ position: absolute;
756
+ top: $title-bar-height + 4;
757
+ left: 4px;
758
+ right: 4px;
759
+ background-color: rgba(0, 0, 0, 0.9);
760
+ z-index: 30;
761
+ padding: $container-padding / 2;
762
+ color: white;
763
+ .buttons {
764
+ a {
765
+ @include button(#cccccc);
766
+ // background-color: ;
767
+ padding-left: 16px;
768
+ padding-right: 16px;
769
+ }
770
+ a + a {
771
+ margin-left: 8px;
772
+ }
773
+ a.default {
774
+ background-color: $action;
775
+ }
776
+ }
777
+ }
778
+ .white-bg, .grey-bg {
779
+ @include box-sizing;
780
+ // @include rounded;
781
+ position: absolute;
782
+ left: 0px;
783
+ right: 40%;
784
+ // top: $title-bar-height;
785
+ top: 0;
786
+ bottom: 0px;
787
+ margin: 0;
788
+ background-color: white;
789
+ z-index: 1;
790
+ }
791
+ .white-bg {
792
+ @include corners(0, 0, 0, $corner-radius);
793
+ border-width: 2px;
794
+ border-color: transparent;
795
+ border-style: solid;
796
+ }
797
+ .white-bg.active {
798
+ // -webkit-border-image: url(/@spontaneous/static/inner-glow.png) 8 8 8 8 repeat;
799
+ border-color: $action;
800
+ }
801
+ .grey-bg {
802
+ @include corners(0, $corner-radius, $corner-radius, 0);
803
+ left: auto;
804
+ width: 40%;
805
+ right: 0;
806
+ background-color: #6b6b6b;
807
+ margin-left: 0;
808
+ }
809
+ .entry {
810
+ @include rounded;
811
+ @include box-sizing;
812
+ position: relative;
813
+ z-index: 2;
814
+ float: left;
815
+
816
+ .fields-preview {
817
+ @include rounded;
818
+ // margin-right: 3px;
819
+ padding: 4px;
820
+ background: none;
821
+ border-color: white;
822
+ }
823
+ .fields-preview-text {
824
+ width: 100%;
825
+ position: relative;
826
+ margin-bottom: 0;
827
+ @include box-sizing;
828
+ li {
829
+ @include box-sizing;
830
+ }
831
+ }
832
+ }
833
+ .slots {
834
+ @include box-sizing;
835
+ position: relative;
836
+ padding-left: 0;
837
+ float: left;
838
+ width: 40%;
839
+ z-index: 2;
840
+ left: 1px; // kludge (rounding errors?)
841
+ .slot-tabs {
842
+ @extend .clearfix;
843
+ @include rounded-top;
844
+ @include box-sizing;
845
+ height: 24px;
846
+ display: block;
847
+ margin-right: 1px;
848
+ width: 100%;
849
+ background: none;
850
+ li {
851
+ @include box-sizing;
852
+ @extend .interface;
853
+ float: left;
854
+ width: 25%;
855
+ height: 100%;
856
+ display: block;
857
+ padding-left: 8px;
858
+ padding-top: 6px;
859
+ cursor: pointer;
860
+ border-right: solid 1px #565656;
861
+ background-color: #6b6b6b;
862
+ color: #f2f2f2;
863
+ }
864
+ li:first-child {
865
+ // @include rounded-top-left;
866
+ }
867
+ li:nth-child(4) {
868
+ // @include rounded-top-right;
869
+ float: right;
870
+ position: relative;
871
+ border-right: none;
872
+ }
873
+ li.active:hover, li.active {
874
+ background: #565656 none;
875
+ border-right: solid 1px #565656;
876
+ color: white;
877
+ }
878
+ li:hover {
879
+ background-color: $highlight;
880
+ border-right-color: $highlight;
881
+ }
882
+ li:hover + li:nth-child(4) {
883
+ border-left-color: $highlight;
884
+ }
885
+ li .down {
886
+ display: none;
887
+ }
888
+ }
889
+ .slot-addable {
890
+ @extend .interface;
891
+ @include box-sizing;
892
+ border: none;
893
+ background: none;
894
+ background-color: #565656;
895
+ height: 33px;
896
+ padding: $unit 8px 0 8px;
897
+ a {
898
+ @include button(#6b6b6b);
899
+ // background-color: #6b6b6b;
900
+ padding-left: 8px;
901
+ padding-right: 8px;
902
+ & + a {
903
+ margin-left: $unit;
904
+ }
905
+ }
906
+ .alias {
907
+ font-style: italic;
908
+ }
909
+ // a:hover {
910
+ // background-color: $highlight;
911
+ //}
912
+ .down {
913
+ display: none;
914
+ }
915
+ }
916
+ .slot-entries {
917
+ padding-top: 8px;
918
+ }
919
+ .entry-wrap.depth-2 {
920
+ // padding-top: $title-bar-height + ($unit/2);
921
+ margin-left: $unit;
922
+ margin-right: $unit;
923
+ margin-bottom: $unit;
924
+ .white-bg {
925
+ @include rounded(0 0 $radius $radius);
926
+ width: auto;
927
+ right: 0;
928
+ }
929
+ .grey-bg {
930
+ display: none;
931
+ }
932
+ .entry-contents {
933
+ // padding: $unit/2 $unit/2;
934
+ // padding: 0;
935
+ }
936
+ .entry-spacer {
937
+ height: $unit;
938
+ }
939
+ .entry {
940
+ @include rounded;
941
+ width: 100%;
942
+ .fields-preview {
943
+ @include rounded;
944
+ padding: 4px;
945
+ background: none;
946
+ // background-color: white;
947
+ // border-color: white;
948
+ width: 100%;
949
+ display: block;
950
+ .fields-preview-text {
951
+ width: 100%;
952
+ margin-bottom: 0;
953
+
954
+ }
955
+ .fields-preview-image {
956
+ float: none;
957
+ width: 100%;
958
+ margin-left: 0;
959
+ margin-top: $unit/2;
960
+ padding-top: $unit/2;
961
+ }
962
+ .fields-preview-text.empty + .fields-preview-image {
963
+ margin-top: 0;
964
+ }
965
+ }
966
+ }
967
+ .entry + .entry {
968
+ margin-top: 8px;
969
+ }
970
+ }
971
+ }
972
+ .alias-target {
973
+ padding: $unit/2;
974
+ background-color: #444;
975
+ color: white;
976
+ font-size: 14px;
977
+ font-style: italic;
978
+ .icon-wrap, a {
979
+ display: inline-block;
980
+ vertical-align: top;
981
+ cursor: pointer;
982
+ }
983
+ .icon-wrap {
984
+ margin-right: $unit;
985
+ }
986
+ }
987
+ &.no-boxes {
988
+ .white-bg {
989
+ @include rounded(0 0 $radius $radius);
990
+ right: 0;
991
+ }
992
+ .grey-bg {
993
+ display: none;
994
+ }
995
+ .entry {
996
+ // @include box-flex;
997
+ width: 100%;
998
+ .fields-preview {
999
+ @include display-box;
1000
+ .fields-preview-text {
1001
+ @include box-flex;
1002
+ width: 60%;
1003
+ padding-right: 0;
1004
+ }
1005
+ .fields-preview-image {
1006
+ @include box-flex;
1007
+ width: 40%;
1008
+ }
1009
+ }
1010
+ }
1011
+ }
1012
+ }
1013
+ .entry-wrap.hidden {
1014
+ opacity: 0.4 !important;
1015
+ }
1016
+ .entry-wrap.page {
1017
+ .white-bg {
1018
+ @include corners(0, 0, $corner-radius, $corner-radius);
1019
+ right: 0;
1020
+ }
1021
+ .page-title {
1022
+ background-color: #444;
1023
+ padding: $unit/2;
1024
+ a {
1025
+ cursor: pointer;
1026
+ font-family: $headline-font-family;
1027
+ font-weight: 100;
1028
+ color: #fff;
1029
+ font-size: 16px;
1030
+ line-height: normal;
1031
+ &:hover {
1032
+ color: $highlight;
1033
+ }
1034
+ }
1035
+ }
1036
+ }
1037
+ .entry-wrap.ui-sortable-helper .entry-contents {
1038
+ @extend .shadow;
1039
+ }
1040
+ .entry-wrap.boxes.depth-1 .entry {
1041
+ width: 60%;
1042
+ .fields-preview.depth-1 {
1043
+ .fields-preview-text {
1044
+ margin-right: -110px;
1045
+ padding-right: 110px;
1046
+ }
1047
+ .fields-preview-image {
1048
+ width: 94px;
1049
+ float: right;
1050
+ img {
1051
+ max-width: 94px;
1052
+ }
1053
+ li {
1054
+ margin-right: 0;
1055
+ }
1056
+ li:last-child {
1057
+ margin-bottom: 0;
1058
+ }
1059
+ }
1060
+ }
1061
+ }
1062
+ }
1063
+
1064
+ #dialogue-overlay {
1065
+ position: fixed;
1066
+ left: 0;
1067
+ right: 0;
1068
+ top: 0;
1069
+ bottom: 0;
1070
+ background-color: rgba(255, 255, 255, 0.9);
1071
+ z-index: 1000;
1072
+ }
1073
+
1074
+ #dialogue-wrap {
1075
+ position: fixed;
1076
+ left: 0;
1077
+ right: 0;
1078
+ bottom: 0;
1079
+ top: 0;
1080
+ overflow: auto;
1081
+ z-index: 1001;
1082
+ $dialogue-frame-width: 2px;
1083
+ #dialogue-outer {
1084
+ @include rounded;
1085
+ @include display-box;
1086
+ @include box-orient($direction: vertical);
1087
+ @extend .shadow;
1088
+ background-color: $chrome-bg;
1089
+ position: relative;
1090
+ top: 50px;
1091
+ // width: $dialogue-width;
1092
+ margin: 0 auto;
1093
+ margin-bottom: 50px;
1094
+ // max-height: 90%;
1095
+ #dialogue-title {
1096
+ $height: 32px;
1097
+ @extend .controls-gradient;
1098
+ @include header;
1099
+ @include rounded-top;
1100
+ height: $height - 6px;
1101
+ color: #fff;
1102
+ padding: 0 $unit 0 ($unit+$dialogue-frame-width);
1103
+ padding-top: 6px;
1104
+ }
1105
+ #dialogue-body {
1106
+ // @extend .box-flexible;
1107
+ // position: absolute;
1108
+ // top: 32px;
1109
+ // right: 2px;
1110
+ // bottom: 32px;
1111
+ // left: 2px;
1112
+ // min-height: 100px;
1113
+ overflow: auto;
1114
+ margin: 0 $dialogue-frame-width;
1115
+ background-color: #fff;
1116
+ // max-height: 70%;
1117
+ // margin-top: 32px;
1118
+ // margin-bottom: 32px;
1119
+ }
1120
+ #dialogue-control-wrap {
1121
+ // position: fixed;
1122
+ // top: 0;
1123
+ // right: 0;
1124
+ // left: 0;
1125
+ // z-index: 1002;
1126
+
1127
+ #dialogue-controls {
1128
+ position: relative;
1129
+ // display: block;
1130
+ // height: 46px;
1131
+ .dialogue-actions {
1132
+ @include display-box;
1133
+ .spacer {
1134
+ @include box-flex;
1135
+ }
1136
+ .button {
1137
+ display: block;
1138
+ width: 128px;
1139
+ margin: $unit 0;
1140
+ & + .button {
1141
+ margin-left: $unit;
1142
+ }
1143
+ }
1144
+ .button:last-child {
1145
+ margin-right: $unit;
1146
+ }
1147
+ .cancel {
1148
+ @include button-color(#6b6b6b);
1149
+ }
1150
+ .save {
1151
+ background-color: $action;
1152
+ float: right;
1153
+ }
1154
+ .disabled, .disabled:hover {
1155
+ background-color: #333333 !important;
1156
+ color: #6b6b6b !important;
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+ }
1162
+ }
1163
+
1164
+ .dialogue-wrapper {
1165
+ @include rounded;
1166
+ @include box-sizing;
1167
+ position: relative;
1168
+ // top: 32px;
1169
+ background-color: #cccccc;
1170
+ width: $dialogue-width;
1171
+ // margin: 32px auto;
1172
+ }
1173
+
1174
+ #create-home-dialogue {
1175
+ .instructions {
1176
+ @extend .interface;
1177
+ margin: 0;
1178
+ background-color: #f2f2f2;
1179
+ color: #666;
1180
+ padding: $unit/2 $unit;
1181
+ margin-bottom: $unit;
1182
+ .button {
1183
+ padding-left: 2px;
1184
+ padding-right: 2px;
1185
+ }
1186
+ }
1187
+
1188
+ .type {
1189
+ @include rounded;
1190
+ @include display-box;
1191
+ cursor: pointer;
1192
+ padding: $unit/2 $unit;
1193
+ background-color: #fbfbfb;
1194
+ border: solid 1px #f2f2f2;
1195
+ margin: $unit;
1196
+ margin-top: 0;
1197
+ &:hover {
1198
+ background-color: #666;
1199
+ color: #fff;
1200
+ }
1201
+ &.selected {
1202
+ background-color: $action;
1203
+ color: #fff;
1204
+ }
1205
+ }
1206
+ }
1207
+
1208
+ #publishing-dialogue {
1209
+ min-height: 200px;
1210
+ max-height: 90%;
1211
+ position: relative;
1212
+ @include display-box;
1213
+ @include box-orient(horizontal);
1214
+ .change-list {
1215
+ @include box-flex;
1216
+ width: 50%;
1217
+ &#changes {
1218
+ border-right: solid 2px #000;
1219
+ }
1220
+ .actions {
1221
+ @extend .interface;
1222
+ @include display-box;
1223
+ @include box-orient(horizontal);
1224
+ @include box-align(center);
1225
+ color: #666;
1226
+ background-color: #f2f2f2;
1227
+ padding: $unit/2 $unit;
1228
+
1229
+ div {
1230
+ @include box-flex;
1231
+ }
1232
+ .button {
1233
+ padding-left: $unit;
1234
+ padding-right: $unit;
1235
+ }
1236
+ }
1237
+ .change-sets {
1238
+ overflow: auto;
1239
+ .instructions {
1240
+ font-family: $headline-font-family;
1241
+ color: #999;
1242
+ text-align: center;
1243
+ position: relative;
1244
+ padding-top: 50px;
1245
+ }
1246
+ }
1247
+ }
1248
+ // background-color: #fff;
1249
+ // width: 600px;
1250
+ // @extend .dialogue-wrapper;
1251
+ // padding-top: $container-padding / 2;
1252
+ // padding-bottom: $container-padding / 2;
1253
+ .publish-up-to-date {
1254
+ @include rounded;
1255
+ @extend shadow;
1256
+ position: absolute;
1257
+ left: 0;
1258
+ right: 0;
1259
+ top: 0;
1260
+ bottom: 0;
1261
+ margin: 60px 200px 60px 200px;
1262
+ text-align: center;
1263
+ background-color: #333;
1264
+ opacity: 0.95;
1265
+ font-family: $headline-font-family;
1266
+ font-size: 24px;
1267
+ padding-top: 24px;
1268
+ color: #fff;
1269
+ // margin: $container-padding / 2;
1270
+ // margin-top: 0;
1271
+ // .publish-all {
1272
+ // @include button(#666);
1273
+ // @extend .interface;
1274
+ // width: 128px;
1275
+ // float: right;
1276
+ // text-align: left;
1277
+ // // background-color: #666666;
1278
+ // input {
1279
+ // margin: 1px 8px 0 8px;
1280
+ // padding: 0;
1281
+ // vertical-align: top;
1282
+ // position: relative;
1283
+ // }
1284
+ // }
1285
+ // .publish-all.checked {
1286
+ // background-color: $action;
1287
+ // }
1288
+ }
1289
+ .change-set {
1290
+ cursor: pointer;
1291
+ padding: $unit $unit 0 $unit;
1292
+ .inner {
1293
+ @include rounded;
1294
+ @include display-box;
1295
+ border: solid 3px transparent;
1296
+ background-color: #fbfbfb;
1297
+ border: solid 1px #f2f2f2;
1298
+ }
1299
+ .pages {
1300
+ @include box-flex;
1301
+ .title {
1302
+ padding: $unit/2 $unit;
1303
+ color: #333;
1304
+ & + .title {
1305
+ border-top: solid 1px #f2f2f2;
1306
+ }
1307
+ }
1308
+ .url {
1309
+ font-size: 10px;
1310
+ color: #666;
1311
+ }
1312
+ }
1313
+ .add {
1314
+ @include rounded-right;
1315
+ @include display-box;
1316
+ @include box-pack(center);
1317
+ @include box-align(center);
1318
+ width: $container-padding;
1319
+ background-color: #f2f2f2;
1320
+ position: relative;
1321
+ color: #999;
1322
+ span {
1323
+ @extend .interface;
1324
+ font-size: 40px;
1325
+ position: relative;
1326
+ top: -5px;
1327
+ }
1328
+ &:hover {
1329
+ background-color: $action;
1330
+ color: #fff;
1331
+ }
1332
+ }
1333
+ .titles a {
1334
+ display: block;
1335
+ margin-bottom: 2px;
1336
+ span {
1337
+ font-size: 11px;
1338
+ margin-left: 1em;
1339
+ }
1340
+ }
1341
+ }
1342
+ .change-set:hover {
1343
+ border-color: $action;
1344
+ }
1345
+ .change-set.selected {
1346
+ }
1347
+ }
1348
+
1349
+ #editing {
1350
+ @extend .dialogue-wrapper;
1351
+ @extend .clearfix;
1352
+ z-index: 1001;
1353
+ // background-color: #5b5b5b;
1354
+ // background-color: #f0d5a9;
1355
+ @extend .shadow;
1356
+ .button {
1357
+ background-color: $editing;
1358
+ }
1359
+ .field-group-bg {
1360
+ @include rounded;
1361
+ // background-color: #6b6b6b;
1362
+ position: absolute;
1363
+ margin: 8px;
1364
+ top: 0px;
1365
+ bottom: 0px;
1366
+ }
1367
+ .field-group-bg.text {
1368
+ left: 0;
1369
+ right: 343px;
1370
+ }
1371
+ .field-group-bg.image {
1372
+ left: 629px;
1373
+ right: 0;
1374
+ }
1375
+ input[type="submit"] {
1376
+ visibility: hidden;
1377
+ position: absolute;
1378
+ width: 0;
1379
+ height: 0;
1380
+ }
1381
+ .field-group {
1382
+ position: relative;
1383
+ z-index: 1010;
1384
+ float: left;
1385
+ // margin: 8px 0 0 8px;
1386
+ padding: 8px;
1387
+ // margin-top: 8px;
1388
+ // margin-bottom: 8px;
1389
+ .field + .field {
1390
+ margin-top: 8px;
1391
+ }
1392
+ .name {
1393
+ @include rounded-top;
1394
+ @include box-sizing;
1395
+ @extend .interface;
1396
+ background-color: #d1d1d1;
1397
+ // background-image: url(/@spontaneous/static/paper-texture-dark.png);
1398
+ display: block;
1399
+ height: 24px;
1400
+ padding-left: 8px;
1401
+ padding-top: 6px;
1402
+ }
1403
+ .value {
1404
+ @include rounded-bottom;
1405
+ border: solid 2px transparent;
1406
+ padding: 6px;
1407
+ background-color: white;
1408
+ textarea, input[type="text"] {
1409
+ font-family: $input-font-family;
1410
+ font-size: 11px;
1411
+ line-height: 14px;
1412
+ outline: none;
1413
+ }
1414
+ input[type="file"] {
1415
+ visibility: hidden;
1416
+ position: absolute;
1417
+ width: 0;
1418
+ height: 0;
1419
+ }
1420
+ textarea {
1421
+ @include box-sizing;
1422
+ border: none;
1423
+ width: 100%;
1424
+ padding-right: 64px;
1425
+ }
1426
+ input[type="text"] {
1427
+ @include box-sizing;
1428
+ width: 100%;
1429
+ border: none;
1430
+ display: block;
1431
+ font-weight: bold;
1432
+ }
1433
+ }
1434
+ .field.focus {
1435
+ .name {
1436
+ background-color: $editing;
1437
+ color: white;
1438
+ }
1439
+ .value {
1440
+ border-color: $editing;
1441
+ }
1442
+ }
1443
+ }
1444
+ // .field-group.text {
1445
+ // // width: 621px;
1446
+ // width: 100%;
1447
+ // }
1448
+ .field-group.image {
1449
+ width: 327px;
1450
+ .field .value {
1451
+ position: relative;
1452
+ min-height: 70px;
1453
+ img {
1454
+ max-width: 50%;
1455
+ }
1456
+ img.empty {
1457
+ width: 50%;
1458
+ height: 100px;
1459
+ }
1460
+ .actions {
1461
+ margin: 8px;
1462
+ margin-left: 0;
1463
+ position: absolute;
1464
+ top: 0;
1465
+ right: 0;
1466
+ bottom: 0;
1467
+ width: 109px;
1468
+ .button {
1469
+ display: block;
1470
+ }
1471
+ .button.clear {
1472
+ color: #5b5b5b;
1473
+ background-color: #d1d1d1;
1474
+ position: absolute;
1475
+ bottom: 0;
1476
+ width: 100%;
1477
+ }
1478
+ }
1479
+ .landscape {
1480
+ img {
1481
+ max-width: 100%;
1482
+ max-height: 50%;
1483
+ }
1484
+ .actions {
1485
+ width: auto;
1486
+ display: block;
1487
+ margin: 8px 0 0 0;
1488
+ position: relative;
1489
+ .button {
1490
+ display: inline-block;
1491
+ width: 109px;
1492
+ }
1493
+ .button.clear {
1494
+ position: static;
1495
+ }
1496
+ .button.change {
1497
+ position: absolute;
1498
+ right: 0;
1499
+ }
1500
+ }
1501
+ }
1502
+ }
1503
+ }
1504
+ }
1505
+
1506
+ #status-bar {
1507
+ @extend .container-padding;
1508
+ @include box-sizing;
1509
+ @extend .controls-gradient;
1510
+ @extend .shadow;
1511
+ position: fixed;
1512
+ height: 32px;
1513
+ bottom: 0;
1514
+ left: 0;
1515
+ right: 0;
1516
+ background-color: #cccccc;
1517
+ z-index: 100000;
1518
+ #progress-container {
1519
+ position: relative;
1520
+ top: 12px;
1521
+ font-size: 10px;
1522
+ color: #888888;
1523
+ #progress-bars {
1524
+ @include rounded;
1525
+ position: relative;
1526
+ width: 50%;
1527
+ height: 8px;
1528
+ border: solid 1px #151515;
1529
+ .bar {
1530
+ @include rounded;
1531
+ height: 8px;
1532
+ padding: 0;
1533
+ background-color: black;
1534
+ position: absolute;
1535
+ top: 0;
1536
+ left: 0;
1537
+ opacity: 0.7;
1538
+ }
1539
+ #progress-individual {
1540
+ opacity: 0.3;
1541
+ }
1542
+ #progress-total {
1543
+ background-color: #fff;
1544
+ }
1545
+ }
1546
+ #progress-name {
1547
+ position: absolute;
1548
+ right: 2*$unit;
1549
+ top: -1px;
1550
+ text-align: right;
1551
+ }
1552
+ #progress-stats {
1553
+ position: absolute;
1554
+ left: 50%;
1555
+ top: -1px;
1556
+ margin-left: 10px;
1557
+ }
1558
+ }
1559
+ }
1560
+
1561
+ #script-load-splash {
1562
+ $progress-color: #dddddd;
1563
+ background: url("/@spontaneous/static/splash.png") 0 0 no-repeat;
1564
+ width: 318px;
1565
+ height: 43px;
1566
+ position: relative;
1567
+ margin: 0 auto;
1568
+ top: 150px;
1569
+ #script-load-progress {
1570
+ @include rounded(8px);
1571
+ position: relative;
1572
+ left: -31px;
1573
+ top: 64px;
1574
+ border: solid 1px $progress-color;
1575
+ padding: 1px;
1576
+ width: 380px;
1577
+ height: 4px;
1578
+ div {
1579
+ @include rounded(6px);
1580
+ background-color: $progress-color;
1581
+ height: 4px;
1582
+ }
1583
+ }
1584
+ #script-load-progress.synchronous {
1585
+ border: none;
1586
+ color: $progress-color;
1587
+ top: 44px;
1588
+ left: 47px;
1589
+ }
1590
+ }
1591
+
1592
+ #script-load-splash.loaded {
1593
+ background-position: 0 -80px;
1594
+ }
1595
+
1596
+ .icon-wrap {
1597
+ overflow: hidden;
1598
+ position: relative;
1599
+ img {
1600
+ position: relative;
1601
+ }
1602
+ }
1603
+ @import "popover";
1604
+ @import "editing";
1605
+ @import "add_alias_dialogue";
1606
+ @import "developer";