refills 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 (260) hide show
  1. checksums.yaml +6 -14
  2. data/NEWS.md +12 -0
  3. data/README.md +84 -6
  4. data/config.rb +10 -6
  5. data/lib/refills/import_generator.rb +2 -0
  6. data/lib/refills/list_generator.rb +2 -0
  7. data/lib/refills/version.rb +1 -1
  8. data/pkg/refills-0.0.1.gem +0 -0
  9. data/refills.gemspec +1 -1
  10. data/source/CNAME +1 -0
  11. data/source/_accordion-tabs-minimal.html.erb +48 -0
  12. data/source/_accordion-tabs.html.erb +26 -26
  13. data/source/_accordion.html.erb +9 -9
  14. data/source/_badges.html.erb +7 -5
  15. data/source/_breadcrumbs.html.erb +6 -7
  16. data/source/_button-group.html.erb +3 -4
  17. data/source/_cards.html.erb +42 -9
  18. data/source/_comment.html.erb +21 -0
  19. data/source/_footer-2.html.erb +29 -0
  20. data/source/_footer.html.erb +26 -27
  21. data/source/_grid-items-lines.html.erb +44 -0
  22. data/source/_grid-items.html.erb +37 -0
  23. data/source/_hero.html.erb +4 -5
  24. data/source/_hover-tile-animation.html.erb +11 -0
  25. data/source/_icon-bullet-points.html.erb +29 -0
  26. data/source/_image-gradient-dynamic.html.erb +7 -0
  27. data/source/_image-gradient.html.erb +6 -0
  28. data/source/_modal.html.erb +5 -25
  29. data/source/_navigation.html.erb +38 -15
  30. data/source/_progress-bar-indication.html.erb +5 -0
  31. data/source/_search-bar.html.erb +4 -4
  32. data/source/_sliding-menu.html.erb +23 -13
  33. data/source/_snippet.html.erb +4 -5
  34. data/source/_snippets.html.erb +7 -0
  35. data/source/_switch.html.erb +7 -0
  36. data/source/_tables-minimal.html.erb +31 -0
  37. data/source/_tooltip.html.erb +5 -3
  38. data/source/_type-system-content.html.erb +11 -0
  39. data/source/_type-system-geometric.html.erb +8 -0
  40. data/source/_type-system-rounded.html.erb +8 -0
  41. data/source/_type-system-sans.html.erb +8 -0
  42. data/source/_type-system-serif.html.erb +9 -0
  43. data/source/_type-system-slab.html.erb +8 -0
  44. data/source/_type-system-traditional.html.erb +8 -0
  45. data/source/_vertical-tabs.html.erb +39 -40
  46. data/source/fonts/Fairview_Regular.otf +0 -0
  47. data/source/fonts/Fairview_SmallCaps.otf +0 -0
  48. data/source/fonts/PoetsenOne-Regular.ttf +0 -0
  49. data/source/images/Octocat.png +0 -0
  50. data/source/images/ZeroClipboard.swf +0 -0
  51. data/source/images/cat.png +0 -0
  52. data/source/images/menu.png +0 -0
  53. data/source/index.html.erb +243 -141
  54. data/source/javascripts/all.js +9 -0
  55. data/source/javascripts/jquery.erToc.js +477 -0
  56. data/source/javascripts/jquery.glide.js +941 -0
  57. data/source/layouts/layout.erb +16 -3
  58. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_deprecated-webkit-gradient.scssc +0 -0
  59. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_gradient-positions-parser.scssc +0 -0
  60. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_linear-positions-parser.scssc +0 -0
  61. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_radial-arg-parser.scssc +0 -0
  62. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_radial-positions-parser.scssc +0 -0
  63. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_render-gradients.scssc +0 -0
  64. data/source/stylesheets/.sass-cache/0d88bab3f6439409671efc65a29de3058595a20c/_shape-size-stripper.scssc +0 -0
  65. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_fill-parent.scssc +0 -0
  66. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_grid.scssc +0 -0
  67. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_media.scssc +0 -0
  68. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_omega.scssc +0 -0
  69. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_outer-container.scssc +0 -0
  70. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_pad.scssc +0 -0
  71. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_private.scssc +0 -0
  72. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_reset.scssc +0 -0
  73. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_row.scssc +0 -0
  74. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_shift.scssc +0 -0
  75. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_span-columns.scssc +0 -0
  76. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_to-deprecate.scssc +0 -0
  77. data/source/stylesheets/.sass-cache/2356a63beb71504ccf2fa539939afe219243ac3f/_visual-grid.scssc +0 -0
  78. data/source/stylesheets/.sass-cache/3c5af5c36664454ea95f8284b8f46c4539020663/_neat-helpers.scssc +0 -0
  79. data/source/stylesheets/.sass-cache/3c5af5c36664454ea95f8284b8f46c4539020663/_neat.scssc +0 -0
  80. data/source/stylesheets/.sass-cache/5d5301b1b4de0f4b931a707c7390ccdbbf02bc5c/_bourbon-deprecated-upcoming.scssc +0 -0
  81. data/source/stylesheets/.sass-cache/5d5301b1b4de0f4b931a707c7390ccdbbf02bc5c/_bourbon.scssc +0 -0
  82. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_bitters.scssc +0 -0
  83. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_flashes.scssc +0 -0
  84. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_forms.scssc +0 -0
  85. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_grid-settings.scssc +0 -0
  86. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_lists.scssc +0 -0
  87. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_tables.scssc +0 -0
  88. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_typography.scssc +0 -0
  89. data/source/stylesheets/.sass-cache/6e4f3bf0a0a6393f142470646a965aa11120b82c/_variables.scssc +0 -0
  90. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_accordion-tabs.scssc +0 -0
  91. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_accordion.scssc +0 -0
  92. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_badges.scssc +0 -0
  93. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_breadcrumbs.scssc +0 -0
  94. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_button-group.scssc +0 -0
  95. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_cards.scssc +0 -0
  96. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_dashboard.scssc +0 -0
  97. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_dropdown-menu.scssc +0 -0
  98. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_footer.scssc +0 -0
  99. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_hero.scssc +0 -0
  100. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_image-cards.scssc +0 -0
  101. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_image-gradient.scssc +0 -0
  102. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_info-section.scssc +0 -0
  103. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_item-list.scssc +0 -0
  104. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_master-detail.scssc +0 -0
  105. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_modal.scssc +0 -0
  106. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_navigation.scssc +0 -0
  107. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_overlap.scssc +0 -0
  108. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_progress-bar.scssc +0 -0
  109. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_search-bar.scssc +0 -0
  110. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_sidebar-layout.scssc +0 -0
  111. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_sliding-menu.scssc +0 -0
  112. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_switch-toggle.scssc +0 -0
  113. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_tables.scssc +0 -0
  114. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_toggle-cards.scssc +0 -0
  115. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_tooltip.scssc +0 -0
  116. data/source/stylesheets/.sass-cache/7b963f7f4dc44c7eaad58bd6c1897da558e16f47/_vertical-tabs.scssc +0 -0
  117. data/source/stylesheets/.sass-cache/949f49000f6a509c8c1d8b10cc864f41440f4640/_new-breakpoint.scssc +0 -0
  118. data/source/stylesheets/.sass-cache/949f49000f6a509c8c1d8b10cc864f41440f4640/_private.scssc +0 -0
  119. data/source/stylesheets/.sass-cache/9c3cd587ffeef0d147804cf4a2177df69c325021/_grid.scssc +0 -0
  120. data/source/stylesheets/.sass-cache/9c3cd587ffeef0d147804cf4a2177df69c325021/_visual-grid.scssc +0 -0
  121. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_button.scssc +314 -314
  122. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_clearfix.scssc +0 -0
  123. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_font-family.scssc +0 -0
  124. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_hide-text.scssc +0 -0
  125. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_html5-input-types.scssc +0 -0
  126. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_position.scssc +0 -0
  127. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_prefixer.scssc +0 -0
  128. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_retina-image.scssc +0 -0
  129. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_size.scssc +0 -0
  130. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_timing-functions.scssc +0 -0
  131. data/source/stylesheets/.sass-cache/c6006dae2021685cda21dbc1d56c98b49b399e89/_triangle.scssc +0 -0
  132. data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/_layout.scssc +0 -0
  133. data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/_normalize.scssc +0 -0
  134. data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/_refills-styles.scssc +0 -0
  135. data/source/stylesheets/.sass-cache/d215ab98db0764a70113a4b69eb12099c4a4b951/all.scssc +0 -0
  136. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_animation.scssc +0 -0
  137. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_appearance.scssc +0 -0
  138. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_backface-visibility.scssc +0 -0
  139. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_background-image.scssc +0 -0
  140. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_background.scssc +0 -0
  141. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_border-image.scssc +0 -0
  142. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_border-radius.scssc +0 -0
  143. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_box-sizing.scssc +0 -0
  144. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_columns.scssc +0 -0
  145. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_flex-box.scssc +0 -0
  146. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_font-face.scssc +0 -0
  147. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_hidpi-media-query.scssc +0 -0
  148. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_image-rendering.scssc +0 -0
  149. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_inline-block.scssc +0 -0
  150. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_keyframes.scssc +0 -0
  151. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_linear-gradient.scssc +0 -0
  152. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_perspective.scssc +0 -0
  153. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_placeholder.scssc +0 -0
  154. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_radial-gradient.scssc +0 -0
  155. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_transform.scssc +0 -0
  156. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_transition.scssc +0 -0
  157. data/source/stylesheets/.sass-cache/d834f47169fec4be6d5fa92ad35541754895d07f/_user-select.scssc +0 -0
  158. data/source/stylesheets/.sass-cache/e04a546d656fd6d36e1f48c3953beece343e5456/_base.scssc +0 -0
  159. data/source/stylesheets/.sass-cache/e04a546d656fd6d36e1f48c3953beece343e5456/_button.scssc +0 -0
  160. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_compact.scssc +0 -0
  161. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_flex-grid.scssc +0 -0
  162. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_grid-width.scssc +0 -0
  163. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_linear-gradient.scssc +0 -0
  164. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_modular-scale.scssc +0 -0
  165. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_px-to-em.scssc +0 -0
  166. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_radial-gradient.scssc +0 -0
  167. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_tint-shade.scssc +0 -0
  168. data/source/stylesheets/.sass-cache/f42b2997d6b9b825e31277de8bd0911929c9e03c/_transition-property-name.scssc +0 -0
  169. data/source/stylesheets/_refills-nav.scss +91 -0
  170. data/source/stylesheets/_refills-styles.scss +419 -170
  171. data/source/stylesheets/all.scss +19 -11
  172. data/source/stylesheets/bitters/_bitters.scss +9 -0
  173. data/source/stylesheets/bitters/_flashes.scss +6 -45
  174. data/source/stylesheets/bitters/_forms.scss +11 -3
  175. data/source/stylesheets/bitters/_grid-settings.scss +5 -5
  176. data/source/stylesheets/bitters/_tables.scss +2 -2
  177. data/source/stylesheets/bitters/_typography.scss +3 -2
  178. data/source/stylesheets/bitters/_variables.scss +3 -7
  179. data/source/stylesheets/bitters/extends/_button.scss +4 -2
  180. data/source/stylesheets/bitters/mixins/_base.scss +1 -0
  181. data/source/stylesheets/bitters/mixins/_flash.scss +15 -0
  182. data/source/stylesheets/bourbon/addons/_button.scss +3 -73
  183. data/source/stylesheets/bourbon/addons/_directional-values.scss +114 -0
  184. data/source/stylesheets/bourbon/addons/_ellipsis.scss +7 -0
  185. data/source/stylesheets/bourbon/addons/_rem.scss +33 -0
  186. data/source/stylesheets/bourbon/css3/_calc.scss +4 -0
  187. data/source/stylesheets/bourbon/css3/_filter.scss +5 -0
  188. data/source/stylesheets/bourbon/css3/_font-feature-settings.scss +10 -0
  189. data/source/stylesheets/bourbon/css3/_hyphens.scss +4 -0
  190. data/source/stylesheets/bourbon/functions/_assign.scss +11 -0
  191. data/source/stylesheets/bourbon/functions/_color-lightness.scss +13 -0
  192. data/source/stylesheets/bourbon/functions/_golden-ratio.scss +3 -0
  193. data/source/stylesheets/bourbon/functions/_strip-units.scss +5 -0
  194. data/source/stylesheets/bourbon/functions/_unpack.scss +17 -0
  195. data/source/stylesheets/bourbon/helpers/_convert-units.scss +15 -0
  196. data/source/stylesheets/bourbon/helpers/_is-num.scss +8 -0
  197. data/source/stylesheets/bourbon/helpers/_linear-angle-parser.scss +25 -0
  198. data/source/stylesheets/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  199. data/source/stylesheets/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  200. data/source/stylesheets/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  201. data/source/stylesheets/bourbon/helpers/_str-to-num.scss +50 -0
  202. data/source/stylesheets/bourbon/settings/_prefixer.scss +6 -0
  203. data/source/stylesheets/bourbon/settings/_px-to-em.scss +1 -0
  204. data/source/stylesheets/refills/_accordion-tabs-minimal.scss +96 -0
  205. data/source/stylesheets/refills/_accordion-tabs.scss +97 -100
  206. data/source/stylesheets/refills/_accordion.scss +4 -2
  207. data/source/stylesheets/refills/_badges.scss +37 -30
  208. data/source/stylesheets/refills/_breadcrumbs.scss +31 -24
  209. data/source/stylesheets/refills/_button-group.scss +38 -14
  210. data/source/stylesheets/refills/_cards.scss +111 -43
  211. data/source/stylesheets/refills/_comment.scss +60 -0
  212. data/source/stylesheets/refills/_footer-2.scss +91 -0
  213. data/source/stylesheets/refills/_footer.scss +75 -54
  214. data/source/stylesheets/refills/_grid-items-lines.scss +86 -0
  215. data/source/stylesheets/refills/_grid-items.scss +97 -0
  216. data/source/stylesheets/refills/_hero.scss +31 -11
  217. data/source/stylesheets/refills/_hover-tile-animation.scss +52 -0
  218. data/source/stylesheets/refills/_icon-bullet-points.scss +63 -0
  219. data/source/stylesheets/refills/_image-gradient-dynamic.scss +60 -0
  220. data/source/stylesheets/refills/_image-gradient.scss +56 -0
  221. data/source/stylesheets/refills/_modal.scss +81 -91
  222. data/source/stylesheets/refills/_navigation.scss +205 -114
  223. data/source/stylesheets/refills/_progress-bar-indication.scss +39 -0
  224. data/source/stylesheets/refills/_progress-bar.scss +4 -4
  225. data/source/stylesheets/refills/_search-bar.scss +13 -17
  226. data/source/stylesheets/refills/_sliding-menu.scss +37 -31
  227. data/source/stylesheets/refills/{_switch-toggle.scss → _switch.scss} +17 -23
  228. data/source/stylesheets/refills/_tables-minimal.scss +54 -0
  229. data/source/stylesheets/refills/_tables.scss +12 -9
  230. data/source/stylesheets/refills/_tooltip.scss +33 -65
  231. data/source/stylesheets/refills/_type-system-geometric.scss +93 -0
  232. data/source/stylesheets/refills/_type-system-rounded.scss +95 -0
  233. data/source/stylesheets/refills/_type-system-sans.scss +99 -0
  234. data/source/stylesheets/refills/_type-system-serif.scss +100 -0
  235. data/source/stylesheets/refills/_type-system-slab.scss +97 -0
  236. data/source/stylesheets/refills/_type-system-traditional.scss +101 -0
  237. data/source/stylesheets/refills/_vertical-tabs.scss +69 -82
  238. data/source/vendor/javascripts/ZeroClipboard.min.js +9 -0
  239. data/source/vendor/javascripts/smooth-scroll.js +125 -0
  240. metadata +89 -29
  241. data/source/_dashboard.html.erb +0 -18
  242. data/source/_html_snippet.html.erb +0 -5
  243. data/source/_image-cards.html.erb +0 -28
  244. data/source/_info-section.html.erb +0 -25
  245. data/source/_item-list.html.erb +0 -25
  246. data/source/_master-detail.html.erb +0 -35
  247. data/source/_overlap.html.erb +0 -9
  248. data/source/_sidebar-layout.html.erb +0 -28
  249. data/source/_stylesheet_snippet.html.erb +0 -7
  250. data/source/_switch-toggle.html.erb +0 -15
  251. data/source/_toggle-cards.html.erb +0 -64
  252. data/source/stylesheets/refills/_dashboard.scss +0 -33
  253. data/source/stylesheets/refills/_dropdown-menu.scss +0 -65
  254. data/source/stylesheets/refills/_image-cards.scss +0 -102
  255. data/source/stylesheets/refills/_info-section.scss +0 -49
  256. data/source/stylesheets/refills/_item-list.scss +0 -37
  257. data/source/stylesheets/refills/_master-detail.scss +0 -54
  258. data/source/stylesheets/refills/_overlap.scss +0 -42
  259. data/source/stylesheets/refills/_sidebar-layout.scss +0 -56
  260. data/source/stylesheets/refills/_toggle-cards.scss +0 -104
@@ -1,2 +1,11 @@
1
1
  //= require prism
2
+ //= require ZeroClipboard.min
3
+ //= require smooth-scroll
2
4
  //= require_tree .
5
+
6
+
7
+ $(document).ready(function() {
8
+ $('#example1').erToc({'goTopNode':'#example1', 'startLevel': 'h2', 'numberedSuffix':'. '});
9
+ $('#example2').erToc({'goTopNode':'#example2', 'startLevel': 'h2', 'toc<a href="http://www.jqueryscript.net/tags.php?/Scroll/">Scroll</a>': false});
10
+ $('#example3').erToc({'goTopNode':'#example3', 'startLevel': 'h2', 'numbered': false, 'tocClass': 'er_toc er_toc_disc'});
11
+ });
@@ -0,0 +1,477 @@
1
+ /*
2
+ * Plugin Name: erToc plugin for jQuery
3
+ * Version: 1.0
4
+ * Author: everright.chen
5
+ * Email: everright.chen@gmail.com
6
+ * Website: http://everright.cn
7
+ * Testd on: jQuery 1.4+, IE 6+, Firefox, Chrome, Safari, Oprea
8
+ * erToc is a jQuery plugin that will automatically generate a table of contents for your page.
9
+ */
10
+ (function($) {
11
+ $.erToc = function(el, options) {
12
+ var base = this;
13
+
14
+ base.$this = $(el);
15
+
16
+ base.init = function() {
17
+ // merege custom options
18
+ base.options = $.extend({}, $.erToc.defaults, options);
19
+
20
+ // get nodes length, break down when have't nodes
21
+ var nodeLength = base.options.nodes.length;
22
+ if (!nodeLength) {
23
+ return;
24
+ }
25
+
26
+ // get and set the last node id number from $body data
27
+ base.nodeNum = $('body').data(base.options.nodeNumKey) || 1;
28
+ // initialize current level, current original level, current original min level
29
+ base.currentLevel = base.currentOriLevel = base.currentOriMinLevel = 0;
30
+ // get is tiered output of toc
31
+ base.tiered = base.tieredList();
32
+ // initialize output for toc
33
+ base.toc = '';
34
+
35
+ // get start level, if value is string, then auto convert to int
36
+ if (base.options.startLevel != parseInt(base.options.startLevel)) {
37
+ base.options.startLevel = $.inArray(base.options.startLevel, base.options.nodes);
38
+ } else {
39
+ base.options.startLevel -= 1;
40
+ }
41
+
42
+ if (!base.options.startLevel || 0 > base.options.startLevel) {
43
+ base.options.startLevel = 0;
44
+ }
45
+
46
+ // get max level, if value is string, then auto convert to int, auto set max level to nodes length when max level less than start level
47
+ if (base.options.maxLevel != parseInt(base.options.maxLevel)) {
48
+ base.options.maxLevel = $.inArray(base.options.maxLevel, base.options.nodes) + 1;
49
+ }
50
+
51
+ if (!base.options.maxLevel || base.options.maxLevel < base.options.startLevel) {
52
+ base.options.maxLevel = base.options.nodes.length;
53
+ }
54
+
55
+ // check and reset the max leven with new computed
56
+ var validLevel = nodeLength - base.options.startLevel;
57
+
58
+ if (base.options.startLevel > base.options.maxLevel || validLevel < base.options.maxLevel) {
59
+ base.options.maxLevel = validLevel;
60
+ }
61
+
62
+ // automatically broken down when the nodes does not meet the conditions
63
+ if (!base.initNodes()) {
64
+ return;
65
+ }
66
+ // initialize and append to toc output
67
+ base.initToc();
68
+ // append toc content to toc target element
69
+ base.createToc();
70
+
71
+ // set main scroll object when toc scroll or go to top feature was enabled
72
+ if (base.options.goTop || base.options.tocScroll) {
73
+ base.$body = (window.opera) ? ('CSS1Compat' == document.compatMode ? $('html') : $('body')) : $('html, body');
74
+ }
75
+
76
+ // initialize go to top
77
+ if (false !== base.options.goTop) {
78
+ // set go to top object, if not set, then set with body object
79
+ base.$topNode = $(base.options.goTopNode);
80
+
81
+ if (!base.$topNode.length) {
82
+ base.$topNode = $('body');
83
+ }
84
+
85
+ base.options.goTopNodes = base.options.goTopNodes || 'auto';
86
+
87
+ if ('auto' === base.options.goTopNodes) {
88
+ base.$topNode.data('isGoTopPosition', 'yes');
89
+ }
90
+
91
+ base.addGoTop();
92
+ }
93
+ };
94
+
95
+ /*
96
+ * Prepare nodes
97
+ * Min & Max conditions
98
+ * Group nodes, sort nodes
99
+ */
100
+ base.initNodes = function() {
101
+ var defaultNodes = [];
102
+ for (var i = 0, len = base.options.nodes.length; i < len; i++) {
103
+ defaultNodes[i] = base.options.nodes[i];
104
+ }
105
+ var tag,
106
+ nodes = defaultNodes.splice(base.options.startLevel, base.options.maxLevel);
107
+ base.$nodes = base.$this.find(nodes.join(', '));
108
+
109
+ if (!base.$nodes.length || (base.options.nodeMin > 0 && base.$nodes.length < base.options.nodeMin)) {
110
+ return false;
111
+ }
112
+
113
+ if (base.options.nodeMax > 0) {
114
+ base.$nodes = base.$nodes.filter(':lt(' + base.options.nodeMax + ')');
115
+ }
116
+
117
+ base.nodes = {
118
+ 'ids': [],
119
+ 'classes': [],
120
+ 'sorts': {'ids': {}, 'classes': {}}
121
+ };
122
+
123
+ for (var i in nodes) {
124
+ if ('.' == nodes[i].substring(0, 1)) {
125
+ tag = nodes[i].substring(1);
126
+ base.nodes.classes.push(tag);
127
+ base.nodes.sorts.classes[tag] = i;
128
+ } else {
129
+ tag = nodes[i].toLowerCase();
130
+ base.nodes.ids.push(tag);
131
+ base.nodes.sorts.ids[tag] = i;
132
+ }
133
+ }
134
+
135
+ return true;
136
+ };
137
+
138
+ /*
139
+ * Prepare toc content
140
+ */
141
+ base.initToc = function() {
142
+ if (base.tiered) {
143
+ base.listO = '<' + base.options.tocListType + '>';
144
+ base.listC = '</' + base.options.tocListType + '>';
145
+ base.listEO = '<li>';
146
+ base.listEC = '</li>';
147
+ base.toc += base.listO + base.listEO;
148
+ }
149
+
150
+ var node, level, currentLevel;
151
+
152
+ var numCurrLabel = '';
153
+ if (true === base.options.numbered) {
154
+ var numPrevLevel = 0,
155
+ numLevelCount = {},
156
+ numPrefix = {},
157
+ numPrevPrefix = '',
158
+ numLastPrefix = '';
159
+ }
160
+
161
+ base.$nodes.addClass(base.options.nodeClass).each(function(i, obj) {
162
+ node = $(obj);
163
+ level = base.getLevel(node);
164
+ if (base.tiered) {
165
+ currentLevel = base.currentLevel;
166
+
167
+ if (0 == i) {
168
+ base.currentOriLevel = level;
169
+ base.currentOriMinLevel = level;
170
+ } else {
171
+ if (level > base.currentOriLevel) {
172
+ currentLevel = base.currentLevel + 1;
173
+ base.currentOriLevel = level;
174
+ } else if (level < base.currentOriLevel) {
175
+ currentLevel = level <= base.currentOriMinLevel ? 0 : level - base.currentOriMinLevel;
176
+ base.currentOriLevel = level;
177
+
178
+ if (level < base.currentOriMinLevel) {
179
+ base.currentOriMinLevel = level;
180
+ }
181
+ }
182
+
183
+ base.toc += base.formatLevel(currentLevel, false);
184
+ }
185
+
186
+ if (true === base.options.numbered) {
187
+ if (!numLevelCount[currentLevel] || numPrevLevel < currentLevel) {
188
+ numLevelCount[currentLevel] = 1;
189
+ } else {
190
+ numLevelCount[currentLevel] += 1;
191
+ }
192
+
193
+ if (numPrevLevel == currentLevel) {
194
+ numCurrLabel = numLastPrefix + numLevelCount[currentLevel];
195
+ } else {
196
+ if (numPrevLevel < currentLevel) {
197
+ numLastPrefix = numPrevPrefix + base.options.numberedJoin;
198
+ numPrefix[currentLevel] = numLastPrefix;
199
+ } else{
200
+ numLastPrefix = '';
201
+ }
202
+ numCurrLabel = (currentLevel == 0) ? numLevelCount[currentLevel] : numPrefix[currentLevel] + numLevelCount[currentLevel];
203
+
204
+ }
205
+ numPrevPrefix = numCurrLabel;
206
+ numCurrLabel = base.options.numberedPrefix + numCurrLabel + base.options.numberedSuffix;
207
+ numPrevLevel = currentLevel;
208
+ }
209
+ }
210
+
211
+ base.toc += base.formatLink(node, level, numCurrLabel);
212
+
213
+ if (base.tiered && ((i + 1) == base.$nodes.length)) {
214
+ base.toc += base.formatLevel(currentLevel, true);
215
+ }
216
+
217
+ base.currentLevel = currentLevel;
218
+ });
219
+
220
+ if (base.tiered) {
221
+ base.toc += base.listEC + base.listC;
222
+ }
223
+
224
+ // set last nodeNum for other erToc use
225
+ $('body').data(base.options.nodeNumKey, base.nodeNum);
226
+ };
227
+
228
+ /*
229
+ * Append toc to target element
230
+ * title, title enable clicked, toc element scroll
231
+ */
232
+ base.createToc = function() {
233
+ base.$target = $(base.options.tocTarget);
234
+ base.$toc = $('<div class="er_toc_content"></div>').html(base.toc);
235
+
236
+ if (!base.$target.length) {
237
+ base.$target = $('<div></div>').prependTo(base.$this);
238
+ }
239
+ if (base.options.tocClass) {
240
+ base.$target.addClass(base.options.tocClass);
241
+ }
242
+
243
+ base.$target.append(base.$toc);
244
+
245
+ // set toc title
246
+ var title = $.trim(base.options.tocTitle);
247
+
248
+ if (title.length) {
249
+ var $title = $('<div></div>').html(title).append('<span></span>'),
250
+ hasTitleClass = base.options.tocTitleClass.length;
251
+
252
+ if (hasTitleClass) {
253
+ $title.addClass(base.options.tocTitleClass);
254
+ }
255
+
256
+ // bind hide show event
257
+ if (true === base.options.tocControl) {
258
+ var titleOpenClass = hasTitleClass ? base.options.tocTitleClass + '_open' : 'er_toc_title_open',
259
+ titleCloseClass = hasTitleClass ? base.options.tocTitleClass + '_close' : 'er_toc_title_close';
260
+
261
+ $title.css('cursor', 'pointer').click(function() {
262
+ if ($(this).hasClass(titleOpenClass)) {
263
+ $(this).removeClass(titleOpenClass).addClass(titleCloseClass);
264
+ base.$toc.slideUp();
265
+ } else {
266
+ $(this).removeClass(titleCloseClass).addClass(titleOpenClass);
267
+ base.$toc.slideDown();
268
+ }
269
+ }).click();
270
+ }
271
+
272
+ $title.prependTo(base.$target);
273
+ }
274
+
275
+ // binkd click scroll when toc scroll is enabled
276
+ if (base.options.tocScroll) {
277
+ base.$toc.find('a').click(function() {
278
+ base.$body.animate({scrollTop: ($($(this).attr('href')).offset().top - base.options.goTopBaseHeight)}, base.options.scrollSpeed);
279
+ return false;
280
+ });
281
+ }
282
+ };
283
+
284
+ /*
285
+ * Bind goTop action to nodes which can random, all, custom elements
286
+ */
287
+ base.addGoTop = function() {
288
+ var top,
289
+ goTop,
290
+ text = (true === base.options.goTop) ? 'Top' : base.options.goTop;
291
+
292
+ if ('all' === base.options.goTopNodes) {
293
+ goTop = base.$nodes;
294
+ } else if ('auto' === base.options.goTopNodes) {
295
+ var currentTop,
296
+ filterNodes = [],
297
+ lastTop = 0,
298
+ preTop = base.getPositionToTop(base.$this),
299
+ depth = Math.round(base.$this.height() / base.$nodes.length);
300
+
301
+ if (base.options.goTopDepth > depth) {
302
+ depth = base.options.goTopDepth;
303
+ }
304
+
305
+ base.$nodes.each(function(i) {
306
+ currentTop = $(this).position().top - lastTop;
307
+
308
+ if (0 == i) {
309
+ currentTop += preTop;
310
+ }
311
+
312
+ if (currentTop >= depth) {
313
+ filterNodes.push('#' + $(this).attr('id'));
314
+ lastTop = $(this).position().top;
315
+ }
316
+ });
317
+
318
+ if (filterNodes.length) {
319
+ goTop = base.$nodes.filter(filterNodes.join(', '));
320
+ }
321
+ } else {
322
+ goTop = base.$nodes.filter(base.options.goTopNodes);
323
+ }
324
+
325
+ top = $('<a href="#" class="' + base.options.goTopClass + '" title="' + text + '">' + text + '</a>');
326
+ goTop.append(top);
327
+ goTop.children('a.' + base.options.goTopClass).click(function() {
328
+ base.$body.animate({scrollTop: (base.$topNode.offset().top - base.options.goTopBaseHeight)}, base.options.scrollSpeed);
329
+ return false;
330
+ });
331
+ };
332
+
333
+ /*
334
+ * Get node element in which level
335
+ */
336
+ base.getLevel = function(node) {
337
+ var n;
338
+
339
+ if (base.nodes.ids.length) {
340
+ n = node.get(0).nodeName.toLowerCase();
341
+
342
+ if ($.inArray(n, base.nodes.ids) >= 0) {
343
+ return base.nodes.sorts.ids[n];
344
+ }
345
+ }
346
+
347
+ if (base.nodes.classes.length) {
348
+ for(var i in base.nodes.classes) {
349
+ n = base.nodes.classes[i];
350
+
351
+ if (node.hasClass(n)) {
352
+ return base.nodes.sorts.classes[n];
353
+ }
354
+ }
355
+ }
356
+
357
+ return 0;
358
+ };
359
+
360
+ /*
361
+ * Toc output with tieredList
362
+ */
363
+ base.tieredList = function() {
364
+ var exist = $.inArray(base.options.tocListType, ['ul', 'ol']);
365
+ return exist < 0 ? false : true;
366
+ };
367
+
368
+ /*
369
+ * Get current obj to go to the top of the height
370
+ */
371
+ base.getPositionToTop = function($obj) {
372
+ var top = 0, end;
373
+
374
+ while($obj) {
375
+ end = ($obj.data('isGoTopPosition') && 'yes' === $obj.data('isGoTopPosition')) ? true : false;
376
+
377
+ if (!end) {
378
+ top += $obj.position().top;
379
+ $obj = $obj.parent();
380
+ } else {
381
+ $obj = null;
382
+ break;
383
+ }
384
+ }
385
+
386
+ return top;
387
+ };
388
+
389
+ /*
390
+ * Prepare toc each text with link
391
+ */
392
+ base.formatLink = function(node, level, label) {
393
+ var text = node.text(),
394
+ id = node.attr('id') || base.options.nodeIdPrefix + base.nodeNum,
395
+ style = (base.tiered ? '' : ' class="' + base.options.tocClassPrefix + level + '"');
396
+
397
+ node.attr('id', id);
398
+ base.nodeNum++;
399
+
400
+ return label + '<a href="#' + id + '" title="' + text + '"' + style + '>' + text + '</a>';
401
+ };
402
+
403
+ /*
404
+ * Format tag with levels
405
+ */
406
+ base.formatLevel = function(level, last) {
407
+ if (true !== last) {
408
+ last = false;
409
+ }
410
+
411
+ var output = (level > base.currentLevel) ? base.formatTag(base.currentLevel, level, !last) : base.formatTag(level, base.currentLevel) + ((true === last) ? base.formatTag(0, base.currentLevel) : base.listEC + base.listEO);
412
+
413
+ return output;
414
+ };
415
+
416
+ /*
417
+ * Format tag
418
+ * <ul><li>, </ul><ul>, </li><li>
419
+ */
420
+ base.formatTag = function(start, end, open) {
421
+ var tags = [];
422
+
423
+ if (true !== open) {
424
+ open = false;
425
+ }
426
+
427
+ for (var i = start; i < end; i++) {
428
+ tags.push(open ? base.listO : base.listC);
429
+ }
430
+
431
+ return (open ? tags.join(base.listEO) + base.listEO : base.listEC + tags.join(base.listEC));
432
+ };
433
+
434
+ // ready go
435
+ base.init();
436
+ };
437
+
438
+ /*
439
+ * erToc default options
440
+ */
441
+ $.erToc.defaults = {
442
+ startLevel: 'h5', // node name, class or node array subscript [0|1]...n
443
+ maxLevel: 'h6', // node name, class or node array subscript [0|1]...n
444
+ nodes: ['h5', 'h6'], // nodes for prepare toc, support class ['.p1', '.p2', '.p3', '.p4', '.p5', '.p6']
445
+ nodeMin: 0, // min nodes for toc
446
+ nodeMax: 0, // max nodes for toc
447
+ nodeClass: 'er_toc_tag',
448
+ nodeIdPrefix: 'er-toc-id-',
449
+ tocTarget: '', // which element the toc will be append
450
+ tocClass: 'er_toc',
451
+ tocTitle: 'Table of Contents', // title for toc, if set empty string, then title will be hidden
452
+ tocTitleClass: 'er_toc_title',
453
+ tocListType: 'ul', // toc output type, ul, li, others will only include text with link
454
+ tocControl: true, // if have toc title, then can set true to control toc hide or show
455
+ tocClassPrefix: 'er_toc_level_',
456
+ tocScroll: true, // enable toc can be scroll, true or false
457
+ goTop: true, // enable go to top action, true or false
458
+ goTopBaseHeight: 0, //if the top is floating to fixed, then it should reduce the height of the top
459
+ goTopNodes: 'auto', // bind to which nodes, auto, all, and custom elements
460
+ goTopDepth: 450, // if go to top nodes was set auto, then here is the depth for two elements
461
+ goTopClass: 'er_toc_top',
462
+ goTopNode: 'body', // go to top element
463
+ scrollSpeed: 1000, // scroll speed, n seconds, slow, fast
464
+ nodeNumKey: 'erTocNodeNum',
465
+ numbered: false,
466
+ numberedJoin: '.',
467
+ numberedPrefix: '',
468
+ numberedSuffix: ' '
469
+ };
470
+
471
+ $.fn.erToc = function(options) {
472
+ return this.each(function(i){
473
+ (new $.erToc(this, options));
474
+ });
475
+ };
476
+
477
+ })(jQuery);