groundworkcss-rails 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. data/lib/groundworkcss/rails/version.rb +1 -1
  2. data/lib/groundworkcss/rails/version.rb~ +1 -1
  3. data/vendor/assets/images/groundworkcss/orbit/bullets.jpg +0 -0
  4. data/vendor/assets/images/groundworkcss/orbit/left-arrow.png +0 -0
  5. data/vendor/assets/images/groundworkcss/orbit/mask-black.png +0 -0
  6. data/vendor/assets/images/groundworkcss/orbit/pause-black.png +0 -0
  7. data/vendor/assets/images/groundworkcss/orbit/right-arrow.png +0 -0
  8. data/vendor/assets/images/groundworkcss/orbit/rotator-black.png +0 -0
  9. data/vendor/assets/images/groundworkcss/orbit/timer-black.png +0 -0
  10. data/vendor/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
  11. data/vendor/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
  12. data/vendor/assets/images/groundworkcss/social-icons/500px.png +0 -0
  13. data/vendor/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
  14. data/vendor/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
  15. data/vendor/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
  16. data/vendor/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
  17. data/vendor/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
  18. data/vendor/assets/images/groundworkcss/social-icons/adn.png +0 -0
  19. data/vendor/assets/images/groundworkcss/social-icons/android-m.png +0 -0
  20. data/vendor/assets/images/groundworkcss/social-icons/android-s.png +0 -0
  21. data/vendor/assets/images/groundworkcss/social-icons/android.png +0 -0
  22. data/vendor/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
  23. data/vendor/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
  24. data/vendor/assets/images/groundworkcss/social-icons/apple.png +0 -0
  25. data/vendor/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
  26. data/vendor/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
  27. data/vendor/assets/images/groundworkcss/social-icons/behance.png +0 -0
  28. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
  29. data/vendor/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
  30. data/vendor/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
  31. data/vendor/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
  32. data/vendor/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
  33. data/vendor/assets/images/groundworkcss/social-icons/blogger.png +0 -0
  34. data/vendor/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
  35. data/vendor/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
  36. data/vendor/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
  37. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
  38. data/vendor/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
  39. data/vendor/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
  40. data/vendor/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
  41. data/vendor/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
  42. data/vendor/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
  43. data/vendor/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
  44. data/vendor/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
  45. data/vendor/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
  46. data/vendor/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
  47. data/vendor/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
  48. data/vendor/assets/images/groundworkcss/social-icons/evernote.png +0 -0
  49. data/vendor/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
  50. data/vendor/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
  51. data/vendor/assets/images/groundworkcss/social-icons/facebook.png +0 -0
  52. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
  53. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
  54. data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
  55. data/vendor/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
  56. data/vendor/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
  57. data/vendor/assets/images/groundworkcss/social-icons/flickr.png +0 -0
  58. data/vendor/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
  59. data/vendor/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
  60. data/vendor/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
  61. data/vendor/assets/images/groundworkcss/social-icons/git-m.png +0 -0
  62. data/vendor/assets/images/groundworkcss/social-icons/git-s.png +0 -0
  63. data/vendor/assets/images/groundworkcss/social-icons/git.png +0 -0
  64. data/vendor/assets/images/groundworkcss/social-icons/github-m.png +0 -0
  65. data/vendor/assets/images/groundworkcss/social-icons/github-s.png +0 -0
  66. data/vendor/assets/images/groundworkcss/social-icons/github.png +0 -0
  67. data/vendor/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
  68. data/vendor/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
  69. data/vendor/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
  70. data/vendor/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
  71. data/vendor/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
  72. data/vendor/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
  73. data/vendor/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
  74. data/vendor/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
  75. data/vendor/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
  76. data/vendor/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
  77. data/vendor/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
  78. data/vendor/assets/images/groundworkcss/social-icons/html5.png +0 -0
  79. data/vendor/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
  80. data/vendor/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
  81. data/vendor/assets/images/groundworkcss/social-icons/icloud.png +0 -0
  82. data/vendor/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
  83. data/vendor/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
  84. data/vendor/assets/images/groundworkcss/social-icons/instagram.png +0 -0
  85. data/vendor/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
  86. data/vendor/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
  87. data/vendor/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
  88. data/vendor/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
  89. data/vendor/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
  90. data/vendor/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
  91. data/vendor/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
  92. data/vendor/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
  93. data/vendor/assets/images/groundworkcss/social-icons/mail.png +0 -0
  94. data/vendor/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
  95. data/vendor/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
  96. data/vendor/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
  97. data/vendor/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
  98. data/vendor/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
  99. data/vendor/assets/images/groundworkcss/social-icons/mixi.png +0 -0
  100. data/vendor/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
  101. data/vendor/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
  102. data/vendor/assets/images/groundworkcss/social-icons/msn.png +0 -0
  103. data/vendor/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
  104. data/vendor/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
  105. data/vendor/assets/images/groundworkcss/social-icons/orkut.png +0 -0
  106. data/vendor/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
  107. data/vendor/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
  108. data/vendor/assets/images/groundworkcss/social-icons/picasa.png +0 -0
  109. data/vendor/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
  110. data/vendor/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
  111. data/vendor/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
  112. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
  113. data/vendor/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
  114. data/vendor/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
  115. data/vendor/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
  116. data/vendor/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
  117. data/vendor/assets/images/groundworkcss/social-icons/quora.png +0 -0
  118. data/vendor/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
  119. data/vendor/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
  120. data/vendor/assets/images/groundworkcss/social-icons/rdio.png +0 -0
  121. data/vendor/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
  122. data/vendor/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
  123. data/vendor/assets/images/groundworkcss/social-icons/renren.png +0 -0
  124. data/vendor/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
  125. data/vendor/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
  126. data/vendor/assets/images/groundworkcss/social-icons/rss.png +0 -0
  127. data/vendor/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
  128. data/vendor/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
  129. data/vendor/assets/images/groundworkcss/social-icons/skitch.png +0 -0
  130. data/vendor/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
  131. data/vendor/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
  132. data/vendor/assets/images/groundworkcss/social-icons/skype.png +0 -0
  133. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
  134. data/vendor/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
  135. data/vendor/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
  136. data/vendor/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
  137. data/vendor/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
  138. data/vendor/assets/images/groundworkcss/social-icons/spotify.png +0 -0
  139. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
  140. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
  141. data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
  142. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
  143. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
  144. data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
  145. data/vendor/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
  146. data/vendor/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
  147. data/vendor/assets/images/groundworkcss/social-icons/svn.png +0 -0
  148. data/vendor/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
  149. data/vendor/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
  150. data/vendor/assets/images/groundworkcss/social-icons/tent.png +0 -0
  151. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
  152. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
  153. data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
  154. data/vendor/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
  155. data/vendor/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
  156. data/vendor/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
  157. data/vendor/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
  158. data/vendor/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
  159. data/vendor/assets/images/groundworkcss/social-icons/twitter.png +0 -0
  160. data/vendor/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
  161. data/vendor/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
  162. data/vendor/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
  163. data/vendor/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
  164. data/vendor/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
  165. data/vendor/assets/images/groundworkcss/social-icons/weibo.png +0 -0
  166. data/vendor/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
  167. data/vendor/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
  168. data/vendor/assets/images/groundworkcss/social-icons/windows.png +0 -0
  169. data/vendor/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
  170. data/vendor/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
  171. data/vendor/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
  172. data/vendor/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
  173. data/vendor/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
  174. data/vendor/assets/images/groundworkcss/social-icons/xing.png +0 -0
  175. data/vendor/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
  176. data/vendor/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
  177. data/vendor/assets/images/groundworkcss/social-icons/yelp.png +0 -0
  178. data/vendor/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
  179. data/vendor/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
  180. data/vendor/assets/images/groundworkcss/social-icons/youtube.png +0 -0
  181. data/vendor/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
  182. data/vendor/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
  183. data/vendor/assets/images/groundworkcss/social-icons/youversion.png +0 -0
  184. data/vendor/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
  185. data/vendor/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
  186. data/vendor/assets/images/groundworkcss/social-icons/zerply.png +0 -0
  187. data/vendor/assets/javascripts/groundwork-hook.js +1 -0
  188. data/vendor/assets/javascripts/groundwork-hook.js~ +2 -0
  189. data/vendor/assets/javascripts/groundworkcss/components/disabled.js +13 -0
  190. data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.js +34 -0
  191. data/vendor/assets/javascripts/groundworkcss/components/forms.js +29 -0
  192. data/vendor/assets/javascripts/groundworkcss/components/menus.js +85 -0
  193. data/vendor/assets/javascripts/groundworkcss/components/modals.js +8 -0
  194. data/vendor/assets/javascripts/groundworkcss/components/pagination.js +98 -0
  195. data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.js +24 -0
  196. data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +21 -0
  197. data/vendor/assets/javascripts/groundworkcss/components/tabs.js +20 -0
  198. data/vendor/assets/javascripts/groundworkcss/components/tiles.js +25 -0
  199. data/vendor/assets/javascripts/groundworkcss/components/tooltips.js +8 -0
  200. data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +670 -525
  201. data/vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js +11 -8
  202. data/vendor/assets/stylesheets/groundworkcss-scss/_animations.scss +25 -0
  203. data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +15 -13
  204. data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +3 -0
  205. data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss +5 -5
  206. data/vendor/assets/stylesheets/groundworkcss-scss/_forms.scss +3 -0
  207. data/vendor/assets/stylesheets/groundworkcss-scss/_grid.scss +1 -1
  208. data/vendor/assets/stylesheets/groundworkcss-scss/_helpers.scss +171 -73
  209. data/vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss +94 -32
  210. data/vendor/assets/stylesheets/groundworkcss-scss/_modals.scss +2 -2
  211. data/vendor/assets/stylesheets/groundworkcss-scss/_navigation.scss +173 -116
  212. data/vendor/assets/stylesheets/groundworkcss-scss/_reset.scss +1 -1
  213. data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +112 -88
  214. data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +57 -66
  215. data/vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss +198 -0
  216. data/vendor/assets/stylesheets/groundworkcss-scss/_typography.scss +3 -3
  217. data/vendor/assets/stylesheets/groundworkcss-scss/_variables.scss +13 -3
  218. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +1 -0
  219. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +6 -1
  220. metadata +27 -14
@@ -5,8 +5,6 @@
5
5
  * jQuery Modals by Gary Hepting
6
6
  * https://github.com/ghepting/modal
7
7
  *
8
- * Based on Avgrund by Hakim El Hattab <3
9
- *
10
8
  */
11
9
 
12
10
 
@@ -30,10 +28,12 @@
30
28
  elems = [];
31
29
  $.fn.modal = function() {
32
30
  this.each(function() {
31
+ var $this;
33
32
  $(this).not('#iframeModal').wrapInner('<div class="modal-content"></div>');
34
33
  $(this).prepend('<i class="close icon-remove"></i>').prepend('<i class="fullscreen icon-resize-full"></i>').appendTo('body');
34
+ $this = $(this);
35
35
  return $('[href=#' + $(this).attr('id') + ']').on("click", function(e) {
36
- modals.open($(this).attr('href'));
36
+ modals.open($(this).attr('href'), $(this).hasClass('fullscreen'));
37
37
  e.preventDefault();
38
38
  return false;
39
39
  });
@@ -47,14 +47,14 @@
47
47
  };
48
48
  modals = (function() {
49
49
  var close, fullscreen, open;
50
- $('html').addClass('modal-ready');
50
+ $('body').addClass('modal-ready');
51
51
  if ($("#overlay").length < 1) {
52
52
  $('body').append('<div id="overlay"></div>');
53
53
  }
54
54
  $('#overlay, div.modal .close').bind("click", function(e) {
55
55
  return close();
56
56
  });
57
- open = function(elem) {
57
+ open = function(elem, fullscreen) {
58
58
  $(window).bind("keydown", function(e) {
59
59
  var keyCode;
60
60
  keyCode = (e.which ? e.which : e.keyCode);
@@ -79,17 +79,20 @@
79
79
  'margin-left': ($(elem).outerWidth() / -2) + 'px'
80
80
  });
81
81
  setTimeout(function() {
82
- return $('html').addClass("modal-active");
82
+ return $('body').addClass("modal-active");
83
83
  }, 0);
84
84
  setTimeout(function() {
85
- return $('html').removeClass('modal-ready');
85
+ return $('body').removeClass('modal-ready');
86
86
  }, 400);
87
+ if (fullscreen) {
88
+ modals.fullscreen(elem);
89
+ }
87
90
  };
88
91
  close = function() {
89
92
  var modal;
90
93
  modal = $('div.modal.active');
91
94
  $(window).unbind("keydown");
92
- $('html').removeClass("modal-active").addClass('modal-ready');
95
+ $('body').removeClass("modal-active").addClass('modal-ready');
93
96
  if (modal.hasClass('iframe')) {
94
97
  $('div#iframeModal iframe').replaceWith('<iframe marginheight="0" marginwidth="0" frameborder="0"></iframe>');
95
98
  modal.css({
@@ -0,0 +1,25 @@
1
+ // ====================
2
+ // CSS animations
3
+ // ====================
4
+
5
+ // spin (required by helpers)
6
+ @-moz-keyframes spin {
7
+ 0% { -moz-transform: rotate(0deg); }
8
+ 100% { -moz-transform: rotate(359deg); }
9
+ }
10
+ @-webkit-keyframes spin {
11
+ 0% { -webkit-transform: rotate(0deg); }
12
+ 100% { -webkit-transform: rotate(359deg); }
13
+ }
14
+ @-o-keyframes spin {
15
+ 0% { -o-transform: rotate(0deg); }
16
+ 100% { -o-transform: rotate(359deg); }
17
+ }
18
+ @-ms-keyframes spin {
19
+ 0% { -ms-transform: rotate(0deg); }
20
+ 100% { -ms-transform: rotate(359deg); }
21
+ }
22
+ @keyframes spin {
23
+ 0% { transform: rotate(0deg); }
24
+ 100% { transform: rotate(359deg); }
25
+ }
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- button, .button, a.button, a.button:visited, input[type=submit], input[type=button], input[type=reset] {
8
+ button, .button, a.button, a.button:visited, input[type=submit], input[type=button], input[type=reset], [role=button] {
9
9
  display:inline-block;
10
10
  word-wrap:break-word;
11
11
  padding:0.25em 1em;
@@ -33,11 +33,7 @@ button, .button, a.button, a.button:visited, input[type=submit], input[type=but
33
33
  color:$button-active-text;
34
34
  }
35
35
  &.disabled {
36
- background:lighten(gray, 15%);
37
- border-color:gray;
38
- color:lighten(gray, 35%);
39
- cursor:not-allowed;
40
- text-decoration:none;
36
+ @include state(disabled,normal,desaturate($button-color,20%));
41
37
  }
42
38
  &.small {
43
39
  font-size:0.8em;
@@ -49,25 +45,34 @@ button, .button, a.button, a.button:visited, input[type=submit], input[type=but
49
45
  background:$error-color;
50
46
  border:1px solid darken($error-color, 10%);
51
47
  color:$button-text;
52
- &:hover, &:focus {
48
+ &.active, &:hover, &:focus {
53
49
  background:darken($error-color, 10%);
54
50
  }
51
+ &.disabled {
52
+ @include state(disabled,normal,desaturate($error-color,20%));
53
+ }
55
54
  }
56
55
  &.warning {
57
56
  background:$warning-color;
58
57
  border:1px solid darken($warning-color, 10%);
59
58
  color:$button-text;
60
- &:hover, &:focus {
59
+ &.active, &:hover, &:focus {
61
60
  background:darken($warning-color, 10%);
62
61
  }
62
+ &.disabled {
63
+ @include state(disabled,normal,desaturate($warning-color,20%));
64
+ }
63
65
  }
64
66
  &.success {
65
67
  background:$success-color;
66
68
  border:1px solid darken($success-color, 10%);
67
69
  color:$button-text;
68
- &:hover, &:focus {
70
+ &.active, &:hover, &:focus {
69
71
  background:darken($success-color, 10%);
70
72
  }
73
+ &.disabled {
74
+ @include state(disabled,normal,desaturate($success-color,20%));
75
+ }
71
76
  }
72
77
  &.square {
73
78
  @include rounded(0);
@@ -172,10 +177,7 @@ ul.button-list, ol.button-list {
172
177
  color:$button-active-text;
173
178
  }
174
179
  &.disabled {
175
- background:lighten(gray, 15%);
176
- border-color:gray;
177
- color:lighten(gray, 35%);
178
- cursor:not-allowed;
180
+ @include state(disabled,normal,desaturate($button-color,20%));
179
181
  }
180
182
  }
181
183
  }
@@ -41,6 +41,9 @@
41
41
  &.round {
42
42
  @include rounded(9999px);
43
43
  }
44
+ &.disabled {
45
+ @include state(disabled);
46
+ }
44
47
  // content overrides
45
48
  h1, h2, h3, h4, h5, h6 {
46
49
  color:$button-text;
@@ -21,7 +21,7 @@
21
21
  * Work: Lead Product Designer @ http://kyruus.com
22
22
  */
23
23
 
24
- $fontAwesomePath: "../font" !default;
24
+ $fontAwesomePath: "#{$root_path}#{$fonts_path}" !default;
25
25
  $borderColor: #eee;
26
26
  $iconMuted: #eee;
27
27
  @mixin border-radius($radius) { -webkit-border-radius: $radius; -moz-border-radius: $radius; border-radius: $radius; }
@@ -29,10 +29,10 @@ $iconMuted: #eee;
29
29
 
30
30
  @font-face {
31
31
  font-family: 'FontAwesome';
32
- src: url('#{$fontAwesomePath}/fontawesome-webfont.eot?v=3.0.1');
33
- src: url('#{$fontAwesomePath}/fontawesome-webfont.eot?#iefix&v=3.0.1') format("embedded-opentype"),
34
- url('#{$fontAwesomePath}/fontawesome-webfont.woff?v=3.0.1') format("woff"),
35
- url('#{$fontAwesomePath}/fontawesome-webfont.ttf?v=3.0.1') format("truetype");
32
+ src: url('#{$fontAwesomePath}fontawesome-webfont.eot?v=3.0.1');
33
+ src: url('#{$fontAwesomePath}fontawesome-webfont.eot?#iefix&v=3.0.1') format("embedded-opentype"),
34
+ url('#{$fontAwesomePath}fontawesome-webfont.woff?v=3.0.1') format("woff"),
35
+ url('#{$fontAwesomePath}fontawesome-webfont.ttf?v=3.0.1') format("truetype");
36
36
  font-weight: normal;
37
37
  font-style: normal;
38
38
  }
@@ -33,6 +33,9 @@ input, select, textarea {
33
33
  background:white;
34
34
  border:1px solid $border-color;
35
35
  @include rounded($radius);
36
+ &[size] {
37
+ height:auto;
38
+ }
36
39
  &[type=checkbox], &[type=radio] {
37
40
  display:inline-block;
38
41
  width:1em;
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  %row {
20
- @extend .clear;
20
+ @extend %clear;
21
21
  width: $one-whole;
22
22
  }
23
23
 
@@ -1,87 +1,181 @@
1
- // ====================
2
- // layout helpers
3
- // ====================
1
+ // ================================
2
+ // layout helpers: mixins
3
+ // ================================
4
4
 
5
- %clear, %clearfix { clear:both;
6
- &:after { content:''; display:block; clear:both; }
5
+ @mixin _clear {
6
+ clear: both;
7
+ &:after {content:''; display:block; clear:both;}
7
8
  }
8
- %padded { padding:$gutter;
9
- &%double { padding:$gutter*2; }
10
- &%triple { padding:$gutter*3; }
11
- }
12
- %pad-top { padding-top:$gutter;
13
- &%double { padding-top:$gutter*2; }
14
- &%triple { padding-top:$gutter*3; }
15
- }
16
- %pad-right { padding-right:$gutter;
17
- &%double { padding-right:$gutter*2; }
18
- &%triple { padding-right:$gutter*3; }
9
+ @mixin _clearfix {@include _clear;}
10
+
11
+ @mixin _padded($multiple: 1) { padding: $gutter * $multiple; }
12
+ @mixin _pad-top($multiple: 1) { padding-top: $gutter * $multiple; }
13
+ @mixin _pad-right($multiple: 1) { padding-right: $gutter * $multiple; }
14
+ @mixin _pad-bottom($multiple: 1) { padding-bottom: $gutter * $multiple; }
15
+ @mixin _pad-left($multiple: 1) { padding-left: $gutter * $multiple; }
16
+
17
+ @mixin _gapped($multiple: 1) { margin: $gutter * $multiple; }
18
+ @mixin _gap-top($multiple: 1) { margin-top: $gutter * $multiple; }
19
+ @mixin _gap-right($multiple: 1) { margin-right: $gutter * $multiple; }
20
+ @mixin _gap-bottom($multiple: 1) { margin-bottom: $gutter * $multiple; }
21
+ @mixin _gap-left($multiple: 1) { margin-left: $gutter * $multiple; }
22
+
23
+ @mixin _stick($position: null) {
24
+ position: fixed;
25
+ z-index: 1;
26
+ @each $anchor in top, right, bottom, left {
27
+ @if $position == $anchor {#{$position}: 0;}
28
+ }
29
+ @if $position == middle {top: 50%;}
30
+ @if $position == center {left: 50%;}
19
31
  }
20
- %pad-bottom { padding-bottom:$gutter;
21
- &%double { padding-bottom:$gutter*2; }
22
- &%triple { padding-bottom:$gutter*3; }
32
+
33
+ @mixin _inline { display:inline-block; width:auto; }
34
+ @mixin _block { display:block; }
35
+ @mixin _zero { margin:0; padding:0; }
36
+ @mixin _pull-right { float:right; }
37
+ @mixin _pull-left { float:left; }
38
+ @mixin _bordered { border: 1px solid $border-color; }
39
+ @mixin _border-top { border-top:1px solid $border-color; }
40
+ @mixin _border-right { border-right:1px solid $border-color; }
41
+ @mixin _border-bottom { border-bottom:1px solid $border-color; }
42
+ @mixin _border-left { border-left:1px solid $border-color; }
43
+ @mixin _align-top { display:table-cell; vertical-align:top; } // must have height (experimental)
44
+ @mixin _align-right { text-align:right; }
45
+ @mixin _align-bottom { display:table-cell; vertical-align:bottom; } // must have height (experimental)
46
+ @mixin _align-left { text-align:left; }
47
+ @mixin _align-center { text-align:center; }
48
+ @mixin _justify { text-align:justify; }
49
+ @mixin _truncate { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
50
+ @mixin _center { @include _block; margin:0 auto; }
51
+ @mixin _spacer { height:$gutter; }
52
+ @mixin _round { @include rounded(9999px); } // function is found in _mixins.scss
53
+ @mixin _disabled { @include state(disabled,textOnly); }
54
+
55
+ // Seems like redundant rotate and spin mixins, but are there any side implications if we move "@include _inline;" into the rotate() and spin() mixin in _mixins.scss?
56
+ @mixin _rotate-90 { @include _inline; @include rotate(90deg); }
57
+ @mixin _rotate-180 { @include _inline; @include rotate(180deg); }
58
+ @mixin _rotate-270 { @include _inline; @include rotate(270deg); }
59
+ @mixin _rotate-90-ctr { @include _inline; @include rotate(-90deg); }
60
+ @mixin _rotate-180-ctr { @include _inline; @include rotate(-180deg); }
61
+ @mixin _rotate-270-ctr { @include _inline; @include rotate(-270deg); }
62
+ @mixin _spin { @include _inline; @include spin; }
63
+ @mixin _spin-once { @include _inline; @include spin(1); }
64
+ @mixin _spin-twice { @include _inline; @include spin(2); }
65
+ @mixin _spin-thrice { @include _inline; @include spin(3); }
66
+ @mixin _spin-fast { @include _inline; @include spin(infinite,1s); }
67
+ @mixin _spin-fast-once { @include _inline; @include spin(1,1s); }
68
+ @mixin _spin-fast-twice { @include _inline; @include spin(2,1s); }
69
+ @mixin _spin-fast-thrice { @include _inline; @include spin(3,1s); }
70
+ @mixin _spin-slow { @include _inline; @include spin(infinite,5s); }
71
+ @mixin _spin-slow-once { @include _inline; @include spin(1,5s); }
72
+ @mixin _spin-slow-twice { @include _inline; @include spin(2,5s); }
73
+ @mixin _spin-slow-thrice { @include _inline; @include spin(3,5s); }
74
+
75
+ // ================================
76
+ // layout helpers: placeholders
77
+ // ================================
78
+
79
+ %clear, %clearfix { @include _clear;}
80
+
81
+ %padded { @include _padded;
82
+ &%double { @include _padded(2); }
83
+ &%triple { @include _padded(3); }
23
84
  }
24
- %pad-left { padding-left:$gutter;
25
- &%double { padding-left:$gutter*2; }
26
- &%triple { padding-left:$gutter*3; }
85
+ %pad-top { @include _pad-top;
86
+ &%double { @include _pad-top(2); }
87
+ &%triple { @include _pad-top(3); }
27
88
  }
28
- %gapped { margin:$gutter;
29
- &%double { margin:$gutter*2; }
30
- &%triple { margin:$gutter*3; }
89
+ %pad-right { @include _pad-right;
90
+ &%double { @include _pad-right(2); }
91
+ &%triple { @include _pad-right(3); }
31
92
  }
32
- %gap-top { margin-top:$gutter;
33
- &%double { margin-top:$gutter*2; }
34
- &%triple { margin-top:$gutter*3; }
93
+ %pad-bottom { @include _pad-bottom;
94
+ &%double { @include _pad-bottom(2); }
95
+ &%triple { @include _pad-bottom(3); }
35
96
  }
36
- %gap-right { margin-right:$gutter;
37
- &%double { margin-right:$gutter*2; }
38
- &%triple { margin-right:$gutter*3; }
97
+ %pad-left { @include _pad-left;
98
+ &%double { @include _pad-left(2); }
99
+ &%triple { @include _pad-left(3); }
39
100
  }
40
- %gap-bottom { margin-bottom:$gutter;
41
- &%double { margin-bottom:$gutter*2; }
42
- &%triple { margin-bottom:$gutter*3; }
101
+ %gapped { @include _gapped;
102
+ &%double { @include _gapped(2); }
103
+ &%triple { @include _gapped(3); }
43
104
  }
44
- %gap-left { margin-left:$gutter;
45
- &%double { margin-left:$gutter*2; }
46
- &%triple { margin-left:$gutter*3; }
105
+ %gap-top { @include _gap-top;
106
+ &%double { @include _gap-top(2); }
107
+ &%triple { @include _gap-top(3); }
108
+ }
109
+ %gap-right { @include _gap-right;
110
+ &%double { @include _gap-right(2); }
111
+ &%triple { @include _gap-right(3); }
112
+ }
113
+ %gap-bottom { @include _gap-bottom;
114
+ &%double { @include _gap-bottom(2); }
115
+ &%triple { @include _gap-bottom(3); }
116
+ }
117
+ %gap-left { @include _gap-left;
118
+ &%double { @include _gap-left(2); }
119
+ &%triple { @include _gap-left(3); }
47
120
  }
48
- %stick { position:fixed; z-index:1;
49
- &%top { top:0; }
50
- &%right { right:0; }
51
- &%bottom { bottom:0; }
52
- &%left { left:0; }
53
- &%middle { top:50%; }
54
- &%center { left:50%; }
121
+ %stick { @include _stick;
122
+ &%top { @include _stick(top); } // Will this compile position:fixed and z:1 twice? Have to check.
123
+ &%right { @include _stick(right); }
124
+ &%bottom { @include _stick(bottom); }
125
+ &%left { @include _stick(left); }
126
+ &%middle { @include _stick(middle); }
127
+ &%center { @include _stick(center); }
55
128
  }
56
- %inline { display:inline-block; width:auto; }
57
- %block { display:block; }
58
- %zero { margin:0; padding:0; }
59
- %pull-right { float:right; }
60
- %pull-left { float:left; }
61
- %bordered { border: 1px solid $border-color; }
62
- %border-top { border-top:1px solid $border-color; }
63
- %border-right { border-right:1px solid $border-color; }
64
- %border-bottom { border-bottom:1px solid $border-color; }
65
- %border-left { border-left:1px solid $border-color; }
66
- %align-top { display:table-cell; vertical-align:top; } // must have height (experimental)
67
- %align-right { text-align:right; }
68
- %align-bottom { display:table-cell; vertical-align:bottom; } // must have height (experimental)
69
- %align-left { text-align:left; }
70
- %align-center { text-align:center; }
71
- %justify { text-align:justify; }
72
- %center { @extend %block; margin:0 auto; }
73
- %space { height:$gutter; }
74
- %round { @include rounded(9999px); }
75
- %rotate-90 { @extend %inline; @include rotate(90deg); }
76
- %rotate-180 { @extend %inline; @include rotate(180deg); }
77
- %rotate-270 { @extend %inline; @include rotate(270deg); }
78
- %rotate-90-ctr { @extend %inline; @include rotate(-90deg); }
79
- %rotate-180-ctr { @extend %inline; @include rotate(-180deg); }
80
- %rotate-270-ctr { @extend %inline; @include rotate(-270deg); }
129
+
130
+ %inline { @include _inline; }
131
+ %block { @include _block; }
132
+ %zero { @include _zero; }
133
+ %pull-right { @include _pull-right; }
134
+ %pull-left { @include _pull-left; }
135
+ %bordered { @include _bordered; }
136
+ %border-top { @include _border-top; }
137
+ %border-right { @include _border-right; }
138
+ %border-bottom { @include _border-bottom; }
139
+ %border-left { @include _border-left; }
140
+ %align-top { @include _align-top; } // must have height (experimental)
141
+ %align-right { @include _align-right; }
142
+ %align-bottom { @include _align-bottom; } // must have height (experimental)
143
+ %align-left { @include _align-left; }
144
+ %align-center { @include _align-center; }
145
+ %justify { @include _justify; }
146
+ %truncate { @include _truncate; }
147
+ %center { @include _center; }
148
+ %spacer { @include _spacer; }
149
+ %round { @include _round; }
150
+ %disabled { @include _disabled; }
151
+ %rotate-90 { @include _rotate-90; } // As mentioned above, might be referring to redundant mixins.
152
+ %rotate-180 { @include _rotate-180; }
153
+ %rotate-270 { @include _rotate-270; }
154
+ %rotate-90-ctr { @include _rotate-90-ctr; }
155
+ %rotate-180-ctr { @include _rotate-180-ctr; }
156
+ %rotate-270-ctr { @include _rotate-270-ctr; }
157
+ %spin { @include _spin; }
158
+ %spin-once { @include _spin-once; }
159
+ %spin-twice { @include _spin-twice; }
160
+ %spin-thrice { @include _spin-thrice; }
161
+ %spin-fast { @include _spin-fast; }
162
+ %spin-fast-once { @include _spin-fast-once; }
163
+ %spin-fast-twice { @include _spin-fast-twice; }
164
+ %spin-fast-thrice { @include _spin-fast-thrice; }
165
+ %spin-slow { @include _spin-slow; }
166
+ %spin-slow-once { @include _spin-slow-once; }
167
+ %spin-slow-twice { @include _spin-slow-twice; }
168
+ %spin-slow-thrice { @include _spin-slow-thrice; }
169
+
170
+
171
+ // ================================
172
+ // layout helpers: classes
173
+ // ================================
81
174
 
82
175
  @if $classes {
83
176
 
84
- $helpers: inline block zero pull-right pull-left border-right border-left border-top border-bottom align-top align-right align-bottom align-left align-center justify center space round rotate-90 rotate-180 rotate-270 rotate-90-ctr rotate-180-ctr rotate-270-ctr;
177
+ $helpers: inline block zero pull-right pull-left bordered border-right border-left border-top border-bottom align-top align-right align-bottom align-left align-center justify truncate center spacer round rotate-90 rotate-180 rotate-270 rotate-90-ctr rotate-180-ctr rotate-270-ctr spin spin-once spin-twice spin-thrice spin-fast spin-fast-once spin-fast-twice spin-fast-thrice spin-slow spin-slow-once spin-slow-twice spin-slow-thrice;
178
+
85
179
  // function to generate the helpers
86
180
  @for $i from 1 through length($helpers) {
87
181
  .#{nth($helpers, $i)} { @extend %#{nth($helpers, $i)}; }
@@ -91,9 +185,11 @@
91
185
  $modifiers: double triple;
92
186
  // function to generate the spacers
93
187
  @for $i from 1 through length($spacers) {
94
- .#{nth($spacers, $i)} { @extend %#{nth($spacers, $i)};
95
- &.double { @extend %double; }
96
- &.triple { @extend %triple; }
188
+ .#{nth($spacers, $i)} {
189
+ @extend %#{nth($spacers, $i)};
190
+ @for $i from 1 through length($modifiers) {
191
+ &.#{nth($modifiers, $i)} { @extend %#{nth($modifiers, $i)}; }
192
+ }
97
193
  }
98
194
  }
99
195
 
@@ -101,6 +197,8 @@
101
197
  &:after { content:''; display:block; clear:both; }
102
198
  }
103
199
 
200
+ .disabled { @include state(disabled,textOnly); }
201
+
104
202
  .stick { @extend %stick;
105
203
  &.top { @extend %top; }
106
204
  &.right { @extend %right; }