storytime 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +10 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +17 -0
  7. data/Gemfile.lock +448 -0
  8. data/Guardfile +24 -0
  9. data/MIT-LICENSE +1 -1
  10. data/README.md +160 -0
  11. data/app/assets/{javascripts/storytime/subscriptions.js → images/storytime/.keep} +0 -0
  12. data/app/assets/images/storytime/storytime-logo-nav-light.png +0 -0
  13. data/app/assets/images/storytime/storytime-logo-nav.png +0 -0
  14. data/app/assets/images/storytime/storytime-logo.png +0 -0
  15. data/app/assets/javascripts/storytime/application.js +11 -3
  16. data/app/assets/javascripts/storytime/base.js.coffee +44 -6
  17. data/app/assets/javascripts/storytime/blog_posts.js.coffee +16 -0
  18. data/app/assets/javascripts/storytime/blogs.js.coffee +18 -0
  19. data/app/assets/javascripts/storytime/character_counter.js.coffee +26 -0
  20. data/app/assets/javascripts/storytime/contenteditable.js.coffee +15 -0
  21. data/app/assets/javascripts/storytime/custom_posts.js.coffee +16 -0
  22. data/app/assets/javascripts/storytime/editor.js.coffee +50 -134
  23. data/app/assets/javascripts/storytime/media.js.coffee +91 -22
  24. data/app/assets/javascripts/storytime/pages.js.coffee +16 -0
  25. data/app/assets/javascripts/storytime/posts.js.coffee +28 -1
  26. data/app/assets/javascripts/storytime/sites.js.coffee +1 -16
  27. data/app/assets/javascripts/storytime/snippets.js.coffee +6 -3
  28. data/app/assets/javascripts/storytime/tags.js.coffee +17 -0
  29. data/app/assets/javascripts/storytime/users.js.coffee +10 -0
  30. data/app/assets/javascripts/storytime/wysiwyg.js.coffee +183 -0
  31. data/app/assets/stylesheets/storytime/_buttons.scss +70 -0
  32. data/app/assets/stylesheets/storytime/_dropdowns.scss +5 -0
  33. data/app/assets/stylesheets/storytime/_forms.scss +3 -0
  34. data/app/assets/stylesheets/storytime/_list-group.scss +13 -0
  35. data/app/assets/stylesheets/storytime/_pagination.scss +14 -0
  36. data/app/assets/stylesheets/storytime/_panels.scss +8 -0
  37. data/app/assets/stylesheets/storytime/_tabs.scss +38 -0
  38. data/app/assets/stylesheets/storytime/_type.scss +13 -0
  39. data/app/assets/stylesheets/storytime/_wells.scss +14 -0
  40. data/app/assets/stylesheets/storytime/admin.scss +42 -0
  41. data/app/assets/stylesheets/storytime/application.scss +75 -0
  42. data/app/assets/stylesheets/storytime/{comments.css.scss → comments.scss} +0 -0
  43. data/app/assets/stylesheets/storytime/icons.scss +79 -0
  44. data/app/assets/stylesheets/storytime/layout.scss +21 -0
  45. data/app/assets/stylesheets/storytime/media.scss +65 -0
  46. data/app/assets/stylesheets/storytime/modals.scss +46 -0
  47. data/app/assets/stylesheets/storytime/navigation.scss +137 -0
  48. data/app/assets/stylesheets/storytime/posts.scss +76 -0
  49. data/app/assets/stylesheets/storytime/scroll-panels.scss +19 -0
  50. data/app/assets/stylesheets/storytime/snippets.scss +11 -0
  51. data/app/assets/stylesheets/storytime/{sites.css.scss → subscriptions.scss} +0 -0
  52. data/app/assets/stylesheets/storytime/versions.scss +21 -0
  53. data/app/controllers/storytime/application_controller.rb +36 -16
  54. data/app/controllers/storytime/blog_homepage_controller.rb +10 -0
  55. data/app/controllers/storytime/blogs_controller.rb +56 -0
  56. data/app/controllers/storytime/comments_controller.rb +5 -1
  57. data/app/controllers/storytime/dashboard/autosaves_controller.rb +7 -3
  58. data/app/controllers/storytime/dashboard/blog_posts_controller.rb +60 -0
  59. data/app/controllers/storytime/dashboard/blogs_controller.rb +66 -0
  60. data/app/controllers/storytime/dashboard/custom_posts_controller.rb +51 -0
  61. data/app/controllers/storytime/dashboard/media_controller.rb +9 -7
  62. data/app/controllers/storytime/dashboard/memberships_controller.rb +49 -0
  63. data/app/controllers/storytime/dashboard/pages_controller.rb +24 -0
  64. data/app/controllers/storytime/dashboard/posts_controller.rb +29 -38
  65. data/app/controllers/storytime/dashboard/roles_controller.rb +16 -2
  66. data/app/controllers/storytime/dashboard/sites_controller.rb +25 -11
  67. data/app/controllers/storytime/dashboard/snippets_controller.rb +19 -14
  68. data/app/controllers/storytime/dashboard/subscriptions_controller.rb +9 -5
  69. data/app/controllers/storytime/dashboard/users_controller.rb +24 -22
  70. data/app/controllers/storytime/dashboard_controller.rb +9 -3
  71. data/app/controllers/storytime/homepage_controller.rb +10 -0
  72. data/app/controllers/storytime/pages_controller.rb +30 -13
  73. data/app/controllers/storytime/posts_controller.rb +22 -53
  74. data/app/controllers/storytime/subscriptions_controller.rb +5 -4
  75. data/app/helpers/storytime/application_helper.rb +28 -7
  76. data/app/helpers/storytime/dashboard/sites_helper.rb +2 -5
  77. data/app/helpers/storytime/subscriptions_helper.rb +0 -7
  78. data/app/inputs/date_time_picker_input.rb +1 -1
  79. data/app/mailers/storytime/subscription_mailer.rb +1 -3
  80. data/app/models/concerns/storytime/post_comments.rb +17 -0
  81. data/app/models/concerns/storytime/post_excerpt.rb +14 -0
  82. data/app/models/concerns/storytime/post_featured_images.rb +8 -0
  83. data/app/models/concerns/storytime/post_partial_inheritance.rb +29 -0
  84. data/app/models/concerns/storytime/post_tags.rb +41 -0
  85. data/app/models/concerns/storytime/scoped_to_site.rb +11 -0
  86. data/app/models/storytime/action.rb +1 -0
  87. data/app/models/storytime/autosave.rb +7 -1
  88. data/app/models/storytime/blog.rb +16 -0
  89. data/app/models/storytime/blog_post.rb +12 -1
  90. data/app/models/storytime/comment.rb +4 -1
  91. data/app/models/storytime/media.rb +2 -0
  92. data/app/models/storytime/membership.rb +17 -0
  93. data/app/models/storytime/page.rb +0 -5
  94. data/app/models/storytime/permission.rb +26 -20
  95. data/app/models/storytime/post.rb +29 -82
  96. data/app/models/storytime/role.rb +12 -0
  97. data/app/models/storytime/site.rb +42 -12
  98. data/app/models/storytime/snippet.rb +3 -0
  99. data/app/models/storytime/subscription.rb +2 -1
  100. data/app/models/storytime/tag.rb +5 -1
  101. data/app/models/storytime/tagging.rb +1 -0
  102. data/app/models/storytime/version.rb +1 -0
  103. data/app/policies/admin_policy.rb +30 -0
  104. data/app/policies/storytime/comment_policy.rb +5 -1
  105. data/app/policies/storytime/membership_policy.rb +32 -0
  106. data/app/policies/storytime/post_policy.rb +6 -4
  107. data/app/policies/storytime/site_policy.rb +7 -2
  108. data/app/policies/storytime/snippet_policy.rb +3 -2
  109. data/app/policies/storytime/subscription_policy.rb +3 -2
  110. data/app/policies/user_policy.rb +2 -5
  111. data/app/views/kaminari/_first_page.html.erb +13 -0
  112. data/app/views/kaminari/_gap.html.erb +8 -0
  113. data/app/views/kaminari/_last_page.html.erb +13 -0
  114. data/app/views/kaminari/_next_page.html.erb +13 -0
  115. data/app/views/kaminari/_page.html.erb +12 -0
  116. data/app/views/kaminari/_paginator.html.erb +24 -0
  117. data/app/views/kaminari/_prev_page.html.erb +13 -0
  118. data/app/views/layouts/storytime/application.html.erb +1 -1
  119. data/app/views/layouts/storytime/dashboard.html.erb +22 -6
  120. data/app/views/storytime/application/storytime/_disqus_comment_counts.html.erb +14 -0
  121. data/app/views/storytime/application/storytime/_header.html.erb +3 -4
  122. data/app/views/storytime/application/storytime/_navigation.html.erb +14 -1
  123. data/app/views/storytime/blogs/_tags.html.erb +3 -0
  124. data/app/views/storytime/{posts/index.atom.builder → blogs/show.atom.builder} +1 -1
  125. data/app/views/storytime/{posts/index.html.erb → blogs/show.html.erb} +1 -1
  126. data/app/views/storytime/comments/_discourse.html.erb +18 -0
  127. data/app/views/storytime/comments/_disqus.html.erb +2 -2
  128. data/app/views/storytime/comments/_form.html.erb +2 -2
  129. data/app/views/storytime/dashboard/_navigation.html.erb +109 -41
  130. data/app/views/storytime/dashboard/_settings_tabs.html.erb +32 -0
  131. data/app/views/storytime/dashboard/autosaves/_autosave_info.html.erb +7 -4
  132. data/app/views/storytime/dashboard/blog_posts/_form.html.erb +157 -0
  133. data/app/views/storytime/dashboard/blog_posts/edit.html.erb +55 -0
  134. data/app/views/storytime/dashboard/blog_posts/new.html.erb +31 -0
  135. data/app/views/storytime/dashboard/blogs/_blog.html.erb +3 -0
  136. data/app/views/storytime/dashboard/blogs/_form.html.erb +25 -0
  137. data/app/views/storytime/dashboard/blogs/edit.json.jbuilder +1 -0
  138. data/app/views/storytime/dashboard/blogs/index.json.jbuilder +1 -0
  139. data/app/views/storytime/dashboard/blogs/new.json.jbuilder +1 -0
  140. data/app/views/storytime/dashboard/media/_form.html.erb +3 -3
  141. data/app/views/storytime/dashboard/media/{_gallery.html → _gallery.html.erb} +7 -4
  142. data/app/views/storytime/dashboard/media/_media.html.erb +6 -13
  143. data/app/views/storytime/dashboard/media/_modal.html.erb +3 -3
  144. data/app/views/storytime/dashboard/media/index.html.erb +15 -5
  145. data/app/views/storytime/dashboard/memberships/_form.html.erb +12 -0
  146. data/app/views/storytime/dashboard/memberships/_index.html.erb +39 -0
  147. data/app/views/storytime/dashboard/memberships/_membership.html.erb +12 -0
  148. data/app/views/storytime/dashboard/memberships/index.json.jbuilder +2 -0
  149. data/app/views/storytime/dashboard/memberships/save.json.jbuilder +1 -0
  150. data/app/views/storytime/dashboard/pages/_form.html.erb +88 -0
  151. data/app/views/storytime/dashboard/pages/_index_title.html.erb +1 -0
  152. data/app/views/storytime/dashboard/pages/_new_button.html.erb +1 -0
  153. data/app/views/storytime/dashboard/pages/edit.html.erb +49 -0
  154. data/app/views/storytime/dashboard/pages/new.html.erb +28 -0
  155. data/app/views/storytime/dashboard/posts/_form.html.erb +128 -122
  156. data/app/views/storytime/dashboard/posts/_image_toolbar.html.erb +32 -0
  157. data/app/views/storytime/dashboard/posts/_index_title.html.erb +1 -0
  158. data/app/views/storytime/dashboard/posts/_list.html.erb +23 -24
  159. data/app/views/storytime/dashboard/posts/_new_button.html.erb +10 -0
  160. data/app/views/storytime/dashboard/posts/edit.html.erb +56 -13
  161. data/app/views/storytime/dashboard/posts/index.html.erb +56 -7
  162. data/app/views/storytime/dashboard/posts/new.html.erb +29 -8
  163. data/app/views/storytime/dashboard/roles/_form.html.erb +41 -0
  164. data/app/views/storytime/dashboard/roles/edit.json.jbuilder +1 -0
  165. data/app/views/storytime/dashboard/sites/_form.html.erb +31 -15
  166. data/app/views/storytime/dashboard/sites/new.html.erb +21 -8
  167. data/app/views/storytime/dashboard/sites/site.json.jbuilder +2 -0
  168. data/app/views/storytime/dashboard/snippets/_form.html.erb +26 -12
  169. data/app/views/storytime/dashboard/snippets/_index.html.erb +17 -0
  170. data/app/views/storytime/dashboard/snippets/_snippet.html.erb +12 -0
  171. data/app/views/storytime/dashboard/snippets/edit.json.jbuilder +1 -0
  172. data/app/views/storytime/dashboard/snippets/index.json.jbuilder +4 -0
  173. data/app/views/storytime/dashboard/snippets/new.json.jbuilder +1 -0
  174. data/app/views/storytime/dashboard/subscriptions/_form.html.erb +19 -0
  175. data/app/views/storytime/dashboard/subscriptions/_index.html.erb +19 -0
  176. data/app/views/storytime/dashboard/subscriptions/_subscription.html.erb +9 -10
  177. data/app/views/storytime/dashboard/subscriptions/form.json.jbuilder +1 -0
  178. data/app/views/storytime/dashboard/subscriptions/index.json.jbuilder +1 -0
  179. data/app/views/storytime/dashboard/users/_edit.html.erb +26 -0
  180. data/app/views/storytime/dashboard/users/_new.html.erb +25 -0
  181. data/app/views/storytime/dashboard/users/edit.json.jbuilder +2 -0
  182. data/app/views/storytime/dashboard/users/new.json.jbuilder +2 -0
  183. data/app/views/storytime/dashboard/versions/_version.html.erb +14 -0
  184. data/app/views/storytime/dashboard/versions/_versions_info.html.erb +1 -16
  185. data/app/views/storytime/pages/show.html.erb +1 -1
  186. data/app/views/storytime/posts/_post.html.erb +8 -0
  187. data/app/views/storytime/posts/_tags.html.erb +1 -1
  188. data/app/views/storytime/posts/show.html.erb +1 -1
  189. data/app/views/storytime/sites/_google_analytics_code.html.erb +2 -2
  190. data/app/views/storytime/snippets/_snippet.html.erb +9 -0
  191. data/app/views/storytime/subscription_mailer/new_post_email.html.erb +2 -2
  192. data/app/views/storytime/subscription_mailer/new_post_email.text.erb +2 -2
  193. data/app/views/storytime/subscriptions/_form.html.erb +0 -1
  194. data/app/views/storytime/subscriptions/_modal.html.erb +18 -10
  195. data/bin/rails +12 -0
  196. data/bin/storytime +4 -0
  197. data/circle.yml +3 -0
  198. data/config/initializers/storytime_admin.rb +3 -0
  199. data/config/initializers/url_for_patch.rb +2 -37
  200. data/config/locales/en.yml +33 -13
  201. data/config/routes.rb +47 -19
  202. data/db/migrate/20150128185746_seed_new_actions_and_permissions.rb +9 -0
  203. data/db/migrate/20150206201847_add_site_id_to_storytime_post.rb +7 -0
  204. data/db/migrate/20150206201919_add_site_id_to_storytime_snippet.rb +7 -0
  205. data/db/migrate/20150206201931_add_site_id_to_storytime_tag.rb +7 -0
  206. data/db/migrate/20150206205256_add_notification_fields_to_storytime_post.rb +6 -0
  207. data/db/migrate/20150216211257_add_subdomain_to_storytime_sites.rb +5 -0
  208. data/db/migrate/20150216225045_add_site_to_storytime_media.rb +6 -0
  209. data/db/migrate/20150219210528_remove_root_page_content_from_storytime_sites.rb +12 -0
  210. data/db/migrate/20150220184902_add_blog_id_to_posts.rb +6 -0
  211. data/db/migrate/20150224192138_add_homepage_path_to_storytime_sites.rb +5 -0
  212. data/db/migrate/20150224193151_add_subscription_email_from_to_storytime_sites.rb +5 -0
  213. data/db/migrate/20150224193551_add_layout_to_storytime_sites.rb +5 -0
  214. data/db/migrate/20150224194559_add_disqus_forum_shortname_to_storytime_sites.rb +5 -0
  215. data/db/migrate/20150224212453_remove_homepage_path_from_storytime_sites.rb +5 -0
  216. data/db/migrate/20150225143516_add_site_id_to_storytime_autosaves.rb +6 -0
  217. data/db/migrate/20150225143826_add_site_id_to_storytime_comments.rb +6 -0
  218. data/db/migrate/20150225145119_add_site_id_to_storytime_versions.rb +6 -0
  219. data/db/migrate/20150225145316_add_site_id_to_storytime_taggings.rb +6 -0
  220. data/db/migrate/20150225145608_update_storytime_site_id_columns.rb +11 -0
  221. data/db/migrate/20150225164232_add_site_id_to_storytime_permissions.rb +6 -0
  222. data/db/migrate/20150225212917_create_storytime_memberships.rb +11 -0
  223. data/db/migrate/20150225213535_create_memberships_for_storytime_users.rb +8 -0
  224. data/db/migrate/20150226201739_add_custom_domain_to_storytime_sites.rb +5 -0
  225. data/db/migrate/20150302171500_add_site_id_to_storytime_media.rb +8 -0
  226. data/db/migrate/20150302171722_set_site_layout.rb +8 -0
  227. data/db/migrate/20150302185138_remove_storytime_role_id_from_users.rb +5 -0
  228. data/db/migrate/20150302192525_transfer_posts_to_blogs.rb +8 -0
  229. data/db/migrate/20150302192759_seed_permissions.rb +9 -0
  230. data/db/migrate/20150331162329_add_discourse_name_to_storytime_sites.rb +5 -0
  231. data/db/migrate/20150402161427_remove_subdomain_from_storytime_site.rb +5 -0
  232. data/lib/generators/storytime/install_generator.rb +17 -0
  233. data/lib/generators/storytime/views_generator.rb +21 -9
  234. data/lib/generators/templates/storytime.rb +70 -27
  235. data/lib/storytime/cli/install.rb +274 -0
  236. data/lib/storytime/cli.rb +28 -0
  237. data/lib/storytime/concerns/current_site.rb +10 -0
  238. data/lib/storytime/concerns/has_versions.rb +22 -3
  239. data/lib/storytime/concerns/storytime_user.rb +31 -7
  240. data/lib/storytime/constraints/blog_constraint.rb +11 -0
  241. data/lib/storytime/constraints/blog_homepage_constraint.rb +11 -0
  242. data/lib/storytime/constraints/page_constraint.rb +13 -0
  243. data/lib/storytime/constraints/page_homepage_constraint.rb +11 -0
  244. data/lib/storytime/engine.rb +43 -14
  245. data/lib/storytime/generators/initializer.rb +45 -0
  246. data/lib/storytime/migrators/v1.rb +122 -0
  247. data/lib/storytime/post_notifier.rb +19 -0
  248. data/lib/storytime/post_url_handler.rb +47 -0
  249. data/lib/storytime/storytime_helpers.rb +12 -0
  250. data/lib/storytime/version.rb +1 -1
  251. data/lib/storytime.rb +57 -56
  252. data/screenshots/admin.png +0 -0
  253. data/screenshots/media.png +0 -0
  254. data/screenshots/page-list.png +0 -0
  255. data/screenshots/post-editor.png +0 -0
  256. data/screenshots/site-settings.png +0 -0
  257. data/screenshots/text-snippets.png +0 -0
  258. data/screenshots/user-management.png +0 -0
  259. data/spec/controllers/dashboard_controller_spec.rb +3 -1
  260. data/{app/assets/stylesheets/storytime/subscriptions.css.scss → spec/dummy/app/assets/images/.keep} +0 -0
  261. data/spec/dummy/app/assets/javascripts/application.js +3 -0
  262. data/spec/dummy/app/controllers/application_controller.rb +5 -1
  263. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  264. data/spec/dummy/app/controllers/storytime_admin/widgets_controller.rb +5 -0
  265. data/spec/dummy/app/mailers/.keep +0 -0
  266. data/spec/dummy/app/models/.keep +0 -0
  267. data/spec/dummy/app/models/concerns/.keep +0 -0
  268. data/spec/dummy/app/models/user.rb +5 -1
  269. data/spec/dummy/app/models/video_post.rb +2 -0
  270. data/spec/dummy/app/models/widget.rb +3 -0
  271. data/spec/dummy/app/views/layouts/application.html.erb +1 -1
  272. data/spec/dummy/app/views/storytime/dashboard/posts/_video_post_fields.html.erb +1 -0
  273. data/spec/dummy/app/views/widgets/storytime/dashboard/admin/_headers.html.erb +1 -0
  274. data/spec/dummy/app/views/widgets/storytime/dashboard/admin/_row.html.erb +1 -0
  275. data/spec/dummy/config/database.yml +9 -5
  276. data/spec/dummy/config/environments/test.rb +1 -0
  277. data/spec/dummy/config/initializers/devise.rb +1 -1
  278. data/spec/dummy/config/initializers/session_store.rb +1 -1
  279. data/spec/dummy/config/initializers/storytime.rb +7 -14
  280. data/spec/dummy/db/development.sqlite3 +0 -0
  281. data/spec/dummy/db/migrate/20150127172846_create_widgets.rb +9 -0
  282. data/spec/dummy/db/migrate/20150206203824_add_video_url_to_storytime_posts.rb +5 -0
  283. data/spec/dummy/db/schema.rb +76 -21
  284. data/spec/dummy/db/test.sqlite3 +0 -0
  285. data/spec/dummy/lib/assets/.keep +0 -0
  286. data/spec/dummy/log/.keep +0 -0
  287. data/spec/factories/comment_factories.rb +1 -0
  288. data/spec/factories/membership_factories.rb +7 -0
  289. data/spec/factories/site_factories.rb +3 -2
  290. data/spec/factories/user_factories.rb +3 -3
  291. data/spec/factories/widget_factories.rb +5 -0
  292. data/spec/features/blogs_spec.rb +28 -0
  293. data/spec/features/comments_spec.rb +8 -9
  294. data/spec/features/dashboard/media_spec.rb +14 -30
  295. data/spec/features/dashboard/memberships_spec.rb +58 -0
  296. data/spec/features/dashboard/pages_spec.rb +67 -44
  297. data/spec/features/dashboard/posts_spec.rb +84 -62
  298. data/spec/features/dashboard/sites_spec.rb +28 -23
  299. data/spec/features/dashboard/snippets_spec.rb +44 -44
  300. data/spec/features/dashboard/subscription_spec.rb +36 -28
  301. data/spec/features/dashboard/users_spec.rb +48 -29
  302. data/spec/features/pages_spec.rb +2 -2
  303. data/spec/features/posts_spec.rb +2 -20
  304. data/spec/features/subscription_spec.rb +4 -4
  305. data/spec/models/post_spec.rb +26 -17
  306. data/spec/policies/comment_policy_spec.rb +22 -6
  307. data/spec/policies/post_policy_spec.rb +21 -3
  308. data/spec/requests/routings_spec.rb +27 -17
  309. data/spec/spec_helper.rb +12 -1
  310. data/spec/support/database_cleaner.rb +5 -5
  311. data/spec/support/domains.rb +18 -0
  312. data/spec/support/feature_macros.rb +18 -9
  313. data/storytime.gemspec +59 -0
  314. data/vendor/assets/javascripts/.DS_Store +0 -0
  315. data/vendor/assets/javascripts/codemirror/modes/css.js +717 -0
  316. data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +120 -0
  317. data/vendor/assets/javascripts/codemirror/modes/javascript.js +686 -0
  318. data/vendor/assets/javascripts/codemirror/modes/liquid.js +40 -0
  319. data/vendor/assets/javascripts/codemirror/modes/overlay.js +85 -0
  320. data/vendor/assets/javascripts/codemirror/{xml.js → modes/xml.js} +2 -2
  321. data/vendor/assets/javascripts/medium-editor.min.js +2450 -0
  322. data/vendor/assets/javascripts/phantom_js_bind_polyfill.js +24 -0
  323. data/vendor/assets/javascripts/tidy.js +30 -0
  324. data/vendor/assets/stylesheets/.DS_Store +0 -0
  325. data/vendor/assets/stylesheets/chosen-bootstrap-3.css +148 -0
  326. data/vendor/assets/stylesheets/{chosen.css.scss → chosen.scss} +1 -1
  327. data/vendor/assets/stylesheets/disable-transitions-for-test-env.css +7 -0
  328. data/vendor/assets/stylesheets/medium-editor-default.min.css +1 -0
  329. data/vendor/assets/stylesheets/medium-editor.min.css +1 -0
  330. metadata +297 -47
  331. data/app/assets/stylesheets/storytime/admin.css.scss +0 -121
  332. data/app/assets/stylesheets/storytime/application.css.scss +0 -22
  333. data/app/assets/stylesheets/storytime/layout.css.scss +0 -17
  334. data/app/assets/stylesheets/storytime/media.css.scss +0 -68
  335. data/app/assets/stylesheets/storytime/pagination.css.scss +0 -4
  336. data/app/assets/stylesheets/storytime/posts.css.scss +0 -30
  337. data/app/assets/stylesheets/storytime/versions.css.scss +0 -21
  338. data/app/helpers/storytime/dashboard/posts_helper.rb +0 -21
  339. data/app/views/storytime/blog_posts/_blog_post.html.erb +0 -8
  340. data/app/views/storytime/dashboard/posts/_basic_new_post_button.html.erb +0 -3
  341. data/app/views/storytime/dashboard/posts/_new_post_dropdown_button.html.erb +0 -10
  342. data/app/views/storytime/dashboard/sites/edit.html.erb +0 -25
  343. data/app/views/storytime/dashboard/snippets/_list.html.erb +0 -21
  344. data/app/views/storytime/dashboard/snippets/edit.html.erb +0 -13
  345. data/app/views/storytime/dashboard/snippets/index.html.erb +0 -13
  346. data/app/views/storytime/dashboard/snippets/new.html.erb +0 -12
  347. data/app/views/storytime/dashboard/subscriptions/edit.html.erb +0 -10
  348. data/app/views/storytime/dashboard/subscriptions/index.html.erb +0 -19
  349. data/app/views/storytime/dashboard/subscriptions/new.html.erb +0 -9
  350. data/app/views/storytime/dashboard/users/_user.html.erb +0 -11
  351. data/app/views/storytime/dashboard/users/edit.html.erb +0 -10
  352. data/app/views/storytime/dashboard/users/index.html.erb +0 -22
  353. data/app/views/storytime/dashboard/users/new.html.erb +0 -11
  354. data/spec/lib/storytime_spec.rb +0 -23
  355. data/vendor/assets/javascripts/codemirror/codemirror.js +0 -7831
  356. data/vendor/assets/javascripts/summernote.js +0 -5338
  357. data/vendor/assets/stylesheets/codemirror/codemirror.css +0 -309
  358. data/vendor/assets/stylesheets/codemirror/monokai.css +0 -31
  359. data/vendor/assets/stylesheets/summernote.css +0 -1
@@ -1,16 +1 @@
1
- class Storytime.Dashboard.Sites
2
- initNew: ()->
3
- @initForm()
4
-
5
- initEdit: ()->
6
- @initForm()
7
-
8
- initUpdate: ()->
9
- @initForm()
10
-
11
- initForm: ()->
12
- $("#site_root_page_content").change ()->
13
- if @value == "page"
14
- $(".site_root_post_id").removeClass("hide")
15
- else
16
- $(".site_root_post_id").addClass("hide")
1
+ class Storytime.Dashboard.Sites
@@ -1,5 +1,8 @@
1
1
  class Storytime.Dashboard.Snippets
2
2
  init: ()->
3
- @editor = new Storytime.Dashboard.Editor()
4
- @editor.initMedia()
5
- @editor.initWysiwyg()
3
+ (new Storytime.Dashboard.Wysiwyg()).init()
4
+
5
+ $(document).on('ajax:success', '.edit-snippet-form', (e, data, status, xhr) ->
6
+ unless $(e.target).hasClass("storytime-modal-trigger")
7
+ $(".storytime-snippet-#{data.id} .snippet-content").html(data.content)
8
+ )
@@ -0,0 +1,17 @@
1
+ class Storytime.Dashboard.Tags
2
+ init: () ->
3
+ # Add new tags
4
+ $(".tags-input").each ->
5
+ tagsInput = $(this)
6
+ searchInput = tagsInput.next("div").find(".search-field").children("input")
7
+ searchInput.on 'keyup', (e) ->
8
+ if e.which is 13 and searchInput.val().length > 0
9
+ searched_tag = searchInput.val()
10
+ tagsInput.append('<option value="nv__' + searched_tag + '">' + searched_tag + '</option>')
11
+
12
+ selected_tags = tagsInput.val() || []
13
+ selected_tags.push "nv__#{searched_tag}"
14
+
15
+ tagsInput.val selected_tags
16
+ tagsInput.trigger 'chosen:updated'
17
+ return
@@ -0,0 +1,10 @@
1
+ class Storytime.Dashboard.Users
2
+ initIndex: () ->
3
+ $(".chosen").chosen
4
+ width: '100%'
5
+
6
+ $(document).on "ajax:success", ".new_membership", (e, data, status, xhr) ->
7
+ console.log data.html
8
+ $("#storytime-modal .modal-content").html(data.html)
9
+ $(".chosen").chosen
10
+ width: '100%'
@@ -0,0 +1,183 @@
1
+ class Storytime.Dashboard.Wysiwyg
2
+ mediumEditorOptions =
3
+ buttons: ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote', 'unorderedlist', 'orderedlist', 'pre']
4
+ toolbarAlign: 'center'
5
+ buttonLabels: 'fontawesome'
6
+
7
+ codeMirrorOptions =
8
+ mode: 'htmlmixed'
9
+ theme: 'solarized dark'
10
+ tabSize: 2
11
+ autoCloseTags: true
12
+ lineNumbers: true
13
+
14
+ tidyOptions =
15
+ "indent": "auto",
16
+ "indent-spaces": 2,
17
+ "wrap": 80,
18
+ "markup": true,
19
+ "output-xml": false,
20
+ "numeric-entities": true,
21
+ "quote-marks": true,
22
+ "quote-nbsp": false,
23
+ "show-body-only": true,
24
+ "quote-ampersand": false,
25
+ "break-before-br": true,
26
+ "uppercase-tags": false,
27
+ "uppercase-attributes": false,
28
+ "drop-font-tags": true,
29
+ "tidy-mark": false
30
+
31
+ init: () ->
32
+ self = @
33
+ self.bindTogglesToPanels()
34
+ mediumEditor = self.setupMedium()
35
+
36
+ $(".wysiwyg").each () ->
37
+ unless $(this).find(".CodeMirror").length > 0
38
+ codeMirror = CodeMirror.fromTextArea $(this).find(".codemirror")[0], codeMirrorOptions
39
+
40
+ self.bindCodeMirror $(this), codeMirror
41
+ self.bindMedium $(this), codeMirror
42
+ self.bindCodeToggle $(this), codeMirror, mediumEditor
43
+ self.bindActionPanel $(this), mediumEditor
44
+
45
+ $("[data-toggle='codemirror']").click ->
46
+ self.closeImageControls()
47
+ mediumEditor.activate()
48
+
49
+ $("body").click (e) ->
50
+ target = $(e.target)
51
+ if !target.is(".medium-editor img") && !target.hasClass("medium-image-controls") && !(target.closest(".medium-image-controls").length > 0) && $('.medium-image-controls').is(":visible")
52
+ self.closeImageControls()
53
+ mediumEditor.activate()
54
+
55
+ $("body").on 'click', '.medium-editor img', (e) ->
56
+ active = $(this).hasClass("medium-active-image")
57
+ unless active
58
+ $(".medium-editor img").removeClass("medium-active-image")
59
+ $(this).addClass "medium-active-image"
60
+ $("#medium-image-width").val($(this)[0].style.width)
61
+ $("#medium-image-height").val($(this)[0].style.height)
62
+ $("#medium-image-button").hide()
63
+ $(".medium-image-controls").show()
64
+ mediumEditor.deactivate()
65
+
66
+ $('body').on "keyup", "#medium-image-width", () ->
67
+ if $(this).val() == "" || $(this).val() == "auto"
68
+ $(".medium-active-image").css("width", "")
69
+ $("#medium-image-height").val("")
70
+ $("#medium-image-width").val("")
71
+ else
72
+ $(".medium-active-image").css("width", $(this).val())
73
+ $(".medium-active-image").css("height", "")
74
+ $("#medium-image-height").val($(".medium-active-image").css("height"))
75
+
76
+ $('body').on "keyup", "#medium-image-height", () ->
77
+ # set the height, then find the new width and set that and remove the height so image remains responsive
78
+ $(".medium-active-image").css("width", "")
79
+ $(".medium-active-image").css("height", $(this).val())
80
+ newWidth = $(".medium-active-image").css("width")
81
+ $("#medium-image-width").val(newWidth)
82
+ $(".medium-active-image").css("width", newWidth)
83
+ $(".medium-active-image").css("height", "")
84
+
85
+ $('body').on "click", ".medium-image-float", () ->
86
+ direction = $(this).data("float")
87
+ image = $(".medium-active-image")
88
+ switch direction
89
+ when "left" then image.removeClass("pull-right pull-left").addClass("pull-left")
90
+ when "right" then image.removeClass("pull-right pull-left").addClass("pull-right")
91
+ when "none" then image.removeClass("pull-right pull-left")
92
+
93
+ $('body').on "click", ".medium-image-delete", () ->
94
+ image = $(".medium-active-image")
95
+ image.remove()
96
+ self.updateFromMediumEditor()
97
+ self.closeImageControls()
98
+ mediumEditor.activate()
99
+
100
+ openImageControls: (image) ->
101
+ console.log image
102
+ image.addClass("medium-active-image")
103
+ $("#medium-image-width").val(image[0].style.width)
104
+ $("#medium-image-height").val(image[0].style.height)
105
+ $("#medium-image-button").hide()
106
+ $(".medium-image-controls").show()
107
+
108
+ closeImageControls: ->
109
+ $(".medium-editor img").removeClass("medium-active-image")
110
+ $("#medium-image-button").show()
111
+ $(".medium-image-controls").hide()
112
+ @updateFromMediumEditor()
113
+
114
+ updateFromMediumEditor: ->
115
+ $('.medium-editor').each ->
116
+ input = $($(this).data('input'))
117
+ codemirror = input.siblings('.CodeMirror')[0].CodeMirror
118
+ html = $(this).html()
119
+ input.val(html)
120
+ codemirror.setValue(html)
121
+
122
+ setupMedium: ->
123
+ # Medium-editor keeps adding toolbars when this method gets triggered
124
+ # (i.e. when opening snippets modal on post edit page) and they all seem
125
+ # to get activated at the same time, so this clears out existing ones first
126
+ $('.medium-editor-toolbar').remove()
127
+ $('.medium-editor-anchor-preview').remove()
128
+ mediumEditor = new MediumEditor('.medium-editor', mediumEditorOptions)
129
+ mediumEditor
130
+
131
+ bindCodeMirror: (wysiwyg, codemirror) ->
132
+ codemirror.on "change", () ->
133
+ if wysiwyg.find(".CodeMirror").is(":visible")
134
+ code = codemirror.getValue()
135
+ wysiwyg.find(".medium-editor").html(code)
136
+ $(wysiwyg.find(".medium-editor").data('input')).val(code)
137
+
138
+ bindMedium: (wysiwyg, codemirror) ->
139
+ wysiwyg.find('.medium-editor').on 'input', () ->
140
+ input = $($(this).data('input'))
141
+ # html = tidy_html5 $(this).html(), tidyOptions
142
+ html = $(this).html()
143
+ input.val(html)
144
+ codemirror.setValue(html)
145
+
146
+ bindCodeToggle: (wysiwyg, codemirror, mediumEditor) ->
147
+ toggle = wysiwyg.find("[data-toggle='codemirror']")
148
+ unless toggle.hasClass "bound"
149
+ toggle.addClass("bound")
150
+ wysiwyg.on "click", "[data-toggle='codemirror']", () ->
151
+ editor = wysiwyg.find('.editor')
152
+ code = wysiwyg.find('.CodeMirror')
153
+ editor.toggle()
154
+ code.toggle()
155
+
156
+ html = tidy_html5 wysiwyg.find('.medium-editor').html(), tidyOptions
157
+ codemirror.setValue(html)
158
+
159
+ codemirror.refresh()
160
+ if code.is(":visible")
161
+ $(this).children("i").removeClass("fa-code").addClass("fa-font")
162
+ mediumEditor.deactivate()
163
+ $("#storytime-modal").addClass("modal-wide")
164
+ else
165
+ $(this).children("i").removeClass("fa-font").addClass("fa-code")
166
+ mediumEditor.activate()
167
+ $("#storytime-modal").removeClass("modal-wide")
168
+
169
+ $("#storytime-modal").on 'hide.bs.modal', ->
170
+ $(this).removeClass "modal-wide"
171
+
172
+ bindActionPanel: (wysiwyg, mediumEditor) ->
173
+ $(".post-action-panel").on "show.bs.collapse", ->
174
+ mediumEditor.activate()
175
+ wysiwyg.find('.editor').show()
176
+ wysiwyg.find('.CodeMirror').hide()
177
+
178
+ bindTogglesToPanels: () ->
179
+ $(".post-action-panel").on "show.bs.collapse", ->
180
+ $("[data-toggle='codemirror']").hide()
181
+
182
+ $(".post-action-panel").on "hide.bs.collapse", ->
183
+ $("[data-toggle='codemirror']").show()
@@ -0,0 +1,70 @@
1
+ .btn-primary.btn-outline:active, .btn-primary.btn-outline:focus {
2
+ color: #fff;
3
+ }
4
+
5
+ .btn {
6
+ text-transform: uppercase;
7
+ font-weight: lighter;
8
+ border-radius: 0;
9
+ @include transition(0.3s);
10
+
11
+ &.btn-delete-resource {
12
+ i {
13
+ position: relative;
14
+ top: 1px;
15
+ }
16
+ }
17
+
18
+ &.btn-icon, &.btn-icon:active, &.btn-icon:focus {
19
+ font-size: 28px;
20
+ line-height: 30px;
21
+ padding: 0;
22
+ border: none;
23
+ outline: none;
24
+ @include box-shadow(none);
25
+ background: transparent;
26
+
27
+ &.rotate-on-hover {
28
+ &:hover {
29
+ @include rotate(45deg);
30
+ }
31
+ }
32
+
33
+ &:hover {
34
+ background: transparent;
35
+ }
36
+
37
+ i {
38
+ position: relative;
39
+ top: 2px;
40
+ }
41
+ }
42
+
43
+ &.margin-right {
44
+ margin-right: 10px;
45
+ }
46
+
47
+ &.margin-left {
48
+ margin-left: 10px;
49
+ }
50
+ }
51
+
52
+ .btn-primary {
53
+ @include button-variant($st-btn-primary-color, $st-btn-primary-bg, $st-btn-primary-border);
54
+ }
55
+
56
+ .btn-danger {
57
+ @include button-variant($st-btn-danger-color, $st-btn-danger-bg, $st-btn-danger-border);
58
+ }
59
+
60
+ .btn-outline {
61
+ background-color: transparent;
62
+
63
+ &.btn-primary {
64
+ @include btn-outline-variant($st-btn-primary-color, $st-btn-primary-bg);
65
+ }
66
+
67
+ &.btn-danger {
68
+ @include btn-outline-variant($st-btn-danger-color, $st-btn-danger-bg);
69
+ }
70
+ }
@@ -0,0 +1,5 @@
1
+ .dropdown-menu {
2
+ border: 1px solid $st-dropdown-fallback-border; // IE8 fallback
3
+ border: 1px solid $st-dropdown-border;
4
+ border-radius: 0;
5
+ }
@@ -0,0 +1,3 @@
1
+ .form-control {
2
+ border-radius: 0;
3
+ }
@@ -0,0 +1,13 @@
1
+ .list-group-item {
2
+ margin-bottom: 0;
3
+ border: none;
4
+ border-bottom: 1px solid #ddd;
5
+ color: $list-group-link-color;
6
+
7
+ &:first-child {
8
+ border-radius: 0;
9
+ }
10
+ &:last-child {
11
+ border-radius: 0;
12
+ }
13
+ }
@@ -0,0 +1,14 @@
1
+ .pagination {
2
+ margin: 0;
3
+
4
+ > .active > a,
5
+ > .active > span {
6
+ &,
7
+ &:hover,
8
+ &:focus {
9
+ color: $st-pagination-active-color;
10
+ background-color: $st-pagination-active-bg;
11
+ border-color: $st-pagination-active-border;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,8 @@
1
+ .no-padding {
2
+ padding: 0;
3
+ }
4
+
5
+ .panel-title-block-link {
6
+ display: block;
7
+ padding: 10px 15px;
8
+ }
@@ -0,0 +1,38 @@
1
+ .nav-tabs {
2
+ border-bottom: 1px solid $st-nav-tabs-border-color;
3
+ > li {
4
+
5
+ // Actual tabs (as links)
6
+ > a {
7
+ color: $text-color;
8
+ font-size: 0.9em;
9
+ text-transform: uppercase;
10
+ border-radius: 0;
11
+ @include transition(0.3s);
12
+
13
+ &:hover {
14
+ border-color: $st-nav-tabs-link-hover-border-color $st-nav-tabs-link-hover-border-color $st-nav-tabs-border-color;
15
+ }
16
+
17
+ i {
18
+ color: $st-brand-primary;
19
+ font-size: 1.3em;
20
+ }
21
+
22
+ .hidden-xs {
23
+ margin-left: 5px;
24
+ }
25
+ }
26
+
27
+ // Active state, and its :hover to override normal :hover
28
+ &.active > a {
29
+ &,
30
+ &:hover,
31
+ &:focus {
32
+ border: 1px solid $st-nav-tabs-active-link-hover-border-color;
33
+ border-bottom-color: $st-brand-primary;
34
+ color: $st-brand-primary;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,13 @@
1
+ h1, h2, h3, h4, h5, h6,
2
+ .h1, .h2, .h3, .h4, .h5, .h6 {
3
+ font-family: $st-headings-font-family;
4
+ font-weight: $st-headings-font-weight;
5
+ }
6
+
7
+ .serif {
8
+ font-family: $st-font-family-serif;
9
+ }
10
+
11
+ .text-sans-serif {
12
+ font-family: $st-font-family-sans-serif;
13
+ }
@@ -0,0 +1,14 @@
1
+ .well {
2
+ background-color: #ECEBEB;
3
+ border: none;
4
+ @include box-shadow(none);
5
+ border-radius: 0;
6
+
7
+ .btn-primary {
8
+ background: #fff;
9
+
10
+ &:hover, &:focus, &:active {
11
+ color: $brand-primary;
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,42 @@
1
+
2
+ .flash {
3
+ position: fixed;
4
+ bottom: 20px;
5
+ left: 20px;
6
+ z-index: 10000;
7
+ .flash-notice, .flash-success {
8
+ padding: 10px 40px;
9
+ background: #9FBB58;
10
+ color: white;
11
+ }
12
+ .flash-error, .flash-alert {
13
+ padding: 10px 40px;
14
+ background: #E25440;
15
+ color: white;
16
+ }
17
+ }
18
+
19
+ .form-group.check_boxes {
20
+ margin-left: 20px;
21
+ }
22
+
23
+ .radio,
24
+ .checkbox {
25
+ margin-left: 20px;
26
+ }
27
+
28
+ .draft_saved {
29
+ color: #777777;
30
+ font-size: 0.55em;
31
+ font-style: normal;
32
+ }
33
+
34
+ .table-row-link {
35
+ &:hover {
36
+ cursor: pointer;
37
+ }
38
+
39
+ td {
40
+ line-height: 2.15 !important;
41
+ }
42
+ }
@@ -0,0 +1,75 @@
1
+ @import url(http://fonts.googleapis.com/css?family=Merriweather:400,300,700,900|Open+Sans:400,300,600);
2
+ @import "storytime/icons";
3
+
4
+ $st-brand-primary: #4B71C3;
5
+ $st-btn-primary-color: #fff !default;
6
+ $st-btn-primary-bg: $st-brand-primary !default;
7
+ $st-btn-primary-border: darken($st-btn-primary-bg, 5%) !default;
8
+
9
+ $st-brand-danger: #B22E46;
10
+ $st-btn-danger-color: #fff !default;
11
+ $st-btn-danger-bg: $st-brand-danger !default;
12
+ $st-btn-danger-border: darken($st-btn-danger-bg, 5%) !default;
13
+
14
+ $scroll-panel-line-height: 30px;
15
+ $scroll-panel-header-height: 65px;
16
+ $scroll-panel-header-padding: (($scroll-panel-header-height - $scroll-panel-line-height) / 2);
17
+
18
+ $st-pagination-active-color: #333;
19
+ $st-pagination-active-bg: #fff;
20
+ $st-pagination-active-border: #ddd;
21
+
22
+ $st-nav-tabs-border-color: transparent;
23
+ $st-nav-tabs-link-hover-border-color: transparent;
24
+ $st-nav-tabs-active-link-hover-border-color: transparent;
25
+
26
+ $st-dropdown-border: #333;
27
+ $st-dropdown-fallback-border: #333;
28
+
29
+ $st-font-family-sans-serif: 'Open Sans', sans-serif;
30
+ $st-font-family-serif: 'Merriweather', serif;
31
+ $st-headings-font-family: $st-font-family-serif;
32
+ $st-headings-font-weight: 700;
33
+
34
+ @import "bootstrap-sprockets";
35
+ @import "bootstrap";
36
+ @import "font-awesome-sprockets";
37
+ @import "font-awesome";
38
+ @import "leather";
39
+ @import "jquery-ui/core";
40
+ @import "jquery-ui/datepicker";
41
+ @import "jquery-ui/theme";
42
+
43
+ @import "chosen";
44
+ @import "chosen-bootstrap-3";
45
+ @import "codemirror";
46
+ @import "codemirror/themes/solarized";
47
+ @import "jquery.ui.timepicker";
48
+ @import "medium-editor.min";
49
+ @import "medium-editor-default.min";
50
+
51
+ .storytime {
52
+ font-family: $st-font-family-sans-serif;
53
+
54
+ @import "storytime/buttons";
55
+ @import "storytime/dropdowns";
56
+ @import "storytime/forms";
57
+ @import "storytime/list-group";
58
+ @import "storytime/pagination";
59
+ @import "storytime/panels";
60
+ @import "storytime/tabs";
61
+ @import "storytime/type";
62
+ @import "storytime/wells";
63
+
64
+ @import "storytime/admin";
65
+ @import "storytime/media";
66
+ @import "storytime/modals";
67
+ @import "storytime/posts";
68
+ @import "storytime/versions";
69
+ @import "storytime/navigation";
70
+ @import "storytime/scroll-panels";
71
+ }
72
+
73
+ @import "storytime/snippets";
74
+ @import "storytime/layout";
75
+ @import "storytime/comments";
@@ -0,0 +1,79 @@
1
+ @charset "UTF-8";
2
+
3
+ /* storytime-icons */
4
+ @font-face {
5
+ font-family: "storytime-icons";
6
+ src:url("https://fontastic.s3.amazonaws.com/ous3EcA2XoT3aZKL2pCQWB/fonts/1423165812.eot");
7
+ src:url("https://fontastic.s3.amazonaws.com/ous3EcA2XoT3aZKL2pCQWB/fonts/1423165812.eot?#iefix") format("embedded-opentype"),
8
+ url("https://fontastic.s3.amazonaws.com/ous3EcA2XoT3aZKL2pCQWB/fonts/1423165812.woff") format("woff"),
9
+ url("https://fontastic.s3.amazonaws.com/ous3EcA2XoT3aZKL2pCQWB/fonts/1423165812.ttf") format("truetype"),
10
+ url("https://fontastic.s3.amazonaws.com/ous3EcA2XoT3aZKL2pCQWB/fonts/1423165812.svg#1423165812") format("svg");
11
+ font-weight: normal;
12
+ font-style: normal;
13
+ }
14
+
15
+ [data-icon]:before {
16
+ font-family: "storytime-icons" !important;
17
+ content: attr(data-icon);
18
+ font-style: normal !important;
19
+ font-weight: normal !important;
20
+ font-variant: normal !important;
21
+ text-transform: none !important;
22
+ speak: none;
23
+ line-height: 1;
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ }
27
+
28
+ [class^="icon-st-icons"]:before,
29
+ [class*=" icon-st-icons"]:before {
30
+ font-family: "storytime-icons" !important;
31
+ font-style: normal !important;
32
+ font-weight: normal !important;
33
+ font-variant: normal !important;
34
+ text-transform: none !important;
35
+ speak: none;
36
+ line-height: 1;
37
+ -webkit-font-smoothing: antialiased;
38
+ -moz-osx-font-smoothing: grayscale;
39
+ }
40
+
41
+ .icon-st-icons-st-logo:before {
42
+ content: "m";
43
+ }
44
+ .icon-st-icons-delete:before {
45
+ content: "a";
46
+ }
47
+ .icon-st-icons-edit:before {
48
+ content: "b";
49
+ }
50
+ .icon-st-icons-images:before {
51
+ content: "c";
52
+ }
53
+ .icon-st-icons-logout:before {
54
+ content: "d";
55
+ }
56
+ .icon-st-icons-permission:before {
57
+ content: "e";
58
+ }
59
+ .icon-st-icons-profile:before {
60
+ content: "f";
61
+ }
62
+ .icon-st-icons-settings:before {
63
+ content: "g";
64
+ }
65
+ .icon-st-icons-subscribe:before {
66
+ content: "h";
67
+ }
68
+ .icon-st-icons-trash:before {
69
+ content: "i";
70
+ }
71
+ .icon-st-icons-users:before {
72
+ content: "j";
73
+ }
74
+ .icon-st-icons-utilitymenu:before {
75
+ content: "k";
76
+ }
77
+ .icon-st-icons-versions:before {
78
+ content: "l";
79
+ }
@@ -0,0 +1,21 @@
1
+ /* Sticky footer styles
2
+ -------------------------------------------------- */
3
+ html {
4
+ position: relative;
5
+ height: auto;
6
+ min-height: 100%;
7
+ }
8
+ body {
9
+ /* Margin bottom by footer height */
10
+ margin-bottom: 60px;
11
+ height: auto;
12
+ }
13
+ .footer {
14
+ position: absolute;
15
+ bottom: 0;
16
+ width: 100%;
17
+ /* Set the fixed height of the footer here */
18
+ height: 60px;
19
+ background-color: #f5f5f5;
20
+ padding-top: 20px;
21
+ }