groundworkcss 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +3 -0
  3. data/README.md +165 -0
  4. data/Rakefile +1 -0
  5. data/groundworkcss.gemspec +27 -0
  6. data/lib/groundworkcss.rb +7 -0
  7. data/lib/groundworkcss/engine.rb +4 -0
  8. data/lib/groundworkcss/generators/install_generator.rb +27 -0
  9. data/lib/groundworkcss/railties.rb +8 -0
  10. data/lib/groundworkcss/version.rb +3 -0
  11. data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.eot +0 -0
  12. data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.svg +128 -0
  13. data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.ttf +0 -0
  14. data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.woff +0 -0
  15. data/vendor/assets/fonts/groundworkcss/average-sans-webfont.eot +0 -0
  16. data/vendor/assets/fonts/groundworkcss/average-sans-webfont.ttf +0 -0
  17. data/vendor/assets/fonts/groundworkcss/average-sans-webfont.woff +0 -0
  18. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot +0 -0
  19. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg +284 -0
  20. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.ttf +0 -0
  21. data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff +0 -0
  22. data/vendor/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
  23. data/vendor/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
  24. data/vendor/assets/images/groundworkcss/social-icons/500px.png +0 -0
  25. data/vendor/assets/images/groundworkcss/social-icons/500px.svg +62 -0
  26. data/vendor/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
  27. data/vendor/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
  28. data/vendor/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
  29. data/vendor/assets/images/groundworkcss/social-icons/aboutme.svg +42 -0
  30. data/vendor/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
  31. data/vendor/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
  32. data/vendor/assets/images/groundworkcss/social-icons/adn.png +0 -0
  33. data/vendor/assets/images/groundworkcss/social-icons/adn.svg +14 -0
  34. data/vendor/assets/images/groundworkcss/social-icons/android-m.png +0 -0
  35. data/vendor/assets/images/groundworkcss/social-icons/android-s.png +0 -0
  36. data/vendor/assets/images/groundworkcss/social-icons/android.png +0 -0
  37. data/vendor/assets/images/groundworkcss/social-icons/android.svg +30 -0
  38. data/vendor/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
  39. data/vendor/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
  40. data/vendor/assets/images/groundworkcss/social-icons/apple.png +0 -0
  41. data/vendor/assets/images/groundworkcss/social-icons/apple.svg +19 -0
  42. data/vendor/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
  43. data/vendor/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
  44. data/vendor/assets/images/groundworkcss/social-icons/behance.png +0 -0
  45. data/vendor/assets/images/groundworkcss/social-icons/behance.svg +48 -0
  46. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
  47. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
  48. data/vendor/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
  49. data/vendor/assets/images/groundworkcss/social-icons/bitbucket.svg +36 -0
  50. data/vendor/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
  51. data/vendor/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
  52. data/vendor/assets/images/groundworkcss/social-icons/blogger.png +0 -0
  53. data/vendor/assets/images/groundworkcss/social-icons/blogger.svg +22 -0
  54. data/vendor/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
  55. data/vendor/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
  56. data/vendor/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
  57. data/vendor/assets/images/groundworkcss/social-icons/coderwall.svg +21 -0
  58. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
  59. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
  60. data/vendor/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
  61. data/vendor/assets/images/groundworkcss/social-icons/creativecloud.svg +48 -0
  62. data/vendor/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
  63. data/vendor/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
  64. data/vendor/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
  65. data/vendor/assets/images/groundworkcss/social-icons/dribbble.svg +28 -0
  66. data/vendor/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
  67. data/vendor/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
  68. data/vendor/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
  69. data/vendor/assets/images/groundworkcss/social-icons/dropbox.svg +73 -0
  70. data/vendor/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
  71. data/vendor/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
  72. data/vendor/assets/images/groundworkcss/social-icons/evernote.png +0 -0
  73. data/vendor/assets/images/groundworkcss/social-icons/evernote.svg +62 -0
  74. data/vendor/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
  75. data/vendor/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
  76. data/vendor/assets/images/groundworkcss/social-icons/facebook.png +0 -0
  77. data/vendor/assets/images/groundworkcss/social-icons/facebook.svg +15 -0
  78. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
  79. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
  80. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
  81. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.svg +24 -0
  82. data/vendor/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
  83. data/vendor/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
  84. data/vendor/assets/images/groundworkcss/social-icons/flickr.png +0 -0
  85. data/vendor/assets/images/groundworkcss/social-icons/flickr.svg +14 -0
  86. data/vendor/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
  87. data/vendor/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
  88. data/vendor/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
  89. data/vendor/assets/images/groundworkcss/social-icons/foursquare.svg +43 -0
  90. data/vendor/assets/images/groundworkcss/social-icons/git-m.png +0 -0
  91. data/vendor/assets/images/groundworkcss/social-icons/git-s.png +0 -0
  92. data/vendor/assets/images/groundworkcss/social-icons/git.png +0 -0
  93. data/vendor/assets/images/groundworkcss/social-icons/git.svg +22 -0
  94. data/vendor/assets/images/groundworkcss/social-icons/github-m.png +0 -0
  95. data/vendor/assets/images/groundworkcss/social-icons/github-s.png +0 -0
  96. data/vendor/assets/images/groundworkcss/social-icons/github.png +0 -0
  97. data/vendor/assets/images/groundworkcss/social-icons/github.svg +38 -0
  98. data/vendor/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
  99. data/vendor/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
  100. data/vendor/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
  101. data/vendor/assets/images/groundworkcss/social-icons/goodreads.svg +38 -0
  102. data/vendor/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
  103. data/vendor/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
  104. data/vendor/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
  105. data/vendor/assets/images/groundworkcss/social-icons/googleplay.svg +24 -0
  106. data/vendor/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
  107. data/vendor/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
  108. data/vendor/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
  109. data/vendor/assets/images/groundworkcss/social-icons/googleplus.svg +52 -0
  110. data/vendor/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
  111. data/vendor/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
  112. data/vendor/assets/images/groundworkcss/social-icons/html5.png +0 -0
  113. data/vendor/assets/images/groundworkcss/social-icons/html5.svg +29 -0
  114. data/vendor/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
  115. data/vendor/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
  116. data/vendor/assets/images/groundworkcss/social-icons/icloud.png +0 -0
  117. data/vendor/assets/images/groundworkcss/social-icons/icloud.svg +26 -0
  118. data/vendor/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
  119. data/vendor/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
  120. data/vendor/assets/images/groundworkcss/social-icons/instagram.png +0 -0
  121. data/vendor/assets/images/groundworkcss/social-icons/instagram.svg +166 -0
  122. data/vendor/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
  123. data/vendor/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
  124. data/vendor/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
  125. data/vendor/assets/images/groundworkcss/social-icons/lastfm.svg +44 -0
  126. data/vendor/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
  127. data/vendor/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
  128. data/vendor/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
  129. data/vendor/assets/images/groundworkcss/social-icons/linkedin.svg +28 -0
  130. data/vendor/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
  131. data/vendor/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
  132. data/vendor/assets/images/groundworkcss/social-icons/mail.png +0 -0
  133. data/vendor/assets/images/groundworkcss/social-icons/mail.svg +27 -0
  134. data/vendor/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
  135. data/vendor/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
  136. data/vendor/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
  137. data/vendor/assets/images/groundworkcss/social-icons/mercurial.svg +22 -0
  138. data/vendor/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
  139. data/vendor/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
  140. data/vendor/assets/images/groundworkcss/social-icons/mixi.png +0 -0
  141. data/vendor/assets/images/groundworkcss/social-icons/mixi.svg +32 -0
  142. data/vendor/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
  143. data/vendor/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
  144. data/vendor/assets/images/groundworkcss/social-icons/msn.png +0 -0
  145. data/vendor/assets/images/groundworkcss/social-icons/msn.svg +44 -0
  146. data/vendor/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
  147. data/vendor/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
  148. data/vendor/assets/images/groundworkcss/social-icons/orkut.png +0 -0
  149. data/vendor/assets/images/groundworkcss/social-icons/orkut.svg +23 -0
  150. data/vendor/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
  151. data/vendor/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
  152. data/vendor/assets/images/groundworkcss/social-icons/picasa.png +0 -0
  153. data/vendor/assets/images/groundworkcss/social-icons/picasa.svg +48 -0
  154. data/vendor/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
  155. data/vendor/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
  156. data/vendor/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
  157. data/vendor/assets/images/groundworkcss/social-icons/pinterest.svg +42 -0
  158. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
  159. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
  160. data/vendor/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
  161. data/vendor/assets/images/groundworkcss/social-icons/pocketapp.svg +38 -0
  162. data/vendor/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
  163. data/vendor/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
  164. data/vendor/assets/images/groundworkcss/social-icons/quora.png +0 -0
  165. data/vendor/assets/images/groundworkcss/social-icons/quora.svg +20 -0
  166. data/vendor/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
  167. data/vendor/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
  168. data/vendor/assets/images/groundworkcss/social-icons/rdio.png +0 -0
  169. data/vendor/assets/images/groundworkcss/social-icons/rdio.svg +18 -0
  170. data/vendor/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
  171. data/vendor/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
  172. data/vendor/assets/images/groundworkcss/social-icons/renren.png +0 -0
  173. data/vendor/assets/images/groundworkcss/social-icons/renren.svg +79 -0
  174. data/vendor/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
  175. data/vendor/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
  176. data/vendor/assets/images/groundworkcss/social-icons/rss.png +0 -0
  177. data/vendor/assets/images/groundworkcss/social-icons/rss.svg +18 -0
  178. data/vendor/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
  179. data/vendor/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
  180. data/vendor/assets/images/groundworkcss/social-icons/skitch.png +0 -0
  181. data/vendor/assets/images/groundworkcss/social-icons/skitch.svg +24 -0
  182. data/vendor/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
  183. data/vendor/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
  184. data/vendor/assets/images/groundworkcss/social-icons/skype.png +0 -0
  185. data/vendor/assets/images/groundworkcss/social-icons/skype.svg +25 -0
  186. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
  187. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
  188. data/vendor/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
  189. data/vendor/assets/images/groundworkcss/social-icons/soundcloud.svg +60 -0
  190. data/vendor/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
  191. data/vendor/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
  192. data/vendor/assets/images/groundworkcss/social-icons/spotify.png +0 -0
  193. data/vendor/assets/images/groundworkcss/social-icons/spotify.svg +38 -0
  194. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
  195. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
  196. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
  197. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.svg +32 -0
  198. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
  199. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
  200. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
  201. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.svg +22 -0
  202. data/vendor/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
  203. data/vendor/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
  204. data/vendor/assets/images/groundworkcss/social-icons/svn.png +0 -0
  205. data/vendor/assets/images/groundworkcss/social-icons/svn.svg +25 -0
  206. data/vendor/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
  207. data/vendor/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
  208. data/vendor/assets/images/groundworkcss/social-icons/tent.png +0 -0
  209. data/vendor/assets/images/groundworkcss/social-icons/tent.svg +16 -0
  210. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
  211. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
  212. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
  213. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.svg +30 -0
  214. data/vendor/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
  215. data/vendor/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
  216. data/vendor/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
  217. data/vendor/assets/images/groundworkcss/social-icons/tumblr.svg +16 -0
  218. data/vendor/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
  219. data/vendor/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
  220. data/vendor/assets/images/groundworkcss/social-icons/twitter.png +0 -0
  221. data/vendor/assets/images/groundworkcss/social-icons/twitter.svg +24 -0
  222. data/vendor/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
  223. data/vendor/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
  224. data/vendor/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
  225. data/vendor/assets/images/groundworkcss/social-icons/vimeo.svg +20 -0
  226. data/vendor/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
  227. data/vendor/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
  228. data/vendor/assets/images/groundworkcss/social-icons/weibo.png +0 -0
  229. data/vendor/assets/images/groundworkcss/social-icons/weibo.svg +54 -0
  230. data/vendor/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
  231. data/vendor/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
  232. data/vendor/assets/images/groundworkcss/social-icons/windows.png +0 -0
  233. data/vendor/assets/images/groundworkcss/social-icons/windows.svg +26 -0
  234. data/vendor/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
  235. data/vendor/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
  236. data/vendor/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
  237. data/vendor/assets/images/groundworkcss/social-icons/wordpress.svg +50 -0
  238. data/vendor/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
  239. data/vendor/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
  240. data/vendor/assets/images/groundworkcss/social-icons/xing.png +0 -0
  241. data/vendor/assets/images/groundworkcss/social-icons/xing.svg +16 -0
  242. data/vendor/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
  243. data/vendor/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
  244. data/vendor/assets/images/groundworkcss/social-icons/yelp.png +0 -0
  245. data/vendor/assets/images/groundworkcss/social-icons/yelp.svg +54 -0
  246. data/vendor/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
  247. data/vendor/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
  248. data/vendor/assets/images/groundworkcss/social-icons/youtube.png +0 -0
  249. data/vendor/assets/images/groundworkcss/social-icons/youtube.svg +106 -0
  250. data/vendor/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
  251. data/vendor/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
  252. data/vendor/assets/images/groundworkcss/social-icons/youversion.png +0 -0
  253. data/vendor/assets/images/groundworkcss/social-icons/youversion.svg +54 -0
  254. data/vendor/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
  255. data/vendor/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
  256. data/vendor/assets/images/groundworkcss/social-icons/zerply.png +0 -0
  257. data/vendor/assets/images/groundworkcss/social-icons/zerply.svg +20 -0
  258. data/vendor/assets/javascripts/groundworkcss/components/disabled.coffee +18 -0
  259. data/vendor/assets/javascripts/groundworkcss/components/dismissible.coffee +4 -0
  260. data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.coffee +22 -0
  261. data/vendor/assets/javascripts/groundworkcss/components/forms.coffee +36 -0
  262. data/vendor/assets/javascripts/groundworkcss/components/menus.coffee +174 -0
  263. data/vendor/assets/javascripts/groundworkcss/components/modals.coffee +46 -0
  264. data/vendor/assets/javascripts/groundworkcss/components/pagination.coffee +128 -0
  265. data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.coffee +24 -0
  266. data/vendor/assets/javascripts/groundworkcss/components/responsiveText.coffee +38 -0
  267. data/vendor/assets/javascripts/groundworkcss/components/tabs.coffee +20 -0
  268. data/vendor/assets/javascripts/groundworkcss/components/tiles.coffee +32 -0
  269. data/vendor/assets/javascripts/groundworkcss/components/tooltips.coffee +5 -0
  270. data/vendor/assets/javascripts/groundworkcss/index.js +20 -0
  271. data/vendor/assets/javascripts/groundworkcss/libs/boxsizing.htc +501 -0
  272. data/vendor/assets/javascripts/groundworkcss/libs/html5shiv.min.js +8 -0
  273. data/vendor/assets/javascripts/groundworkcss/libs/modernizr-2.6.2.min.js +4 -0
  274. data/vendor/assets/javascripts/groundworkcss/libs/placeholder_polyfill.jquery.js +212 -0
  275. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.caption2.js +67 -0
  276. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.carousel.js +265 -0
  277. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.center.js +63 -0
  278. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.ie-fade.js +46 -0
  279. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.scrollVert.js +15 -0
  280. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.shuffle.js +62 -0
  281. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.swipe.js +70 -0
  282. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.tile.js +131 -0
  283. data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.video.js +66 -0
  284. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-modals.js +193 -0
  285. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.coffee +61 -0
  286. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.coffee +32 -0
  287. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-tooltip.coffee +124 -0
  288. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.cycle2.js +1426 -0
  289. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.magnific-popup.js +1760 -0
  290. data/vendor/assets/stylesheets/groundworkcss/_rails-settings.scss +202 -0
  291. data/vendor/assets/stylesheets/groundworkcss/_settings.scss +1 -0
  292. data/vendor/assets/stylesheets/groundworkcss/base/_all.scss +11 -0
  293. data/vendor/assets/stylesheets/groundworkcss/base/_animations.scss +29 -0
  294. data/vendor/assets/stylesheets/groundworkcss/base/_global.scss +64 -0
  295. data/vendor/assets/stylesheets/groundworkcss/base/_grid.scss +172 -0
  296. data/vendor/assets/stylesheets/groundworkcss/base/_helpers.scss +254 -0
  297. data/vendor/assets/stylesheets/groundworkcss/base/_reset.scss +81 -0
  298. data/vendor/assets/stylesheets/groundworkcss/core/_all.scss +11 -0
  299. data/vendor/assets/stylesheets/groundworkcss/core/_constants.scss +121 -0
  300. data/vendor/assets/stylesheets/groundworkcss/core/_defaults.scss +202 -0
  301. data/vendor/assets/stylesheets/groundworkcss/core/_mixins.scss +206 -0
  302. data/vendor/assets/stylesheets/groundworkcss/font-awesome-ie7.min.css +22 -0
  303. data/vendor/assets/stylesheets/groundworkcss/form/_all.scss +10 -0
  304. data/vendor/assets/stylesheets/groundworkcss/form/_forms.scss +240 -0
  305. data/vendor/assets/stylesheets/groundworkcss/form/_tiles.scss +100 -0
  306. data/vendor/assets/stylesheets/groundworkcss/groundwork-ie.scss +130 -0
  307. data/vendor/assets/stylesheets/groundworkcss/groundwork.scss +22 -0
  308. data/vendor/assets/stylesheets/groundworkcss/index.scss +3 -0
  309. data/vendor/assets/stylesheets/groundworkcss/magnific-popup.css +393 -0
  310. data/vendor/assets/stylesheets/groundworkcss/misc/_all.scss +9 -0
  311. data/vendor/assets/stylesheets/groundworkcss/misc/_social-icons.scss +96 -0
  312. data/vendor/assets/stylesheets/groundworkcss/nav/_all.scss +11 -0
  313. data/vendor/assets/stylesheets/groundworkcss/nav/_buttons.scss +334 -0
  314. data/vendor/assets/stylesheets/groundworkcss/nav/_navigation.scss +400 -0
  315. data/vendor/assets/stylesheets/groundworkcss/nav/_tabs.scss +230 -0
  316. data/vendor/assets/stylesheets/groundworkcss/no-svg.scss +355 -0
  317. data/vendor/assets/stylesheets/groundworkcss/placeholder_polyfill.css +32 -0
  318. data/vendor/assets/stylesheets/groundworkcss/responsive/_all.scss +13 -0
  319. data/vendor/assets/stylesheets/groundworkcss/responsive/_desktop.scss +26 -0
  320. data/vendor/assets/stylesheets/groundworkcss/responsive/_helpers.scss +16 -0
  321. data/vendor/assets/stylesheets/groundworkcss/responsive/_ipad.scss +28 -0
  322. data/vendor/assets/stylesheets/groundworkcss/responsive/_mobile.scss +44 -0
  323. data/vendor/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +196 -0
  324. data/vendor/assets/stylesheets/groundworkcss/type/_all.scss +9 -0
  325. data/vendor/assets/stylesheets/groundworkcss/type/_font-awesome.scss +542 -0
  326. data/vendor/assets/stylesheets/groundworkcss/type/_typography.scss +360 -0
  327. data/vendor/assets/stylesheets/groundworkcss/type/_webfonts.scss +28 -0
  328. data/vendor/assets/stylesheets/groundworkcss/ui/_all.scss +13 -0
  329. data/vendor/assets/stylesheets/groundworkcss/ui/_callouts.scss +130 -0
  330. data/vendor/assets/stylesheets/groundworkcss/ui/_messages.scss +124 -0
  331. data/vendor/assets/stylesheets/groundworkcss/ui/_modals.scss +558 -0
  332. data/vendor/assets/stylesheets/groundworkcss/ui/_tables.scss +142 -0
  333. data/vendor/assets/stylesheets/groundworkcss/ui/_tooltips.scss +196 -0
  334. metadata +427 -0
@@ -0,0 +1,46 @@
1
+ ###
2
+ * Requires jquery.magnific-popup.js
3
+ ###
4
+ $ ->
5
+ # single image
6
+ $(
7
+ ".modal.image,
8
+ .modal[href*='.jpg'],
9
+ .modal[href*='.jpeg'],
10
+ .modal[href*='.gif'],
11
+ .modal[href*='.png']"
12
+ ).magnificPopup(
13
+ type: 'image'
14
+ )
15
+
16
+ # image gallery
17
+ $(".modal.gallery").magnificPopup(
18
+ delegate: 'a'
19
+ type: 'image'
20
+ image:
21
+ titleSrc: 'title'
22
+ gallery:
23
+ enabled: true
24
+ )
25
+
26
+ # inline content
27
+ $(".modal[href^='#']").magnificPopup(
28
+ type: 'inline'
29
+ mainClass: 'inline-modal'
30
+ )
31
+
32
+ # external content
33
+ $("a.modal[href^='http']").not(".image").not("[href*='.jpg']").not("[href*='.jpeg']").not("[href*='.gif']").not("[href*='.png']").magnificPopup(
34
+ type: 'iframe'
35
+ height: '100%'
36
+ )
37
+
38
+ # video content
39
+ $("a.video.modal[href^='http']").magnificPopup(
40
+ type: 'iframe'
41
+ )
42
+
43
+ # ajax content
44
+ $("a.modal[href]").not("[href^='#']").not(".image").not("[href^='http']").not("[href*='.jpg']").not("[href*='.jpeg']").not("[href*='.gif']").not("[href*='.png']").magnificPopup(
45
+ type: 'ajax'
46
+ )
@@ -0,0 +1,128 @@
1
+ $ ->
2
+ # initialize
3
+ limitPaginationItems()
4
+ $body = $ 'body'
5
+
6
+ # change active page
7
+ $body.on 'click', '.pagination ul > li:not(.next, .prev) a', (e) ->
8
+ $this = $ this
9
+ $('.pagination ul > li:not(.next, .prev)').removeClass('active')
10
+
11
+ $this.parent('li').addClass('active')
12
+ # toggle previous button state
13
+ $prev = $('.pagination ul > li.prev')
14
+ if $this.parent('li').hasClass('first')
15
+ $prev.addClass('disabled')
16
+ else
17
+ $prev.removeClass('disabled')
18
+
19
+ # toggle next button state
20
+ $next = $('.pagination ul > li.next')
21
+
22
+ if $this.parent('li').hasClass('last')
23
+ $next.addClass('disabled')
24
+ else
25
+ $next.removeClass('disabled')
26
+
27
+ # adjust pagination
28
+ limitPaginationItems()
29
+ e.preventDefault()
30
+
31
+ return false
32
+
33
+ # handle previous pagination button
34
+ $body.on 'click', '.pagination ul > li.prev:not(.disabled)', (e) ->
35
+ # enable next button
36
+ $('.pagination ul > li.next').removeClass('disabled')
37
+ el = $('.pagination ul > li.active')
38
+ if !el.hasClass('first')
39
+ # set previous page active
40
+ el.removeClass('active')
41
+ el.prev().addClass('active')
42
+ # adjust pagination
43
+ limitPaginationItems()
44
+
45
+ # disable previous button if at first page
46
+ if $('.pagination ul > li.active').hasClass('first')
47
+ $(this).addClass('disabled')
48
+ e.preventDefault()
49
+ return false
50
+
51
+ # handle next pagination button
52
+ $body.on 'click', '.pagination ul > li.next:not(.disabled)', (e) ->
53
+ # enable previous button
54
+ $('.pagination ul > li.prev').removeClass('disabled')
55
+ el = $('.pagination ul > li.active')
56
+ if !el.hasClass('last')
57
+ # set next page active
58
+ el.removeClass('active')
59
+ el.next().addClass('active')
60
+ # adjust pagination
61
+ limitPaginationItems()
62
+
63
+ # disable next button if at last page
64
+ if $('.pagination ul > li.active').hasClass('last')
65
+ $(this).addClass('disabled')
66
+
67
+ e.preventDefault()
68
+ return false
69
+
70
+ # disable page jump for disabled pagination links
71
+ $body.on 'click', '.pagination ul > li.disabled a', (e) ->
72
+ e.preventDefault()
73
+ return false
74
+
75
+ return
76
+
77
+ $(window).resize ->
78
+ # adjust pagination on resize
79
+ limitPaginationItems()
80
+
81
+ # responsive pagination
82
+ limitPaginationItems = ->
83
+ #process pagination lists
84
+ $('.pagination ul').each ->
85
+ pagination = $(this)
86
+ # pagination dimensions
87
+ visibleSpace = pagination.outerWidth() - pagination.children('li.prev').outerWidth() - pagination.children('li.next').outerWidth()
88
+ totalItemsWidth = 0
89
+
90
+ pagination.children('li').each ->
91
+ totalItemsWidth += $(this).outerWidth()
92
+ return
93
+
94
+ # hide pages that don't fit
95
+ pagination.children('li').not('.prev, .next, .active').hide()
96
+ visibleItemsWidth = 0
97
+
98
+ pagination.children('li:visible').each ->
99
+ visibleItemsWidth += $(this).outerWidth()
100
+ return
101
+
102
+ # adjust visible elements
103
+ while (visibleItemsWidth + 29) < visibleSpace && (visibleItemsWidth + 29) < totalItemsWidth
104
+ # show the next page number
105
+ pagination.children('li:visible').not('.next').last().next().show()
106
+ visibleItemsWidth = 0
107
+
108
+ pagination.children('li:visible').each ->
109
+ visibleItemsWidth += $(this).outerWidth()
110
+ return
111
+
112
+ if (visibleItemsWidth + 29) <= visibleSpace
113
+ # show the previous page number
114
+ pagination.children('li:visible').not('.prev').first().prev().show()
115
+ visibleItemsWidth = 0
116
+
117
+ pagination.children('li:visible').each ->
118
+ visibleItemsWidth += $(this).outerWidth()
119
+ return
120
+
121
+ # recalculate visibleItemsWidth
122
+ visibleItemsWidth = 0
123
+
124
+ pagination.children('li:visible').each ->
125
+ visibleItemsWidth += $(this).outerWidth()
126
+ return
127
+
128
+ return
@@ -0,0 +1,24 @@
1
+ ###
2
+ * Requires jquery.responsiveText.js
3
+ ###
4
+ $ ->
5
+ # responsive tables
6
+ $('table.responsive').each (index, object) ->
7
+ $this = $ this
8
+ compression = 30
9
+ min = 8
10
+ max = 13
11
+ padding = 0
12
+ compression = parseFloat $this.attr('data-compression') || compression
13
+ min = parseFloat $this.attr('data-min') || min
14
+ max = parseFloat $this.attr('data-max') || max
15
+ padding = parseFloat $this.attr('data-padding') || padding
16
+ $(object).responsiveTable
17
+ compressor: compression
18
+ minSize: min
19
+ maxSize: max
20
+ padding: padding
21
+
22
+ return
23
+
24
+ return
@@ -0,0 +1,38 @@
1
+ ###
2
+ * Requires jquery.responsiveText.js
3
+ ###
4
+ $ ->
5
+ # responsive text
6
+ $('.responsive').not('table').each (index, object) ->
7
+ $this = $ this
8
+
9
+ compression = 10
10
+ min = 10
11
+ max = 200
12
+ scrollTime = 650
13
+ scrollReset = 200
14
+
15
+ compression = parseFloat $this.attr('data-compression') || compression
16
+ min = parseFloat $this.attr('data-min') || min
17
+ max = parseFloat $this.attr('data-max') || max
18
+
19
+ $(object).responsiveText
20
+ compressor: compression
21
+ minSize: min
22
+ maxSize: max
23
+
24
+ $this.hover (->
25
+ difference = $this.get(0).scrollWidth - $this.width()
26
+ scrollTime = difference if difference > scrollTime
27
+ if difference > 0
28
+ $this.stop().animate
29
+ "text-indent": -difference
30
+ , scrollTime
31
+ ), ->
32
+ $this.stop().animate
33
+ "text-indent": 0
34
+ , scrollReset
35
+
36
+ return
37
+
38
+ return
@@ -0,0 +1,20 @@
1
+ $ ->
2
+ # tabs
3
+ $('body').on 'click', '.tabs > ul li a[href^=#], [role=tab] a', (e) ->
4
+ $this = $ this
5
+ unless $this.hasClass('disabled')
6
+
7
+ if $this.parents('[role=tabpanel]').length > 0
8
+ tabs = $this.parents('[role=tabpanel]')
9
+ else
10
+ tabs = $this.parents('.tabs')
11
+
12
+ tabs.find('> ul li a, [role=tab] a').removeClass('active')
13
+ $this.addClass('active')
14
+ tabs.children('div, [role=tabpanel]').removeClass('active')
15
+ tabs.children($this.attr('href')).addClass('active')
16
+
17
+ e.preventDefault()
18
+ return false
19
+
20
+ return
@@ -0,0 +1,32 @@
1
+ $ ->
2
+ $body = $('body')
3
+ # init and set active tile
4
+ $('.tiles').each ->
5
+ $this = $ this
6
+ $this.find('.tile').attr('role','button')
7
+ $this.find('.tile[data-value='+$this.find('input.value, select.value').val()+']').addClass('active')
8
+
9
+ return
10
+
11
+ # tiles
12
+ $body.on 'click', '.tiles .tile', (e) ->
13
+ $this = $ this
14
+ unless $this.hasClass('disabled')
15
+ tiles = $this.parents('.tiles')
16
+ tiles.find('.tile').removeClass('active')
17
+ tiles.find('input.value, select.value').val($this.data('value')).change()
18
+ $this.addClass('active')
19
+
20
+ e.preventDefault()
21
+ return false
22
+
23
+ # change active tile on callback
24
+ $body.on 'change', '.tiles input.value, .tiles select.value', ->
25
+ $this = $ this
26
+ tiles = $this.parents('.tiles')
27
+ tiles.find('.tile').removeClass('active')
28
+ tiles.find('.tile[data-value='+$this.val()+']').addClass('active')
29
+
30
+ return
31
+
32
+ return
@@ -0,0 +1,5 @@
1
+ ###
2
+ * Requires jquery.tooltips.js
3
+ ###
4
+ $ ->
5
+ $('.tooltip[title]').tooltip() # tooltips
@@ -0,0 +1,20 @@
1
+ /*
2
+ *= require 'groundworkcss/plugins/jquery-modals'
3
+ *= require 'groundworkcss/plugins/jquery-responsiveTables'
4
+ *= require 'groundworkcss/plugins/jquery-responsiveText'
5
+ *= require 'groundworkcss/plugins/jquery-tooltip'
6
+ *= require 'groundworkcss/plugins/jquery.cycle2'
7
+ *= require 'groundworkcss/plugins/jquery.magnific-popup'
8
+ *= require 'groundworkcss/components/disabled'
9
+ *= require 'groundworkcss/components/dismissible'
10
+ *= require 'groundworkcss/components/equalizeColumns'
11
+ *= require 'groundworkcss/components/forms'
12
+ *= require 'groundworkcss/components/menus'
13
+ *= require 'groundworkcss/components/modals'
14
+ *= require 'groundworkcss/components/pagination'
15
+ *= require 'groundworkcss/components/responsiveTables'
16
+ *= require 'groundworkcss/components/responsiveText'
17
+ *= require 'groundworkcss/components/tabs'
18
+ *= require 'groundworkcss/components/tiles'
19
+ *= require 'groundworkcss/components/tooltips'
20
+ */
@@ -0,0 +1,501 @@
1
+ /**
2
+ * box-sizing Polyfill
3
+ *
4
+ * A polyfill for box-sizing: border-box for IE6 & IE7.
5
+ *
6
+ * JScript
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published
10
+ * by the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * See <http://www.gnu.org/licenses/lgpl-3.0.txt>
19
+ *
20
+ * @category JScript
21
+ * @package box-sizing-polyfill
22
+ * @author Christian Schepp Schaefer <schaepp@gmx.de> <http://twitter.com/derSchepp>
23
+ * @copyright 2012 Christian Schepp Schaefer
24
+ * @license http://www.gnu.org/copyleft/lesser.html The GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0
25
+ * @link http://github.com/Schepp/box-sizing-polyfill
26
+ *
27
+ * PREFACE:
28
+ *
29
+ * This box-sizing polyfill is based on previous work done by Erik Arvidsson,
30
+ * which he published in 2002 on http://webfx.eae.net/dhtml/boxsizing/boxsizing.html.
31
+ *
32
+ * USAGE:
33
+ *
34
+ * Add the behavior/HTC after every `box-sizing: border-box;` that you assign:
35
+ *
36
+ * box-sizing: border-box;
37
+ * *behavior: url(/scripts/boxsizing.htc);`
38
+ *
39
+ * Prefix the `behavior` property with a star, like seen above, so it will only be seen by
40
+ * IE6 & IE7, not by IE8+ who already implement box-sizing.
41
+ *
42
+ * The URL to the HTC file must be relative to your HTML(!) document, not relative to your CSS.
43
+ * That's why I'd advise you to use absolute paths like in the example.
44
+ *
45
+ */
46
+ <component lightWeight="true">
47
+ <attach event="onpropertychange" onevent="checkPropertyChange()" />
48
+ <attach event="ondetach" onevent="restore()" />
49
+ <attach event="onresize" for="window" onevent="update()" />
50
+ <script type="text/javascript">
51
+ //<![CDATA[
52
+
53
+ var viewportwidth = (typeof window.innerWidth != 'undefined' ? window.innerWidth : element.document.documentElement.clientWidth);
54
+
55
+ // Shortcut for the document object
56
+ var doc = element.document;
57
+
58
+ // Buffer for multiple resize events
59
+ var resizetimeout = null;
60
+
61
+ // Don't apply box-sizing to certain elements
62
+ var apply = false;
63
+ switch(element.nodeName){
64
+ case '#comment':
65
+ case 'HTML':
66
+ case 'HEAD':
67
+ case 'TITLE':
68
+ case 'SCRIPT':
69
+ case 'STYLE':
70
+ case 'LINK':
71
+ case 'META':
72
+ break;
73
+
74
+ default:
75
+ apply = true;
76
+ break;
77
+ }
78
+
79
+ /*
80
+ * update gets called during resize events, then waits until there are no further resize events, and finally triggers a recalculation
81
+ */
82
+ function update(){
83
+ if(resizetimeout !== null){
84
+ window.clearTimeout(resizetimeout);
85
+ }
86
+ resizetimeout = window.setTimeout(function(){
87
+ restore();
88
+ init();
89
+ resizetimeout = null;
90
+ },100);
91
+ }
92
+
93
+ /*
94
+ * restore gets called when the behavior is being detached (see event binding at the top),
95
+ * resets everything like it was before applying the behavior
96
+ */
97
+ function restore(){
98
+ if(apply){
99
+ try{
100
+ element.runtimeStyle.removeAttribute("width");
101
+ element.runtimeStyle.removeAttribute("height");
102
+ }
103
+ catch(e){}
104
+ }
105
+ }
106
+
107
+ /*
108
+ * init gets called once at the start and then never again,
109
+ * triggers box-sizing calculations and updates width and height
110
+ */
111
+ function init(){
112
+ if(apply){
113
+ updateBorderBoxWidth();
114
+ updateBorderBoxHeight();
115
+ }
116
+ }
117
+
118
+ /*
119
+ * checkPropertyChange gets called as soon as an element property changes
120
+ * (see event binding at the top), it then checks if any property influencing its
121
+ * dimensions was changed and if yes recalculates width and height
122
+ */
123
+ function checkPropertyChange(){
124
+ if(apply){
125
+ var pn = event.propertyName;
126
+ if(pn === "style.boxSizing" && element.style.boxSizing === ""){
127
+ element.style.removeAttribute("boxSizing");
128
+ element.runtimeStyle.removeAttribute("boxSizing");
129
+ element.runtimeStyle.removeAttribute("width");
130
+ element.runtimeStyle.removeAttribute("height");
131
+ }
132
+ switch (pn){
133
+ case "style.width":
134
+ case "style.minWidth":
135
+ case "style.maxWidth":
136
+ case "style.borderLeftWidth":
137
+ case "style.borderLeftStyle":
138
+ case "style.borderRightWidth":
139
+ case "style.borderRightStyle":
140
+ case "style.paddingLeft":
141
+ case "style.paddingRight":
142
+ updateBorderBoxWidth();
143
+ break;
144
+
145
+ case "style.height":
146
+ case "style.minHeight":
147
+ case "style.maxHeight":
148
+ case "style.borderTopWidth":
149
+ case "style.borderTopStyle":
150
+ case "style.borderBottomWidth":
151
+ case "style.borderBottomStyle":
152
+ case "style.paddingTop":
153
+ case "style.paddingBottom":
154
+ updateBorderBoxHeight();
155
+ break;
156
+
157
+ case "className":
158
+ case "style.boxSizing":
159
+ updateBorderBoxWidth();
160
+ updateBorderBoxHeight();
161
+ break;
162
+ }
163
+ }
164
+ }
165
+
166
+ /*
167
+ * Helper function, taken from Dean Edward's IE7 framework,
168
+ * added by Schepp on 12.06.2010.
169
+ * http://code.google.com/p/ie7-js/
170
+ *
171
+ * Allows us to convert from relative to pixel-values.
172
+ */
173
+ function getPixelValue(value){
174
+ var PIXEL = /^\d+(px)?$/i;
175
+ if (PIXEL.test(value)) return parseInt(value);
176
+ var style = element.style.left;
177
+ var runtimeStyle = element.runtimeStyle.left;
178
+ element.runtimeStyle.left = element.currentStyle.left;
179
+ element.style.left = value || 0;
180
+ value = parseInt(element.style.pixelLeft);
181
+ element.style.left = style;
182
+ element.runtimeStyle.left = runtimeStyle;
183
+
184
+ return value;
185
+ }
186
+
187
+ function getPixelWidth(object, value){
188
+ // For Pixel Values
189
+ var PIXEL = /^\d+(px)?$/i;
190
+ if (PIXEL.test(value)) return parseInt(value);
191
+
192
+ // For Percentage Values
193
+ var PERCENT = /^[\d\.]+%$/i;
194
+ if (PERCENT.test(value)){
195
+ try{
196
+ var parentPaddingLeft = getPixelWidth(object.parentElement,object.parentElement.currentStyle.paddingLeft);
197
+ var parentPaddingRight = getPixelWidth(object.parentElement,object.parentElement.currentStyle.paddingRight);
198
+ var parentBorderLeft = getPixelWidth(object.parentElement,object.parentElement.currentStyle.borderLeft);
199
+ var parentBorderRight = getPixelWidth(object.parentElement,object.parentElement.currentStyle.borderRight);
200
+
201
+ //var parentWidth = getPixelWidth(object.parentElement,(object.parentElement.currentStyle.width != "auto" ? object.parentElement.currentStyle.width : "100%"));
202
+ var parentWidth = object.parentElement.offsetWidth - parentPaddingLeft - parentPaddingRight - parentBorderLeft - parentBorderRight;
203
+ var value = (parseFloat(value) / 100) * parentWidth;
204
+ }
205
+ catch(e){
206
+ var value = (parseFloat(value) / 100) * element.document.documentElement.clientWidth;
207
+ }
208
+ return parseInt(value);
209
+ }
210
+
211
+ // For EM Values
212
+ var style = object.style.left;
213
+ var runtimeStyle = object.runtimeStyle.left;
214
+ object.runtimeStyle.left = object.currentStyle.left;
215
+ object.style.left = value || 0;
216
+ value = parseInt(object.style.pixelLeft);
217
+ object.style.left = style;
218
+ object.runtimeStyle.left = runtimeStyle;
219
+
220
+ return value;
221
+ }
222
+
223
+ function getPixelHeight(object, value){
224
+ // For Pixel Values
225
+ var PIXEL = /^\d+(px)?$/i;
226
+ if (PIXEL.test(value)) return parseInt(value);
227
+
228
+ // For Percentage Values
229
+ var PERCENT = /^[\d\.]+%$/i;
230
+ if (PERCENT.test(value)){
231
+ try{
232
+ if(object.parentElement.currentStyle.height != "auto"){
233
+ switch(object.parentElement.nodeName){
234
+ default:
235
+ if(object.parentElement.currentStyle.height !== "auto"){
236
+ var parentPaddingTop = getPixelWidth(object.parentElement,object.parentElement.currentStyle.paddingTop);
237
+ var parentPaddingBottom = getPixelWidth(object.parentElement,object.parentElement.currentStyle.paddingBottom);
238
+ var parentBorderTop = getPixelWidth(object.parentElement,object.parentElement.currentStyle.borderTop);
239
+ var parentBorderBottom = getPixelWidth(object.parentElement,object.parentElement.currentStyle.borderBottom);
240
+
241
+ var parentHeight = object.parentElement.offsetHeight - parentPaddingTop - parentPaddingBottom - parentBorderTop - parentBorderBottom;
242
+ //var parentHeight = getPixelHeight(object.parentElement,object.parentElement.currentStyle.height);
243
+
244
+ value = (parseFloat(value) / 100) * parentHeight;
245
+ }
246
+ else {
247
+ value = "auto";
248
+ }
249
+ break;
250
+
251
+ case 'HTML':
252
+ parentHeight = element.document.documentElement.clientHeight;
253
+ if(parentHeight !== "auto"){
254
+ value = (parseFloat(value) / 100) * parentHeight;
255
+ }
256
+ else {
257
+ value = "auto";
258
+ }
259
+ break;
260
+ }
261
+ if(value !== "auto") value = parseInt(value);
262
+ }
263
+ else {
264
+ value = "auto";
265
+ }
266
+ }
267
+ catch(e){
268
+ value = "auto";
269
+ }
270
+ return value;
271
+ }
272
+
273
+ // For EM Values
274
+ var style = object.style.left;
275
+ var runtimeStyle = object.runtimeStyle.left;
276
+ object.runtimeStyle.left = object.currentStyle.left;
277
+ object.style.left = value || 0;
278
+ value = parseInt(object.style.pixelLeft);
279
+ object.style.left = style;
280
+ object.runtimeStyle.left = runtimeStyle;
281
+
282
+ return value;
283
+ }
284
+
285
+
286
+ /*
287
+ * getBorderWidth & friends
288
+ * Border width getters
289
+ */
290
+ function getBorderWidth(sSide){
291
+ if(element.currentStyle["border" + sSide + "Style"] == "none"){
292
+ return 0;
293
+ }
294
+ var n = getPixelValue(element.currentStyle["border" + sSide + "Width"]);
295
+ return n || 0;
296
+ }
297
+ function getBorderLeftWidth() { return getBorderWidth("Left"); }
298
+ function getBorderRightWidth() { return getBorderWidth("Right"); }
299
+ function getBorderTopWidth() { return getBorderWidth("Top"); }
300
+ function getBorderBottomWidth() { return getBorderWidth("Bottom"); }
301
+
302
+
303
+ /*
304
+ * getPadding & friends
305
+ * Padding width getters
306
+ */
307
+ function getPadding(sSide) {
308
+ var n = getPixelValue(element.currentStyle["padding" + sSide]);
309
+ return n || 0;
310
+ }
311
+ function getPaddingLeft() { return getPadding("Left"); }
312
+ function getPaddingRight() { return getPadding("Right"); }
313
+ function getPaddingTop() { return getPadding("Top"); }
314
+ function getPaddingBottom() { return getPadding("Bottom"); }
315
+
316
+
317
+
318
+ /*
319
+ * getBoxSizing
320
+ * Get the box-sizing value for the current element
321
+ */
322
+ function getBoxSizing(){
323
+ var s = element.style;
324
+ var cs = element.currentStyle
325
+ if(typeof s.boxSizing != "undefined" && s.boxSizing != ""){
326
+ return s.boxSizing;
327
+ }
328
+ if(typeof s["box-sizing"] != "undefined" && s["box-sizing"] != ""){
329
+ return s["box-sizing"];
330
+ }
331
+ if(typeof cs.boxSizing != "undefined" && cs.boxSizing != ""){
332
+ return cs.boxSizing;
333
+ }
334
+ if(typeof cs["box-sizing"] != "undefined" && cs["box-sizing"] != ""){
335
+ return cs["box-sizing"];
336
+ }
337
+ return getDocumentBoxSizing();
338
+ }
339
+
340
+
341
+ /*
342
+ * getDocumentBoxSizing
343
+ * Get the default document box sizing (check for quirks mode)
344
+ */
345
+ function getDocumentBoxSizing(){
346
+ if(doc.compatMode === null || doc.compatMode === "BackCompat"){
347
+ return "border-box";
348
+ }
349
+ return "content-box"
350
+ }
351
+
352
+
353
+ /*
354
+ * setBorderBoxWidth & friends
355
+ * Width and height setters
356
+ */
357
+ function setBorderBoxWidth(n){
358
+ element.runtimeStyle.width = Math.max(0, n - getBorderLeftWidth() -
359
+ getPaddingLeft() - getPaddingRight() - getBorderRightWidth()) + "px";
360
+ }
361
+ function setBorderBoxMinWidth(n){
362
+ element.runtimeStyle.minWidth = Math.max(0, n - getBorderLeftWidth() -
363
+ getPaddingLeft() - getPaddingRight() - getBorderRightWidth()) + "px";
364
+ }
365
+ function setBorderBoxMaxWidth(n){
366
+ element.runtimeStyle.maxWidth = Math.max(0, n - getBorderLeftWidth() -
367
+ getPaddingLeft() - getPaddingRight() - getBorderRightWidth()) + "px";
368
+ }
369
+ function setBorderBoxHeight(n){
370
+ element.runtimeStyle.height = Math.max(0, n - getBorderTopWidth() -
371
+ getPaddingTop() - getPaddingBottom() - getBorderBottomWidth()) + "px";
372
+ }
373
+ function setBorderBoxMinHeight(n){
374
+ element.runtimeStyle.minHeight = Math.max(0, n - getBorderTopWidth() -
375
+ getPaddingTop() - getPaddingBottom() - getBorderBottomWidth()) + "px";
376
+ }
377
+ function setBorderBoxMaxHeight(n){
378
+ element.runtimeStyle.maxHeight = Math.max(0, n - getBorderTopWidth() -
379
+ getPaddingTop() - getPaddingBottom() - getBorderBottomWidth()) + "px";
380
+ }
381
+ function setContentBoxWidth(n){
382
+ element.runtimeStyle.width = Math.max(0, n + getBorderLeftWidth() +
383
+ getPaddingLeft() + getPaddingRight() + getBorderRightWidth()) + "px";
384
+ }
385
+ function setContentBoxMinWidth(n){
386
+ element.runtimeStyle.minWidth = Math.max(0, n + getBorderLeftWidth() +
387
+ getPaddingLeft() + getPaddingRight() + getBorderRightWidth()) + "px";
388
+ }
389
+ function setContentBoxMaxWidth(n){
390
+ element.runtimeStyle.maxWidth = Math.max(0, n + getBorderLeftWidth() +
391
+ getPaddingLeft() + getPaddingRight() + getBorderRightWidth()) + "px";
392
+ }
393
+ function setContentBoxHeight(n){
394
+ element.runtimeStyle.height = Math.max(0, n + getBorderTopWidth() +
395
+ getPaddingTop() + getPaddingBottom() + getBorderBottomWidth()) + "px";
396
+ }
397
+ function setContentBoxMinHeight(n){
398
+ element.runtimeStyle.minHeight = Math.max(0, n + getBorderTopWidth() +
399
+ getPaddingTop() + getPaddingBottom() + getBorderBottomWidth()) + "px";
400
+ }
401
+ function setContentBoxMaxHeight(n){
402
+ element.runtimeStyle.maxHeight = Math.max(0, n + getBorderTopWidth() +
403
+ getPaddingTop() + getPaddingBottom() + getBorderBottomWidth()) + "px";
404
+ }
405
+
406
+
407
+ /*
408
+ * updateBorderBoxWidth & updateBorderBoxHeight
409
+ *
410
+ */
411
+ function updateBorderBoxWidth() {
412
+ if(getDocumentBoxSizing() == getBoxSizing()){
413
+ return;
414
+ }
415
+
416
+ var csw = element.currentStyle.width;
417
+ if(csw != "auto"){
418
+ csw = getPixelWidth(element,csw);
419
+ if(getBoxSizing() == "border-box"){
420
+ setBorderBoxWidth(parseInt(csw));
421
+ }
422
+ else{
423
+ setContentBoxWidth(parseInt(csw));
424
+ }
425
+ }
426
+
427
+ csw = element.currentStyle.minWidth;
428
+ if(csw != "none"){
429
+ csw = getPixelWidth(element,csw);
430
+ if(getBoxSizing() == "border-box"){
431
+ setBorderBoxMinWidth(parseInt(csw));
432
+ }
433
+ else{
434
+ setContentBoxMinWidth(parseInt(csw));
435
+ }
436
+ }
437
+
438
+ csw = element.currentStyle.maxWidth;
439
+ if(csw != "none"){
440
+ csw = getPixelWidth(element,csw);
441
+ if(getBoxSizing() == "border-box"){
442
+ setBorderBoxMaxWidth(parseInt(csw));
443
+ }
444
+ else{
445
+ setContentBoxMaxWidth(parseInt(csw));
446
+ }
447
+ }
448
+ }
449
+
450
+ function updateBorderBoxHeight() {
451
+ if(getDocumentBoxSizing() == getBoxSizing()){
452
+ return;
453
+ }
454
+
455
+ var csh = element.currentStyle.height;
456
+ if(csh != "auto"){
457
+ csh = getPixelHeight(element,csh);
458
+ if(csh !== "auto"){
459
+ if(getBoxSizing() == "border-box"){
460
+ setBorderBoxHeight(parseInt(csh));
461
+ }
462
+ else{
463
+ setContentBoxHeight(parseInt(csh));
464
+ }
465
+ }
466
+ }
467
+
468
+ csh = element.currentStyle.minHeight;
469
+ if(csh != "none"){
470
+ csh = getPixelHeight(element,csh);
471
+ if(csh !== "none"){
472
+ if(getBoxSizing() == "border-box"){
473
+ setBorderBoxMinHeight(parseInt(csh));
474
+ }
475
+ else{
476
+ setContentBoxMinHeight(parseInt(csh));
477
+ }
478
+ }
479
+ }
480
+
481
+ csh = element.currentStyle.maxHeight;
482
+ if(csh != "none"){
483
+ csh = getPixelHeight(element,csh);
484
+ if(csh !== "none"){
485
+ if(getBoxSizing() == "border-box"){
486
+ setBorderBoxMaxHeight(parseInt(csh));
487
+ }
488
+ else{
489
+ setContentBoxMaxHeight(parseInt(csh));
490
+ }
491
+ }
492
+ }
493
+ }
494
+
495
+
496
+ // Run the calculations
497
+ init();
498
+
499
+ //]]>
500
+ </script>
501
+ </component>