stylish 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (458) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -10
  3. data/ARCHITECTURE.md +96 -0
  4. data/Gemfile +8 -0
  5. data/README.md +25 -29
  6. data/Rakefile +24 -0
  7. data/bin/stylish +33 -0
  8. data/lib/stylish.rb +36 -1
  9. data/lib/stylish/configuration.rb +37 -0
  10. data/lib/stylish/core_ext.rb +20 -0
  11. data/lib/stylish/developer.rb +13 -0
  12. data/lib/stylish/developer/config.rb +19 -0
  13. data/lib/stylish/developer/environment.rb +75 -0
  14. data/lib/stylish/developer/listing.rb +85 -0
  15. data/lib/stylish/developer/model_delegator.rb +51 -0
  16. data/lib/stylish/developer/modification.rb +139 -0
  17. data/lib/stylish/developer/path.rb +168 -0
  18. data/lib/stylish/developer/route.rb +97 -0
  19. data/lib/stylish/developer/server.rb +40 -0
  20. data/lib/stylish/engine.rb +12 -0
  21. data/lib/stylish/fs.rb +59 -0
  22. data/lib/stylish/manifest.rb +100 -0
  23. data/lib/stylish/models.rb +119 -0
  24. data/lib/stylish/models/component.rb +19 -0
  25. data/lib/stylish/models/layout.rb +19 -0
  26. data/lib/stylish/models/library.rb +134 -0
  27. data/lib/stylish/models/package.rb +156 -0
  28. data/lib/stylish/models/script.rb +10 -0
  29. data/lib/stylish/models/stylesheet.rb +9 -0
  30. data/lib/stylish/models/template.rb +9 -0
  31. data/lib/stylish/models/theme.rb +8 -0
  32. data/lib/stylish/util.rb +20 -0
  33. data/lib/stylish/version.rb +1 -1
  34. data/library/config.json +4 -0
  35. data/library/second-theme/manifest.json +8 -0
  36. data/library/second-theme/manifest.yml +6 -0
  37. data/library/second-theme/templates/footers/footer-01.html +3 -0
  38. data/library/second-theme/templates/footers/footer-02.html +3 -0
  39. data/library/second-theme/templates/headers/header-01.html +3 -0
  40. data/library/second-theme/templates/headers/header-02.html +3 -0
  41. data/library/second-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
  42. data/library/second-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
  43. data/library/test-theme/components/footers/footer-01.json +5 -0
  44. data/library/test-theme/components/footers/footer-02.json +5 -0
  45. data/library/test-theme/components/headers/header-01.json +5 -0
  46. data/library/test-theme/components/headers/header-02.json +5 -0
  47. data/library/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
  48. data/library/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
  49. data/library/test-theme/manifest.json +8 -0
  50. data/library/test-theme/manifest.yml +6 -0
  51. data/library/test-theme/pages/page-01.json +11 -0
  52. data/library/test-theme/templates/footers/footer-01.html +3 -0
  53. data/library/test-theme/templates/footers/footer-02.html +3 -0
  54. data/library/test-theme/templates/headers/header-01.html +3 -0
  55. data/library/test-theme/templates/headers/header-02.html +3 -0
  56. data/library/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
  57. data/library/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
  58. data/library/test-theme/templates/layouts/standard-layout.html +10 -0
  59. data/spec/acceptance/listing_assets_spec.rb +20 -0
  60. data/spec/acceptance/model_browsing_spec.rb +21 -0
  61. data/spec/acceptance/model_creation_spec.rb +16 -0
  62. data/spec/acceptance/model_deleting_spec.rb +10 -0
  63. data/spec/acceptance/model_updating_spec.rb +12 -0
  64. data/spec/acceptance/modifying_assets_spec.rb +50 -0
  65. data/spec/acceptance/server_info_spec.rb +10 -0
  66. data/spec/dummy/README.rdoc +28 -0
  67. data/spec/dummy/Rakefile +6 -0
  68. data/spec/dummy/app/assets/images/.keep +0 -0
  69. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  70. data/spec/dummy/app/assets/javascripts/test.coffee +4 -0
  71. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  72. data/spec/dummy/app/assets/stylesheets/test.css.scss +6 -0
  73. data/spec/dummy/app/assets/stylesheets/writable/existing.scss.css +0 -0
  74. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  75. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  76. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  77. data/spec/dummy/app/mailers/.keep +0 -0
  78. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  79. data/spec/dummy/bin/bundle +3 -0
  80. data/spec/dummy/bin/rails +4 -0
  81. data/spec/dummy/bin/rake +4 -0
  82. data/spec/dummy/config.ru +4 -0
  83. data/spec/dummy/config/application.rb +30 -0
  84. data/spec/dummy/config/boot.rb +5 -0
  85. data/spec/dummy/config/database.yml +25 -0
  86. data/spec/dummy/config/environment.rb +5 -0
  87. data/spec/dummy/config/environments/development.rb +37 -0
  88. data/spec/dummy/config/environments/production.rb +82 -0
  89. data/spec/dummy/config/environments/test.rb +39 -0
  90. data/spec/dummy/config/initializers/assets.rb +8 -0
  91. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  92. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  93. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  94. data/spec/dummy/config/initializers/inflections.rb +16 -0
  95. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  96. data/spec/dummy/config/initializers/session_store.rb +3 -0
  97. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  98. data/spec/dummy/config/locales/en.yml +23 -0
  99. data/spec/dummy/config/routes.rb +3 -0
  100. data/spec/dummy/config/secrets.yml +22 -0
  101. data/spec/dummy/db/migrate/20140822065900_create_books.rb +11 -0
  102. data/spec/dummy/db/migrate/20140822065916_create_authors.rb +9 -0
  103. data/spec/dummy/db/migrate/20140824215902_create_users.rb +10 -0
  104. data/spec/dummy/db/migrate/20140826193259_create_libraries.rb +10 -0
  105. data/spec/dummy/db/schema.rb +37 -0
  106. data/spec/dummy/db/test.sqlite3 +0 -0
  107. data/spec/dummy/lib/assets/.keep +0 -0
  108. data/spec/dummy/log/.keep +0 -0
  109. data/spec/dummy/public/404.html +67 -0
  110. data/spec/dummy/public/422.html +67 -0
  111. data/spec/dummy/public/500.html +66 -0
  112. data/spec/dummy/public/favicon.ico +0 -0
  113. data/spec/fixtures/config.json +3 -0
  114. data/spec/fixtures/test-theme/components/footers/footer-01.json +5 -0
  115. data/spec/fixtures/test-theme/components/footers/footer-02.json +5 -0
  116. data/spec/fixtures/test-theme/components/headers/header-01.json +5 -0
  117. data/spec/fixtures/test-theme/components/headers/header-02.json +5 -0
  118. data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-01.json +5 -0
  119. data/spec/fixtures/test-theme/components/landing-page-blocks/landing-page-02.json +5 -0
  120. data/spec/fixtures/test-theme/manifest.json +8 -0
  121. data/spec/fixtures/test-theme/manifest.yml +6 -0
  122. data/spec/fixtures/test-theme/pages/page-01.json +11 -0
  123. data/spec/fixtures/test-theme/templates/footers/footer-01.html +3 -0
  124. data/spec/fixtures/test-theme/templates/footers/footer-02.html +3 -0
  125. data/spec/fixtures/test-theme/templates/headers/header-01.html +3 -0
  126. data/spec/fixtures/test-theme/templates/headers/header-02.html +3 -0
  127. data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-01.html +3 -0
  128. data/spec/fixtures/test-theme/templates/landing-page-blocks/landing-page-block-02.html +3 -0
  129. data/spec/fixtures/test-theme/templates/layouts/standard-01.html +9 -0
  130. data/spec/lib/stylish/configuration_spec.rb +8 -0
  131. data/spec/lib/stylish/developer/path_spec.rb +36 -0
  132. data/spec/lib/stylish/developer/route_spec.rb +5 -0
  133. data/spec/lib/stylish/manifest_spec.rb +48 -0
  134. data/spec/lib/stylish/models/library_spec.rb +38 -0
  135. data/spec/lib/stylish/models/package_spec.rb +35 -0
  136. data/spec/lib/stylish/models_spec.rb +12 -0
  137. data/spec/spec_helper.rb +38 -0
  138. data/spec/support/json_helper.rb +7 -0
  139. data/spec/test.css.scss +6 -0
  140. data/stylish.gemspec +17 -2
  141. data/support/editor-app/.gitignore +2 -0
  142. data/support/editor-app/development/bower.json +9 -0
  143. data/support/editor-app/development/package.json +28 -0
  144. data/support/editor-app/development/semantic/components/accordion.css +257 -0
  145. data/support/editor-app/development/semantic/components/accordion.js +558 -0
  146. data/support/editor-app/development/semantic/components/accordion.min.css +11 -0
  147. data/support/editor-app/development/semantic/components/accordion.min.js +11 -0
  148. data/support/editor-app/development/semantic/components/ad.css +277 -0
  149. data/support/editor-app/development/semantic/components/ad.min.css +11 -0
  150. data/support/editor-app/development/semantic/components/api.js +851 -0
  151. data/support/editor-app/development/semantic/components/api.min.js +11 -0
  152. data/support/editor-app/development/semantic/components/breadcrumb.css +125 -0
  153. data/support/editor-app/development/semantic/components/breadcrumb.min.css +11 -0
  154. data/support/editor-app/development/semantic/components/button.css +2391 -0
  155. data/support/editor-app/development/semantic/components/button.min.css +11 -0
  156. data/support/editor-app/development/semantic/components/card.css +758 -0
  157. data/support/editor-app/development/semantic/components/card.min.css +11 -0
  158. data/support/editor-app/development/semantic/components/checkbox.css +514 -0
  159. data/support/editor-app/development/semantic/components/checkbox.js +507 -0
  160. data/support/editor-app/development/semantic/components/checkbox.min.css +11 -0
  161. data/support/editor-app/development/semantic/components/checkbox.min.js +11 -0
  162. data/support/editor-app/development/semantic/components/comment.css +260 -0
  163. data/support/editor-app/development/semantic/components/comment.min.css +11 -0
  164. data/support/editor-app/development/semantic/components/dimmer.css +187 -0
  165. data/support/editor-app/development/semantic/components/dimmer.js +627 -0
  166. data/support/editor-app/development/semantic/components/dimmer.min.css +11 -0
  167. data/support/editor-app/development/semantic/components/dimmer.min.js +11 -0
  168. data/support/editor-app/development/semantic/components/divider.css +244 -0
  169. data/support/editor-app/development/semantic/components/divider.min.css +11 -0
  170. data/support/editor-app/development/semantic/components/dropdown.css +1085 -0
  171. data/support/editor-app/development/semantic/components/dropdown.js +1757 -0
  172. data/support/editor-app/development/semantic/components/dropdown.min.css +11 -0
  173. data/support/editor-app/development/semantic/components/dropdown.min.js +11 -0
  174. data/support/editor-app/development/semantic/components/feed.css +277 -0
  175. data/support/editor-app/development/semantic/components/feed.min.css +11 -0
  176. data/support/editor-app/development/semantic/components/flag.css +1017 -0
  177. data/support/editor-app/development/semantic/components/flag.min.css +11 -0
  178. data/support/editor-app/development/semantic/components/form.css +875 -0
  179. data/support/editor-app/development/semantic/components/form.js +1039 -0
  180. data/support/editor-app/development/semantic/components/form.min.css +11 -0
  181. data/support/editor-app/development/semantic/components/form.min.js +11 -0
  182. data/support/editor-app/development/semantic/components/grid.css +1816 -0
  183. data/support/editor-app/development/semantic/components/grid.min.css +11 -0
  184. data/support/editor-app/development/semantic/components/header.css +572 -0
  185. data/support/editor-app/development/semantic/components/header.min.css +11 -0
  186. data/support/editor-app/development/semantic/components/icon.css +2127 -0
  187. data/support/editor-app/development/semantic/components/icon.min.css +11 -0
  188. data/support/editor-app/development/semantic/components/image.css +275 -0
  189. data/support/editor-app/development/semantic/components/image.min.css +11 -0
  190. data/support/editor-app/development/semantic/components/input.css +455 -0
  191. data/support/editor-app/development/semantic/components/input.min.css +11 -0
  192. data/support/editor-app/development/semantic/components/item.css +458 -0
  193. data/support/editor-app/development/semantic/components/item.min.css +11 -0
  194. data/support/editor-app/development/semantic/components/label.css +930 -0
  195. data/support/editor-app/development/semantic/components/label.min.css +11 -0
  196. data/support/editor-app/development/semantic/components/list.css +879 -0
  197. data/support/editor-app/development/semantic/components/list.min.css +11 -0
  198. data/support/editor-app/development/semantic/components/loader.css +279 -0
  199. data/support/editor-app/development/semantic/components/loader.min.css +11 -0
  200. data/support/editor-app/development/semantic/components/menu.css +1596 -0
  201. data/support/editor-app/development/semantic/components/menu.min.css +11 -0
  202. data/support/editor-app/development/semantic/components/message.css +422 -0
  203. data/support/editor-app/development/semantic/components/message.min.css +11 -0
  204. data/support/editor-app/development/semantic/components/modal.css +431 -0
  205. data/support/editor-app/development/semantic/components/modal.js +860 -0
  206. data/support/editor-app/development/semantic/components/modal.min.css +11 -0
  207. data/support/editor-app/development/semantic/components/modal.min.js +11 -0
  208. data/support/editor-app/development/semantic/components/nag.css +149 -0
  209. data/support/editor-app/development/semantic/components/nag.js +477 -0
  210. data/support/editor-app/development/semantic/components/nag.min.css +11 -0
  211. data/support/editor-app/development/semantic/components/nag.min.js +11 -0
  212. data/support/editor-app/development/semantic/components/popup.css +294 -0
  213. data/support/editor-app/development/semantic/components/popup.js +1187 -0
  214. data/support/editor-app/development/semantic/components/popup.min.css +11 -0
  215. data/support/editor-app/development/semantic/components/popup.min.js +11 -0
  216. data/support/editor-app/development/semantic/components/progress.css +449 -0
  217. data/support/editor-app/development/semantic/components/progress.js +785 -0
  218. data/support/editor-app/development/semantic/components/progress.min.css +11 -0
  219. data/support/editor-app/development/semantic/components/progress.min.js +11 -0
  220. data/support/editor-app/development/semantic/components/rail.css +125 -0
  221. data/support/editor-app/development/semantic/components/rail.min.css +11 -0
  222. data/support/editor-app/development/semantic/components/rating.css +262 -0
  223. data/support/editor-app/development/semantic/components/rating.js +451 -0
  224. data/support/editor-app/development/semantic/components/rating.min.css +11 -0
  225. data/support/editor-app/development/semantic/components/rating.min.js +11 -0
  226. data/support/editor-app/development/semantic/components/reset.css +430 -0
  227. data/support/editor-app/development/semantic/components/reset.min.css +11 -0
  228. data/support/editor-app/development/semantic/components/reveal.css +294 -0
  229. data/support/editor-app/development/semantic/components/reveal.min.css +11 -0
  230. data/support/editor-app/development/semantic/components/search.css +330 -0
  231. data/support/editor-app/development/semantic/components/search.js +1055 -0
  232. data/support/editor-app/development/semantic/components/search.min.css +11 -0
  233. data/support/editor-app/development/semantic/components/search.min.js +11 -0
  234. data/support/editor-app/development/semantic/components/segment.css +590 -0
  235. data/support/editor-app/development/semantic/components/segment.min.css +11 -0
  236. data/support/editor-app/development/semantic/components/shape.css +155 -0
  237. data/support/editor-app/development/semantic/components/shape.js +830 -0
  238. data/support/editor-app/development/semantic/components/shape.min.css +11 -0
  239. data/support/editor-app/development/semantic/components/shape.min.js +11 -0
  240. data/support/editor-app/development/semantic/components/sidebar.css +621 -0
  241. data/support/editor-app/development/semantic/components/sidebar.js +1084 -0
  242. data/support/editor-app/development/semantic/components/sidebar.min.css +11 -0
  243. data/support/editor-app/development/semantic/components/sidebar.min.js +11 -0
  244. data/support/editor-app/development/semantic/components/site.css +147 -0
  245. data/support/editor-app/development/semantic/components/site.js +487 -0
  246. data/support/editor-app/development/semantic/components/site.min.css +11 -0
  247. data/support/editor-app/development/semantic/components/site.min.js +11 -0
  248. data/support/editor-app/development/semantic/components/state.js +690 -0
  249. data/support/editor-app/development/semantic/components/state.min.js +11 -0
  250. data/support/editor-app/development/semantic/components/statistic.css +410 -0
  251. data/support/editor-app/development/semantic/components/statistic.min.css +11 -0
  252. data/support/editor-app/development/semantic/components/step.css +433 -0
  253. data/support/editor-app/development/semantic/components/step.min.css +11 -0
  254. data/support/editor-app/development/semantic/components/sticky.css +80 -0
  255. data/support/editor-app/development/semantic/components/sticky.js +775 -0
  256. data/support/editor-app/development/semantic/components/sticky.min.css +11 -0
  257. data/support/editor-app/development/semantic/components/sticky.min.js +11 -0
  258. data/support/editor-app/development/semantic/components/tab.css +93 -0
  259. data/support/editor-app/development/semantic/components/tab.js +787 -0
  260. data/support/editor-app/development/semantic/components/tab.min.css +11 -0
  261. data/support/editor-app/development/semantic/components/tab.min.js +11 -0
  262. data/support/editor-app/development/semantic/components/table.css +999 -0
  263. data/support/editor-app/development/semantic/components/table.min.css +11 -0
  264. data/support/editor-app/development/semantic/components/transition.css +2152 -0
  265. data/support/editor-app/development/semantic/components/transition.js +936 -0
  266. data/support/editor-app/development/semantic/components/transition.min.css +11 -0
  267. data/support/editor-app/development/semantic/components/transition.min.js +11 -0
  268. data/support/editor-app/development/semantic/components/video.css +126 -0
  269. data/support/editor-app/development/semantic/components/video.js +540 -0
  270. data/support/editor-app/development/semantic/components/video.min.css +11 -0
  271. data/support/editor-app/development/semantic/components/video.min.js +11 -0
  272. data/support/editor-app/development/semantic/components/visibility.js +970 -0
  273. data/support/editor-app/development/semantic/components/visibility.min.js +11 -0
  274. data/support/editor-app/development/semantic/semantic.css +31768 -0
  275. data/support/editor-app/development/semantic/semantic.js +18317 -0
  276. data/support/editor-app/development/semantic/semantic.min.css +11 -0
  277. data/support/editor-app/development/semantic/semantic.min.js +17 -0
  278. data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.eot +0 -0
  279. data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.svg +450 -0
  280. data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
  281. data/support/editor-app/development/semantic/themes/basic/assets/fonts/icons.woff +0 -0
  282. data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.eot +0 -0
  283. data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.otf +0 -0
  284. data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.svg +504 -0
  285. data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.ttf +0 -0
  286. data/support/editor-app/development/semantic/themes/default/assets/fonts/icons.woff +0 -0
  287. data/support/editor-app/development/semantic/themes/default/assets/images/flags.png +0 -0
  288. data/support/editor-app/development/src/apis/index.coffee +35 -0
  289. data/support/editor-app/development/src/components/editor.cjsx +58 -0
  290. data/support/editor-app/development/src/components/editor_drawer.cjsx +7 -0
  291. data/support/editor-app/development/src/components/header.cjsx +12 -0
  292. data/support/editor-app/development/src/components/index.coffee +9 -0
  293. data/support/editor-app/development/src/components/menus/icon_grid.cjsx +0 -0
  294. data/support/editor-app/development/src/components/sidebar.cjsx +24 -0
  295. data/support/editor-app/development/src/components/tiled_grid.cjsx +35 -0
  296. data/support/editor-app/development/src/index.cjsx +82 -0
  297. data/support/editor-app/development/src/lib/util.coffee +48 -0
  298. data/support/editor-app/development/src/pages/home.cjsx +46 -0
  299. data/support/editor-app/development/src/pages/index.coffee +6 -0
  300. data/support/editor-app/development/src/pages/package_details.cjsx +55 -0
  301. data/support/editor-app/development/src/registry.coffee +35 -0
  302. data/support/editor-app/development/src/styles/components/tiled_grid.css.scss +5 -0
  303. data/support/editor-app/development/src/styles/index.css.scss +240 -0
  304. data/support/editor-app/development/src/sugar.cjsx +126 -0
  305. data/support/editor-app/development/webpack.config.js +53 -0
  306. data/support/editor-app/dist/base.css +0 -0
  307. data/support/editor-app/dist/toolit.js +62 -0
  308. data/support/editor-app/dist/toolkit.js +44573 -0
  309. data/support/editor-app/index.html +50 -0
  310. data/support/editor-app/package.json +15 -0
  311. data/support/editor-app/semantic/components/accordion.css +257 -0
  312. data/support/editor-app/semantic/components/accordion.js +558 -0
  313. data/support/editor-app/semantic/components/accordion.min.css +11 -0
  314. data/support/editor-app/semantic/components/accordion.min.js +11 -0
  315. data/support/editor-app/semantic/components/ad.css +277 -0
  316. data/support/editor-app/semantic/components/ad.min.css +11 -0
  317. data/support/editor-app/semantic/components/api.js +851 -0
  318. data/support/editor-app/semantic/components/api.min.js +11 -0
  319. data/support/editor-app/semantic/components/breadcrumb.css +125 -0
  320. data/support/editor-app/semantic/components/breadcrumb.min.css +11 -0
  321. data/support/editor-app/semantic/components/button.css +2391 -0
  322. data/support/editor-app/semantic/components/button.min.css +11 -0
  323. data/support/editor-app/semantic/components/card.css +758 -0
  324. data/support/editor-app/semantic/components/card.min.css +11 -0
  325. data/support/editor-app/semantic/components/checkbox.css +514 -0
  326. data/support/editor-app/semantic/components/checkbox.js +507 -0
  327. data/support/editor-app/semantic/components/checkbox.min.css +11 -0
  328. data/support/editor-app/semantic/components/checkbox.min.js +11 -0
  329. data/support/editor-app/semantic/components/comment.css +260 -0
  330. data/support/editor-app/semantic/components/comment.min.css +11 -0
  331. data/support/editor-app/semantic/components/dimmer.css +187 -0
  332. data/support/editor-app/semantic/components/dimmer.js +627 -0
  333. data/support/editor-app/semantic/components/dimmer.min.css +11 -0
  334. data/support/editor-app/semantic/components/dimmer.min.js +11 -0
  335. data/support/editor-app/semantic/components/divider.css +244 -0
  336. data/support/editor-app/semantic/components/divider.min.css +11 -0
  337. data/support/editor-app/semantic/components/dropdown.css +1085 -0
  338. data/support/editor-app/semantic/components/dropdown.js +1757 -0
  339. data/support/editor-app/semantic/components/dropdown.min.css +11 -0
  340. data/support/editor-app/semantic/components/dropdown.min.js +11 -0
  341. data/support/editor-app/semantic/components/feed.css +277 -0
  342. data/support/editor-app/semantic/components/feed.min.css +11 -0
  343. data/support/editor-app/semantic/components/flag.css +1017 -0
  344. data/support/editor-app/semantic/components/flag.min.css +11 -0
  345. data/support/editor-app/semantic/components/form.css +875 -0
  346. data/support/editor-app/semantic/components/form.js +1039 -0
  347. data/support/editor-app/semantic/components/form.min.css +11 -0
  348. data/support/editor-app/semantic/components/form.min.js +11 -0
  349. data/support/editor-app/semantic/components/grid.css +1816 -0
  350. data/support/editor-app/semantic/components/grid.min.css +11 -0
  351. data/support/editor-app/semantic/components/header.css +572 -0
  352. data/support/editor-app/semantic/components/header.min.css +11 -0
  353. data/support/editor-app/semantic/components/icon.css +2127 -0
  354. data/support/editor-app/semantic/components/icon.min.css +11 -0
  355. data/support/editor-app/semantic/components/image.css +275 -0
  356. data/support/editor-app/semantic/components/image.min.css +11 -0
  357. data/support/editor-app/semantic/components/input.css +455 -0
  358. data/support/editor-app/semantic/components/input.min.css +11 -0
  359. data/support/editor-app/semantic/components/item.css +458 -0
  360. data/support/editor-app/semantic/components/item.min.css +11 -0
  361. data/support/editor-app/semantic/components/label.css +930 -0
  362. data/support/editor-app/semantic/components/label.min.css +11 -0
  363. data/support/editor-app/semantic/components/list.css +879 -0
  364. data/support/editor-app/semantic/components/list.min.css +11 -0
  365. data/support/editor-app/semantic/components/loader.css +279 -0
  366. data/support/editor-app/semantic/components/loader.min.css +11 -0
  367. data/support/editor-app/semantic/components/menu.css +1596 -0
  368. data/support/editor-app/semantic/components/menu.min.css +11 -0
  369. data/support/editor-app/semantic/components/message.css +422 -0
  370. data/support/editor-app/semantic/components/message.min.css +11 -0
  371. data/support/editor-app/semantic/components/modal.css +431 -0
  372. data/support/editor-app/semantic/components/modal.js +860 -0
  373. data/support/editor-app/semantic/components/modal.min.css +11 -0
  374. data/support/editor-app/semantic/components/modal.min.js +11 -0
  375. data/support/editor-app/semantic/components/nag.css +149 -0
  376. data/support/editor-app/semantic/components/nag.js +477 -0
  377. data/support/editor-app/semantic/components/nag.min.css +11 -0
  378. data/support/editor-app/semantic/components/nag.min.js +11 -0
  379. data/support/editor-app/semantic/components/popup.css +294 -0
  380. data/support/editor-app/semantic/components/popup.js +1187 -0
  381. data/support/editor-app/semantic/components/popup.min.css +11 -0
  382. data/support/editor-app/semantic/components/popup.min.js +11 -0
  383. data/support/editor-app/semantic/components/progress.css +449 -0
  384. data/support/editor-app/semantic/components/progress.js +785 -0
  385. data/support/editor-app/semantic/components/progress.min.css +11 -0
  386. data/support/editor-app/semantic/components/progress.min.js +11 -0
  387. data/support/editor-app/semantic/components/rail.css +125 -0
  388. data/support/editor-app/semantic/components/rail.min.css +11 -0
  389. data/support/editor-app/semantic/components/rating.css +262 -0
  390. data/support/editor-app/semantic/components/rating.js +451 -0
  391. data/support/editor-app/semantic/components/rating.min.css +11 -0
  392. data/support/editor-app/semantic/components/rating.min.js +11 -0
  393. data/support/editor-app/semantic/components/reset.css +430 -0
  394. data/support/editor-app/semantic/components/reset.min.css +11 -0
  395. data/support/editor-app/semantic/components/reveal.css +294 -0
  396. data/support/editor-app/semantic/components/reveal.min.css +11 -0
  397. data/support/editor-app/semantic/components/search.css +330 -0
  398. data/support/editor-app/semantic/components/search.js +1055 -0
  399. data/support/editor-app/semantic/components/search.min.css +11 -0
  400. data/support/editor-app/semantic/components/search.min.js +11 -0
  401. data/support/editor-app/semantic/components/segment.css +590 -0
  402. data/support/editor-app/semantic/components/segment.min.css +11 -0
  403. data/support/editor-app/semantic/components/shape.css +155 -0
  404. data/support/editor-app/semantic/components/shape.js +830 -0
  405. data/support/editor-app/semantic/components/shape.min.css +11 -0
  406. data/support/editor-app/semantic/components/shape.min.js +11 -0
  407. data/support/editor-app/semantic/components/sidebar.css +621 -0
  408. data/support/editor-app/semantic/components/sidebar.js +1084 -0
  409. data/support/editor-app/semantic/components/sidebar.min.css +11 -0
  410. data/support/editor-app/semantic/components/sidebar.min.js +11 -0
  411. data/support/editor-app/semantic/components/site.css +147 -0
  412. data/support/editor-app/semantic/components/site.js +487 -0
  413. data/support/editor-app/semantic/components/site.min.css +11 -0
  414. data/support/editor-app/semantic/components/site.min.js +11 -0
  415. data/support/editor-app/semantic/components/state.js +690 -0
  416. data/support/editor-app/semantic/components/state.min.js +11 -0
  417. data/support/editor-app/semantic/components/statistic.css +410 -0
  418. data/support/editor-app/semantic/components/statistic.min.css +11 -0
  419. data/support/editor-app/semantic/components/step.css +433 -0
  420. data/support/editor-app/semantic/components/step.min.css +11 -0
  421. data/support/editor-app/semantic/components/sticky.css +80 -0
  422. data/support/editor-app/semantic/components/sticky.js +775 -0
  423. data/support/editor-app/semantic/components/sticky.min.css +11 -0
  424. data/support/editor-app/semantic/components/sticky.min.js +11 -0
  425. data/support/editor-app/semantic/components/tab.css +93 -0
  426. data/support/editor-app/semantic/components/tab.js +787 -0
  427. data/support/editor-app/semantic/components/tab.min.css +11 -0
  428. data/support/editor-app/semantic/components/tab.min.js +11 -0
  429. data/support/editor-app/semantic/components/table.css +999 -0
  430. data/support/editor-app/semantic/components/table.min.css +11 -0
  431. data/support/editor-app/semantic/components/transition.css +2152 -0
  432. data/support/editor-app/semantic/components/transition.js +936 -0
  433. data/support/editor-app/semantic/components/transition.min.css +11 -0
  434. data/support/editor-app/semantic/components/transition.min.js +11 -0
  435. data/support/editor-app/semantic/components/video.css +126 -0
  436. data/support/editor-app/semantic/components/video.js +540 -0
  437. data/support/editor-app/semantic/components/video.min.css +11 -0
  438. data/support/editor-app/semantic/components/video.min.js +11 -0
  439. data/support/editor-app/semantic/components/visibility.js +970 -0
  440. data/support/editor-app/semantic/components/visibility.min.js +11 -0
  441. data/support/editor-app/semantic/semantic.css +31768 -0
  442. data/support/editor-app/semantic/semantic.js +18317 -0
  443. data/support/editor-app/semantic/semantic.min.css +11 -0
  444. data/support/editor-app/semantic/semantic.min.js +17 -0
  445. data/support/editor-app/semantic/themes/basic/assets/fonts/icons.eot +0 -0
  446. data/support/editor-app/semantic/themes/basic/assets/fonts/icons.svg +450 -0
  447. data/support/editor-app/semantic/themes/basic/assets/fonts/icons.ttf +0 -0
  448. data/support/editor-app/semantic/themes/basic/assets/fonts/icons.woff +0 -0
  449. data/support/editor-app/semantic/themes/default/assets/fonts/icons.eot +0 -0
  450. data/support/editor-app/semantic/themes/default/assets/fonts/icons.otf +0 -0
  451. data/support/editor-app/semantic/themes/default/assets/fonts/icons.svg +504 -0
  452. data/support/editor-app/semantic/themes/default/assets/fonts/icons.ttf +0 -0
  453. data/support/editor-app/semantic/themes/default/assets/fonts/icons.woff +0 -0
  454. data/support/editor-app/semantic/themes/default/assets/images/flags.png +0 -0
  455. data/support/editor-app/vendor/jquery.js +8829 -0
  456. data/support/library-server/Gemfile +0 -0
  457. data/support/library-server/config.ru +4 -0
  458. metadata +740 -7
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Header 2",
3
+ "category": "Headers",
4
+ "template_path": "headers/header-02.html"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Landing Page Block 1",
3
+ "category": "Landing Page Blocks",
4
+ "template_path": "landing-page-blocks/landing-page-block-01.html"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "Landing Page Block 2",
3
+ "category": "Landing Page Blocks",
4
+ "template_path": "landing-page-blocks/landing-page-block-02.html"
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "Stylish test theme",
3
+ "categories":[
4
+ "Headers",
5
+ "Footers",
6
+ "Landing Page Blocks"
7
+ ]
8
+ }
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Stylish test theme
3
+ categories:
4
+ - Headers
5
+ - Footers
6
+ - Landing Page Blocks
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "Page 1",
3
+ "regions": {
4
+ "header": {
5
+ "component": "headers/header-01"
6
+ },
7
+ "footer": {
8
+ "component": "footers/footer-01"
9
+ }
10
+ }
11
+ }
@@ -0,0 +1,3 @@
1
+ <footer class="footer-template footer-template-1">
2
+ <h1>Footer template 1</h1>
3
+ </footer>
@@ -0,0 +1,3 @@
1
+ <footer class="footer-template footer-template-2">
2
+ <h1>Footer template 2</h1>
3
+ </footer>
@@ -0,0 +1,3 @@
1
+ <header class="header-template header-template-1">
2
+ <h1>Header Template 1</h1>
3
+ </header>
@@ -0,0 +1,3 @@
1
+ <header class="header-template header-template-2">
2
+ <h1>Header Template 2</h1>
3
+ </header>
@@ -0,0 +1,3 @@
1
+ <div class="landing-page-block landing-page-block-1">
2
+ <h1>Landing Page Block 1</h1>
3
+ </div>
@@ -0,0 +1,3 @@
1
+ <div class="landing-page-block landing-page-block-2">
2
+ <h1>Landing Page Block 2</h1>
3
+ </div>
@@ -0,0 +1,9 @@
1
+ <html>
2
+ <head>
3
+ </head>
4
+ <body data-layout="standard-01">
5
+ <div data-region="header"></div>
6
+ <div data-region="content"></div>
7
+ <div data-region="footer"></div>
8
+ </body>
9
+ </html>
@@ -0,0 +1,8 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Configuration do
4
+ it "lets me load a file from disk" do
5
+ Stylish.config.load_from_file Stylish.fixtures_path.join("config.json")
6
+ expect(Stylish.config.loaded).to eq("value")
7
+ end
8
+ end
@@ -0,0 +1,36 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Developer::Path do
4
+ describe "Meta Requests" do
5
+ subject { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "meta") }
6
+
7
+ it { is_expected.to be_meta }
8
+ it { is_expected.to be_success }
9
+ end
10
+
11
+ describe "Content Requests" do
12
+ subject { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "content") }
13
+ it { is_expected.not_to be_meta }
14
+ it { is_expected.not_to be_not_found }
15
+ end
16
+
17
+ describe "Responses for paths" do
18
+ let(:not_found) { Stylish::Developer::Path.new("/stylish/content/whatever") }
19
+ let(:coffeescript) { Stylish::Developer::Path.new("app/assets/javascripts/test.coffee", "meta") }
20
+ let(:scss) { Stylish::Developer::Path.new("app/assets/stylesheets/test.css.scss", "meta") }
21
+
22
+ it "should recognize requests for paths which are not found" do
23
+ expect(not_found).to be_not_found
24
+ end
25
+
26
+ it "should recognize the file types of given requests" do
27
+ expect(coffeescript.extension).to eq(".coffee")
28
+ expect(coffeescript.content_type).to eq("application/javascript")
29
+ end
30
+
31
+ it "should recognize the file types of given requests" do
32
+ expect(scss.extension).to eq(".scss")
33
+ expect(scss.content_type).to eq("text/css")
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe "Stylish Server Route Handlers" do
4
+
5
+ end
@@ -0,0 +1,48 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Manifest do
4
+ let(:json) do
5
+ Stylish::Manifest.new(Stylish.fixtures_path.join("test-theme","manifest.json"))
6
+ end
7
+
8
+ let(:yaml) do
9
+ Stylish::Manifest.new(Stylish.fixtures_path.join("test-theme","manifest.yml"))
10
+ end
11
+
12
+ let(:manifest) { json }
13
+
14
+ it "accepts a path to a JSON file" do
15
+ expect(json.path).to be_exist
16
+ expect(json.format).to eq("json")
17
+ end
18
+
19
+ it "accepts a path to a YAML file" do
20
+ expect(yaml.path).to be_exist
21
+ expect(yaml.format).to eq("yml")
22
+ end
23
+
24
+ it "reads the manifest" do
25
+ expect(manifest.name).to eq("Stylish test theme")
26
+ expect(manifest.categories).to include("Headers","Footers","Landing Page Blocks")
27
+ end
28
+
29
+ it "has a root folder" do
30
+ expect(manifest.root).to be_exist
31
+ expect(manifest.root).to be_directory
32
+ end
33
+
34
+ it "has a templates folder" do
35
+ expect(manifest.templates).to be_directory
36
+ expect(manifest.templates).to be_exist
37
+ end
38
+
39
+ it "has a stylesheets folder" do
40
+ expect(manifest.stylesheets).to be_exist
41
+ expect(manifest.stylesheets).to be_directory
42
+ end
43
+
44
+ it "has a scripts folder" do
45
+ expect(manifest.scripts).to be_exist
46
+ expect(manifest.scripts).to be_directory
47
+ end
48
+ end
@@ -0,0 +1,38 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Library do
4
+ let(:library) do
5
+ Stylish::Library.load_from_disk(Stylish.fixtures_path, reset: true)
6
+ Stylish::Library.loaded.first
7
+ end
8
+
9
+ it "has some libraries loaded" do
10
+ needle = library
11
+ haystack = Stylish::Library.loaded
12
+ expect(haystack).to include(needle)
13
+ end
14
+
15
+ it "lists all of the packages in the library" do
16
+ expect(library.packages).not_to be_empty
17
+ expect(library.packages.first).to be_a(Stylish::Package)
18
+ end
19
+
20
+ it "has a name of the packages" do
21
+ expect(library.packages.map(&:name)).to include("Stylish test theme")
22
+ end
23
+
24
+ it "lets me find a package by name" do
25
+ expect(library.find_package("Stylish test theme")).to be_a(Stylish::Package)
26
+ end
27
+
28
+ it "lets me find a package by slug" do
29
+ pkg = library.find_package("stylish-test-theme")
30
+ expect(pkg).to be_a(Stylish::Package)
31
+ end
32
+
33
+ it "lets me find a package by the root" do
34
+ lib = Stylish::Library.find_by_root(Stylish.fixtures_path.join('test-theme'))
35
+ expect(lib).to be_present
36
+ end
37
+
38
+ end
@@ -0,0 +1,35 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Package do
4
+ let(:library) do
5
+ Stylish::Library.load_from_disk(Stylish.fixtures_path)
6
+ Stylish::Library.loaded.first
7
+ end
8
+
9
+ let(:package) do
10
+ library.packages.first
11
+ end
12
+
13
+ it "has a manifest" do
14
+ expect(package.manifest.root).to eq(package.root)
15
+ end
16
+
17
+ it "has information about the footer components" do
18
+ end
19
+
20
+ it "has a relationship to the library" do
21
+ expect(package.library).to eq(library)
22
+ end
23
+
24
+ it "creates the folder structure it needs for new packages" do
25
+ begin
26
+ created_package = Stylish::Package.new(name: "Created Theme", library: library)
27
+ created_package.initialize_folder_structure
28
+
29
+ expect(created_package.manifest).to be_present
30
+ expect(created_package.root).to be_exist
31
+ ensure
32
+ FileUtils.rm_rf(created_package.root) rescue nil
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ describe Stylish::Models do
4
+ it "has a list of types" do
5
+ expect(Stylish::Models::Types).not_to be_empty
6
+ end
7
+
8
+ it "lets me lookup a model" do
9
+ expect(Stylish::Models.lookup("packages")).to eq(Stylish::Package)
10
+ expect(Stylish::Models.lookup("package")).to eq(Stylish::Package)
11
+ end
12
+ end
@@ -0,0 +1,38 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+
5
+ require 'rspec/rails'
6
+ require 'rack/test'
7
+ require 'pry'
8
+
9
+ Rails.backtrace_cleaner.remove_silencers!
10
+
11
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
12
+
13
+ module Stylish
14
+ def self.fixtures_path
15
+ Pathname(File.dirname(__FILE__)).join("fixtures")
16
+ end
17
+
18
+ def self.test_javascript_path
19
+ Pathname(File.dirname(__FILE__)).join("dummy","app","assets","javascripts")
20
+ end
21
+
22
+ end
23
+
24
+ Stylish::Developer.config.library_root = Stylish.fixtures_path
25
+
26
+ RSpec.configure do |config|
27
+ config.mock_with :rspec
28
+ config.use_transactional_fixtures = true
29
+ config.infer_base_class_for_anonymous_controllers = false
30
+ config.order = "random"
31
+
32
+ config.include Rack::Test
33
+ config.include Requests::JsonHelpers, type: :request
34
+
35
+ config.after(:suite) do
36
+ `git checkout spec/fixtures spec/dummy` rescue nil
37
+ end
38
+ end
@@ -0,0 +1,7 @@
1
+ module Requests
2
+ module JsonHelpers
3
+ def json
4
+ @json ||= JSON.parse(response.body)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ $color: #bada55;
2
+
3
+ body {
4
+ color: $color;
5
+ font-weight: bold;
6
+ }
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Stylish::VERSION
9
9
  spec.authors = ["Jonathan Soeder"]
10
10
  spec.email = ["jonathan.soeder@gmail.com"]
11
- spec.description = %q{Stylish is a high end theme}
12
- spec.summary = %q{Stylish is a high end theming environment for web components}
11
+ spec.description = %q{Stylish is a theming toolkit based on semantic-ui}
12
+ spec.summary = %q{Stylish is a theming toolkit for building bootstrap and semantic-ui themes}
13
13
  spec.homepage = "http://stylish.io"
14
14
  spec.license = "MIT"
15
15
 
@@ -17,7 +17,22 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'hashie'
22
+ spec.add_dependency 'sprockets', '>= 2.0.0'
23
+ spec.add_dependency 'commander'
24
+ spec.add_dependency 'github-fs'
25
+ spec.add_dependency 'virtus', '>= 1.0.3'
26
+ spec.add_dependency 'inflecto'
20
27
 
21
28
  spec.add_development_dependency "bundler", "~> 1.3"
22
29
  spec.add_development_dependency "rake"
30
+ spec.add_development_dependency "pry"
31
+ spec.add_development_dependency "pry-nav"
32
+ spec.add_development_dependency "rack-test"
33
+ spec.add_development_dependency 'rails', '~> 4.1.1'
34
+ spec.add_development_dependency 'rspec-rails'
35
+ spec.add_development_dependency 'sqlite3'
36
+ spec.add_development_dependency 'sass-rails', '>= 4.0.1'
37
+ spec.add_development_dependency 'coffee-rails', '>= 4.0.0'
23
38
  end
@@ -0,0 +1,2 @@
1
+ node_modules/
2
+ bower_components/
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "architects-app",
3
+ "dependencies": {
4
+ "semantic": ">= 1.4.1",
5
+ "underscore.string": "~ 2.3.3",
6
+ "jquery": "~ 2.1.0",
7
+ "codemirror": ">= 4.1"
8
+ }
9
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "architects-toolkit",
3
+ "version": "0.0.1",
4
+ "description": "\"The JS Environment for the Architects App\"",
5
+ "main": "index.html",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "dependencies": {
10
+ "webpack": "latest",
11
+ "coffee-loader": "latest",
12
+ "expose-loader": "latest",
13
+ "cjsx-loader": "latest",
14
+ "sass-loader": "latest",
15
+ "style-loader": "latest",
16
+ "css-loader": "latest",
17
+ "file-loader": "latest",
18
+ "underscore": "latest",
19
+ "underscore.string": "latest",
20
+ "bower": "latest",
21
+ "react": "latest",
22
+ "react-treeview": "latest",
23
+ "react-draggable": "latest",
24
+ "react-router-component": "latest",
25
+ "react-tools": "latest"
26
+ }
27
+ }
28
+
@@ -0,0 +1,257 @@
1
+ /*
2
+ * # Semantic UI - 1.8.1
3
+ * https://github.com/Semantic-Org/Semantic-UI
4
+ * http://www.semantic-ui.com/
5
+ *
6
+ * Copyright 2014 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+
13
+
14
+ /*******************************
15
+ Accordion
16
+ *******************************/
17
+
18
+ .ui.accordion,
19
+ .ui.accordion .accordion {
20
+ max-width: 100%;
21
+ font-size: 1em;
22
+ }
23
+ .ui.accordion .accordion {
24
+ margin: 1em 0em 0em;
25
+ padding: 0em;
26
+ }
27
+
28
+ /* Title */
29
+ .ui.accordion .title,
30
+ .ui.accordion .accordion .title {
31
+ cursor: pointer;
32
+ }
33
+
34
+ /* Default Styling */
35
+ .ui.accordion .title:not(.ui) {
36
+ padding: 0.5em 0em;
37
+ font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
38
+ font-size: 1em;
39
+ color: rgba(0, 0, 0, 0.8);
40
+ }
41
+
42
+ /* Content */
43
+ .ui.accordion .title ~ .content,
44
+ .ui.accordion .accordion .title ~ .content {
45
+ display: none;
46
+ }
47
+
48
+ /* Default Styling */
49
+ .ui.accordion:not(.styled) .title ~ .content:not(.ui),
50
+ .ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui) {
51
+ margin: 0em;
52
+ padding: 0.5em 0em 1em;
53
+ }
54
+ .ui.accordion:not(.styled) .title ~ .content:not(.ui):last-child {
55
+ padding-bottom: 0em;
56
+ }
57
+
58
+ /* Arrow */
59
+ .ui.accordion .title .dropdown.icon,
60
+ .ui.accordion .accordion .title .dropdown.icon {
61
+ display: inline-block;
62
+ float: none;
63
+ opacity: 1;
64
+ width: 1.25em;
65
+ height: 1em;
66
+ margin: 0em 0.25rem 0em 0rem;
67
+ padding: 0em;
68
+ font-size: 1em;
69
+ -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
70
+ transition: transform 0.2s ease, opacity 0.2s ease;
71
+ vertical-align: baseline;
72
+ -webkit-transform: none;
73
+ -ms-transform: none;
74
+ transform: none;
75
+ }
76
+
77
+ /*--------------
78
+ Coupling
79
+ ---------------*/
80
+
81
+
82
+ /* Menu */
83
+ .ui.accordion.menu .item .title {
84
+ display: block;
85
+ padding: 0em;
86
+ }
87
+ .ui.accordion.menu .item .title > .dropdown.icon {
88
+ float: right;
89
+ margin: 0.165em 0em 0em 1em;
90
+ -webkit-transform: rotate(180deg);
91
+ -ms-transform: rotate(180deg);
92
+ transform: rotate(180deg);
93
+ }
94
+
95
+ /* Header */
96
+ .ui.accordion .ui.header .dropdown.icon {
97
+ font-size: 1em;
98
+ margin: 0em 0.25rem 0em 0rem;
99
+ }
100
+
101
+
102
+ /*******************************
103
+ States
104
+ *******************************/
105
+
106
+ .ui.accordion .active.title .dropdown.icon,
107
+ .ui.accordion .accordion .active.title .dropdown.icon {
108
+ -webkit-transform: rotate(90deg);
109
+ -ms-transform: rotate(90deg);
110
+ transform: rotate(90deg);
111
+ }
112
+ .ui.accordion.menu .item .active.title > .dropdown.icon {
113
+ -webkit-transform: rotate(90deg);
114
+ -ms-transform: rotate(90deg);
115
+ transform: rotate(90deg);
116
+ }
117
+
118
+
119
+ /*******************************
120
+ Types
121
+ *******************************/
122
+
123
+
124
+ /*--------------
125
+ Styled
126
+ ---------------*/
127
+
128
+ .ui.styled.accordion {
129
+ width: 600px;
130
+ }
131
+ .ui.styled.accordion,
132
+ .ui.styled.accordion .accordion {
133
+ border-radius: 0.2857rem;
134
+ background: #ffffff;
135
+ box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(39, 41, 43, 0.15);
136
+ }
137
+ .ui.styled.accordion .title,
138
+ .ui.styled.accordion .accordion .title {
139
+ margin: 0em;
140
+ padding: 0.75em 1em;
141
+ color: rgba(0, 0, 0, 0.4);
142
+ font-weight: bold;
143
+ border-top: 1px solid rgba(39, 41, 43, 0.15);
144
+ -webkit-transition: background 0.2s ease, color 0.2s ease;
145
+ transition: background 0.2s ease, color 0.2s ease;
146
+ }
147
+ .ui.styled.accordion > .title:first-child,
148
+ .ui.styled.accordion > .accordion .title:first-child {
149
+ border-top: none;
150
+ }
151
+
152
+ /* Content */
153
+ .ui.styled.accordion .content,
154
+ .ui.styled.accordion .accordion .content {
155
+ margin: 0em;
156
+ padding: 0.5em 1em 1.5em;
157
+ }
158
+ .ui.styled.accordion .accordion .content {
159
+ padding: 0em;
160
+ padding: 0.5em 1em 1.5em;
161
+ }
162
+
163
+ /* Hover */
164
+ .ui.styled.accordion .title:hover,
165
+ .ui.styled.accordion .active.title,
166
+ .ui.styled.accordion .accordion .title:hover,
167
+ .ui.styled.accordion .accordion .active.title {
168
+ background: transparent;
169
+ color: rgba(0, 0, 0, 0.8);
170
+ }
171
+ .ui.styled.accordion .accordion .title:hover,
172
+ .ui.styled.accordion .accordion .active.title {
173
+ background: transparent;
174
+ color: rgba(0, 0, 0, 0.8);
175
+ }
176
+
177
+ /* Active */
178
+ .ui.styled.accordion .active.title {
179
+ background: transparent;
180
+ color: rgba(0, 0, 0, 0.8);
181
+ }
182
+ .ui.styled.accordion .accordion .active.title {
183
+ background: transparent;
184
+ color: rgba(0, 0, 0, 0.8);
185
+ }
186
+
187
+
188
+ /*******************************
189
+ States
190
+ *******************************/
191
+
192
+
193
+ /*--------------
194
+ Active
195
+ ---------------*/
196
+
197
+ .ui.accordion .active.content,
198
+ .ui.accordion .accordion .active.content {
199
+ display: block;
200
+ }
201
+
202
+
203
+ /*******************************
204
+ Variations
205
+ *******************************/
206
+
207
+
208
+ /*--------------
209
+ Fluid
210
+ ---------------*/
211
+
212
+ .ui.fluid.accordion,
213
+ .ui.fluid.accordion .accordion {
214
+ width: 100%;
215
+ }
216
+
217
+ /*--------------
218
+ Inverted
219
+ ---------------*/
220
+
221
+ .ui.inverted.accordion .title:not(.ui) {
222
+ color: #ffffff;
223
+ }
224
+
225
+
226
+ /*******************************
227
+ Theme Overrides
228
+ *******************************/
229
+
230
+ @font-face {
231
+ font-family: 'Accordion';
232
+ src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMggjB5AAAAC8AAAAYGNtYXAPfOIKAAABHAAAAExnYXNwAAAAEAAAAWgAAAAIZ2x5Zryj6HgAAAFwAAAAyGhlYWT/0IhHAAACOAAAADZoaGVhApkB5wAAAnAAAAAkaG10eAJuABIAAAKUAAAAGGxvY2EAjABWAAACrAAAAA5tYXhwAAgAFgAAArwAAAAgbmFtZfC1n04AAALcAAABPHBvc3QAAwAAAAAEGAAAACAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDZ//3//wAB/+MPKwADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQASAEkAtwFuABMAADc0PwE2FzYXFh0BFAcGJwYvASY1EgaABQgHBQYGBQcIBYAG2wcGfwcBAQcECf8IBAcBAQd/BgYAAAAAAQAAAEkApQFuABMAADcRNDc2MzIfARYVFA8BBiMiJyY1AAUGBwgFgAYGgAUIBwYFWwEACAUGBoAFCAcFgAYGBQcAAAABAAAAAQAAqWYls18PPPUACwIAAAAAAM/9o+4AAAAAz/2j7gAAAAAAtwFuAAAACAACAAAAAAAAAAEAAAHg/+AAAAIAAAAAAAC3AAEAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAQAAAAC3ABIAtwAAAAAAAAAKABQAHgBCAGQAAAABAAAABgAUAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEADAAAAAEAAAAAAAIADgBAAAEAAAAAAAMADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('truetype'), url(data:application/font-woff;charset=utf-8;base64,d09GRk9UVE8AAASwAAoAAAAABGgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAA9AAAAS0AAAEtFpovuE9TLzIAAAIkAAAAYAAAAGAIIweQY21hcAAAAoQAAABMAAAATA984gpnYXNwAAAC0AAAAAgAAAAIAAAAEGhlYWQAAALYAAAANgAAADb/0IhHaGhlYQAAAxAAAAAkAAAAJAKZAedobXR4AAADNAAAABgAAAAYAm4AEm1heHAAAANMAAAABgAAAAYABlAAbmFtZQAAA1QAAAE8AAABPPC1n05wb3N0AAAEkAAAACAAAAAgAAMAAAEABAQAAQEBB3JhdGluZwABAgABADr4HAL4GwP4GAQeCgAZU/+Lix4KABlT/4uLDAeLa/iU+HQFHQAAAHkPHQAAAH4RHQAAAAkdAAABJBIABwEBBw0PERQZHnJhdGluZ3JhdGluZ3UwdTF1MjB1RjBEOXVGMERBAAACAYkABAAGAQEEBwoNVp38lA78lA78lA77lA773Z33bxWLkI2Qj44I9xT3FAWOj5CNkIuQi4+JjoePiI2Gi4YIi/uUBYuGiYeHiIiHh4mGi4aLho2Ijwj7FPcUBYeOiY+LkAgO+92L5hWL95QFi5CNkI6Oj4+PjZCLkIuQiY6HCPcU+xQFj4iNhouGi4aJh4eICPsU+xQFiIeGiYaLhouHjYePiI6Jj4uQCA74lBT4lBWLDAoAAAAAAwIAAZAABQAAAUwBZgAAAEcBTAFmAAAA9QAZAIQAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADw2gHg/+D/4AHgACAAAAABAAAAAAAAAAAAAAAgAAAAAAACAAAAAwAAABQAAwABAAAAFAAEADgAAAAKAAgAAgACAAEAIPDa//3//wAAAAAAIPDZ//3//wAB/+MPKwADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAEAADfYOJZfDzz1AAsCAAAAAADP/aPuAAAAAM/9o+4AAAAAALcBbgAAAAgAAgAAAAAAAAABAAAB4P/gAAACAAAAAAAAtwABAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAEAAAAAtwASALcAAAAAUAAABgAAAAAADgCuAAEAAAAAAAEADAAAAAEAAAAAAAIADgBAAAEAAAAAAAMADAAiAAEAAAAAAAQADABOAAEAAAAAAAUAFgAMAAEAAAAAAAYABgAuAAEAAAAAAAoANABaAAMAAQQJAAEADAAAAAMAAQQJAAIADgBAAAMAAQQJAAMADAAiAAMAAQQJAAQADABOAAMAAQQJAAUAFgAMAAMAAQQJAAYADAA0AAMAAQQJAAoANABaAHIAYQB0AGkAbgBnAFYAZQByAHMAaQBvAG4AIAAxAC4AMAByAGEAdABpAG4AZ3JhdGluZwByAGEAdABpAG4AZwBSAGUAZwB1AGwAYQByAHIAYQB0AGkAbgBnAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format('woff');
233
+ font-weight: normal;
234
+ font-style: normal;
235
+ }
236
+
237
+ /* Dropdown Icon */
238
+ .ui.accordion .title .dropdown.icon,
239
+ .ui.accordion .accordion .title .dropdown.icon {
240
+ font-family: Accordion;
241
+ line-height: 1;
242
+ -webkit-backface-visibility: hidden;
243
+ backface-visibility: hidden;
244
+ font-weight: normal;
245
+ font-style: normal;
246
+ text-align: center;
247
+ }
248
+ .ui.accordion .title .dropdown.icon:before,
249
+ .ui.accordion .accordion .title .dropdown.icon:before {
250
+ content: '\f0da' /*rtl:'\f0d9'*/;
251
+ }
252
+
253
+
254
+ /*******************************
255
+ User Overrides
256
+ *******************************/
257
+