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
@@ -18,24 +18,56 @@
18
18
 
19
19
  @mixin desktop {
20
20
  @media only screen and (min-width:1025px) {
21
+ .hide-on-desktop { display:none; }
22
+ // helper overrides
23
+ .no-padding-desktop { padding:0; }
24
+ .no-margin-desktop { margin:0; }
25
+ .zero-desktop { @include _zero; }
21
26
  @content;
22
27
  }
23
28
  }
24
29
 
25
30
  @mixin ipad {
26
31
  @media only screen and (min-width:768px) and (max-width:1024px) {
32
+ .ipad-only { display:inline-block; }
33
+ .hide-on-ipad { display:none; }
34
+ .desktop-only { display:none; }
35
+ // helper overrides
36
+ .no-padding-ipad { padding:0; }
37
+ .no-margin-ipad { margin:0; }
38
+ .zero-ipad { @include _zero; }
39
+ @content;
40
+ }
41
+ }
42
+
43
+ @mixin ipad-above {
44
+ @media only screen and (min-width: 768px) {
27
45
  @content;
28
46
  }
29
47
  }
30
48
 
31
49
  @mixin small-tablet {
32
50
  @media only screen and (max-width:767px) {
51
+ .small-tablet-only { display:inline-block; }
52
+ .hide-on-small-tablet { display:none; }
53
+ .desktop-only { display:none; }
54
+ // helper overrides
55
+ .no-padding-small-tablet { padding:0; }
56
+ .no-margin-small-tablet { margin:0; }
57
+ .zero-small-tablet { @include _zero; }
33
58
  @content;
34
59
  }
35
60
  }
36
61
 
37
62
  @mixin mobile {
38
63
  @media only screen and (max-width:480px) {
64
+ .mobile-only { display:inline-block; }
65
+ .hide-on-mobile { display:none; }
66
+ .desktop-only { display:none; }
67
+ // helper overrides
68
+ .no-padding-mobile { padding:0; }
69
+ .no-margin-mobile { margin:0; }
70
+ .zero-mobile { @include _zero; }
39
71
  @content;
40
72
  }
41
73
  }
@@ -47,34 +79,17 @@
47
79
  }
48
80
 
49
81
  // ====================
50
- // custom functions
82
+ // helpers
51
83
  // ====================
52
84
 
53
- // convert x,y to approximate degrees
54
- @function degrees($x, $y) {
55
- @if ($x gt 0) {
56
- @if ($y gt 0) {
57
- @return 45;
58
- } @elseif ($y == 0) {
59
- @return 90;
60
- } @else {
61
- @return 315;
62
- }
63
- } @elseif ($x lt 0) {
64
- @if ($y gt 0) {
65
- @return 135;
66
- } @elseif ($y == 0) {
67
- @return 270;
68
- } @else {
69
- @return 225;
70
- }
71
- } @else {
72
- @return 0;
73
- }
74
- }
85
+ @mixin _zero { margin:0; padding:0; }
86
+
87
+ // ====================
88
+ // functions
89
+ // ====================
75
90
 
76
91
  // strip unit of measurement from a value
77
- @function numericvalue($val){
92
+ @function numericvalue($val) {
78
93
  $unit: unit($val);
79
94
  $number: $val / ($val * 0 + 1);
80
95
  @return $number;
@@ -86,9 +101,9 @@
86
101
 
87
102
  // inline image with fallback support for IE 7-
88
103
  @mixin data-image($file) {
89
- background-image:url('../images/#{$file}'); // fallback
104
+ background-image:url("#{$root_path}#{$images_path}#{$file}"); // fallback
90
105
  background-image:inline-image($file); // data URI
91
- *background-image:url('../images/#{$file}'); // IE7- hack
106
+ *background-image:url("#{$root_path}#{$images_path}#{$file}"); // IE7- hack
92
107
  }
93
108
 
94
109
  // // vertical gradient with support for IE 6-8 & 10
@@ -118,7 +133,7 @@
118
133
  }
119
134
 
120
135
  // box shadow
121
- @mixin drop-shadow($color:rgba(0,0,0,0.2), $blur:0, $x:0, $y:0) { // color, blur, x, y
136
+ @mixin drop-shadow($color:rgba(0,0,0,0.2), $blur:5px, $x:2px, $y:2px) { // color, blur, x, y
122
137
  -ms-box-shadow:$x $y $blur $color; // IE10+
123
138
  @if ($x == 0 and $y == 0) { // non directional glow
124
139
  filter: Glow(color=#{ie-hex-str($color)},strength=#{numericvalue($blur)});
@@ -152,6 +167,41 @@
152
167
  box-shadow:inset $x $y $blur $color;
153
168
  }
154
169
 
170
+ // text/UI Element states
171
+ @mixin state($state:'disabled',$mode:normal,$color:default) {
172
+ @if $color == 'default' {
173
+ @if $state == 'disabled' {
174
+ $color: $disabled-color;
175
+ }@else if $state == 'success' {
176
+ $color: $success-color;
177
+ }@else if $state == 'warning' {
178
+ $color: $warning-color;
179
+ }@else if $state == 'error' {
180
+ $color: $error-color;
181
+ }
182
+ }
183
+ color:lighten($color, 35%);
184
+ @if $mode != 'textOnly' {
185
+ background:lighten($color, 15%);
186
+ border-color:$color;
187
+ }
188
+ @if $state == 'disabled' {
189
+ cursor:not-allowed;
190
+ text-decoration:none;
191
+ outline:none;
192
+ &:hover, &:focus, &:visited {
193
+ color:lighten($color, 35%);
194
+ @if $mode != 'textOnly' {
195
+ background:lighten($color, 15%);
196
+ border-color:$color;
197
+ }
198
+ cursor:not-allowed;
199
+ text-decoration:none;
200
+ outline:none;
201
+ }
202
+ }
203
+ }
204
+
155
205
  // transition
156
206
  @mixin transition($transition:all 0.2s) {
157
207
  -ms-transition:$transition; // IE10+
@@ -171,7 +221,7 @@
171
221
  }
172
222
 
173
223
  // rotate
174
- @mixin rotate($deg:0deg){
224
+ @mixin rotate($deg:0deg) {
175
225
  -ms-transform:rotate($deg); // IE10+
176
226
  -o-transform:rotate($deg); // Opera
177
227
  -moz-transform:rotate($deg); // Firefox
@@ -179,8 +229,20 @@
179
229
  transform:rotate($deg);
180
230
  }
181
231
 
232
+ // spin
233
+ @mixin spin($count:infinite,$speed:2s,$easing:linear) {
234
+ -moz-animation: spin $speed $easing;
235
+ -moz-animation-iteration-count: $count;
236
+ -o-animation: spin $speed $easing;
237
+ -o-animation-iteration-count: $count;
238
+ -webkit-animation: spin $speed $easing;
239
+ -webkit-animation-iteration-count: $count;
240
+ animation: spin $speed $easing;
241
+ animation-iteration-count: $count;
242
+ }
243
+
182
244
  // scale
183
- @mixin scale($scale:0){
245
+ @mixin scale($scale:0) {
184
246
  -ms-transform:scale($scale); // IE10+
185
247
  -o-transform:scale($scale); // Opera
186
248
  -moz-transform:scale($scale); // Firefox
@@ -189,7 +251,7 @@
189
251
  }
190
252
 
191
253
  // translate
192
- @mixin translate($x:0, $y:0){
254
+ @mixin translate($x:0, $y:0) {
193
255
  -ms-transform:translate($x,$y); // IE10+
194
256
  -o-transform:translate($x,$y); // Opera
195
257
  -moz-transform:translate($x,$y); // Firefox
@@ -198,7 +260,7 @@
198
260
  }
199
261
 
200
262
  // transform (translate, rotate & scale)
201
- @mixin transform($x:0, $y:0, $scale:0, $deg:0deg){
263
+ @mixin transform($x:0, $y:0, $scale:0, $deg:0deg) {
202
264
  -ms-transform:translate($x,$y) rotate($deg) scale($scale); // IE10+
203
265
  -o-transform:translate($x,$y) rotate($deg) scale($scale); // Opera
204
266
  -moz-transform:translate($x,$y) rotate($deg) scale($scale); // Firefox
@@ -207,7 +269,7 @@
207
269
  }
208
270
 
209
271
  // transform origin
210
- @mixin transform-origin($x:0, $y:0){
272
+ @mixin transform-origin($x:0, $y:0) {
211
273
  -ms-transform-origin:$x $y; // IE10+
212
274
  -o-transform-origin:$x $y; // Opera
213
275
  -moz-transform-origin:$x $y; // Firefox
@@ -29,7 +29,7 @@
29
29
  visibility:visible;
30
30
  opacity:1;
31
31
  }
32
- div.modal.active {
32
+ div.modal.active, div[role=dialog].active {
33
33
  visibility:visible;
34
34
  opacity:1;
35
35
  z-index:999;
@@ -51,7 +51,7 @@
51
51
  @include gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.9));
52
52
  }
53
53
 
54
- div.modal {
54
+ div.modal, div[role=dialog] {
55
55
  visibility:hidden;
56
56
  opacity:0;
57
57
  position:fixed;
@@ -5,7 +5,20 @@
5
5
 
6
6
 
7
7
 
8
- nav {
8
+ %menu-closed {
9
+ display:none;
10
+ }
11
+ %menu-open {
12
+ display:block;
13
+ }
14
+
15
+ .nav {
16
+ @extend %clear;
17
+ &:not(.inline) {
18
+ > ul:not(.row) {
19
+ display:inline-block;
20
+ }
21
+ }
9
22
  ul {
10
23
  display:block;
11
24
  list-style:none;
@@ -14,30 +27,23 @@ nav {
14
27
  li {
15
28
  display:block;
16
29
  position:relative;
17
- &.on {
18
- > a, > a:visited {
19
- background:$button-active;
20
- text-decoration:none;
21
- }
22
- }
23
30
  a, a:visited {
24
31
  display:block;
25
32
  width:100%;
26
33
  word-wrap:break-word;
27
34
  padding:0.25em 1em;
28
35
  background:$button-color;
29
- border:1px solid $border-color;
36
+ border-top:1px solid $button-active;
30
37
  color:$button-text;
31
38
  font-weight:bold;
32
39
  font-size:1em;
33
40
  text-decoration:none;
34
- text-align:center;
35
41
  cursor:pointer;
36
42
  line-height:1.5;
37
43
  @include transition(background-color 0.25s ease-out);
38
44
  &:hover, &:focus {
39
45
  background:$button-active;
40
- border:1px solid $border-color;
46
+ color:$button-text;
41
47
  text-decoration:none;
42
48
  }
43
49
  &.active {
@@ -45,36 +51,49 @@ nav {
45
51
  background:$button-active;
46
52
  }
47
53
  }
54
+ &.disabled {
55
+ @include state(disabled,normal,desaturate($button-color,20%));
56
+ }
57
+ }
58
+ &:first-child {
59
+ a, a:visited {
60
+ border-top:none;
61
+ }
48
62
  }
49
63
  &.menu {
50
- > a {
64
+ &.disabled {
65
+ > a, > a:visited {
66
+ @include state(disabled,normal,desaturate($button-color,20%));
67
+ }
68
+ }
69
+ > a, > a:visited {
51
70
  &:after {
52
- content:'\f0d7'; // \f0c9
53
- display: inline-block;
54
- width: 1.1em;
71
+ content:'\f0d7';
72
+ display:inline-block;
73
+ width:1.1em;
55
74
  margin-left:0.25em;
56
- font-family: FontAwesome;
57
- font-weight: normal;
58
- font-style: normal;
75
+ font-family:FontAwesome;
76
+ font-weight:normal;
77
+ font-style:normal;
59
78
  font-size:1.1em;
60
- text-decoration: inherit;
61
- -webkit-font-smoothing: antialiased;
62
- line-height: normal;
63
- vertical-align: baseline;
64
- background-image: none;
65
- background-position: 0% 0%;
66
- background-repeat: repeat;
67
- margin-top: 0;
79
+ text-decoration:inherit;
80
+ -webkit-font-smoothing:antialiased;
81
+ line-height:normal;
82
+ vertical-align:baseline;
83
+ background-image:none;
84
+ background-position:0% 0%;
85
+ background-repeat:repeat;
86
+ margin-top:0;
68
87
  }
69
88
  }
70
- }
71
- &.on {
72
- a {
73
- border-bottom-right-radius:0 !important;
74
- border-bottom-left-radius:0 !important;
75
- }
76
- ul {
77
- display:block !important;
89
+ &.on {
90
+ > a, > a:visited {
91
+ background:$button-active;
92
+ text-decoration:none;
93
+ }
94
+ > ul {
95
+ @extend %menu-open;
96
+ }
78
97
  }
79
98
  }
80
99
  &:first-child {
@@ -87,30 +106,46 @@ nav {
87
106
  @include rounded(0 0 $radius $radius);
88
107
  }
89
108
  }
109
+ &:only-child {
110
+ a, a:visited {
111
+ @include rounded($radius);
112
+ }
113
+ }
90
114
  }
91
115
  ul {
92
- display:none;
116
+ @extend %menu-closed;
93
117
  position:absolute;
94
118
  left:100%;
95
- top:-1px;
119
+ top:0;
96
120
  width:auto;
97
121
  z-index:101;
98
122
  li {
99
123
  a, a:visited {
100
- @include rounded(0 !important);
124
+ @include rounded(0);
125
+ border:none;
126
+ border-top:1px solid $button-color;
101
127
  background:lighten($button-color, 5%);
102
128
  &:hover, &:active {
103
129
  background:lighten($button-active, 5%);
104
130
  }
131
+ &.disabled {
132
+ @include state(disabled,normal,desaturate(lighten($button-color, 5%),20%));
133
+ }
105
134
  }
106
135
  &:first-child {
107
136
  a, a:visited {
108
- @include rounded(0 $radius 0 0 !important);
137
+ border-top:none;
138
+ @include rounded(0 $radius 0 0);
109
139
  }
110
140
  }
111
141
  &:last-child {
112
142
  a, a:visited {
113
- @include rounded(0 0 $radius $radius !important);
143
+ @include rounded(0 0 $radius $radius);
144
+ }
145
+ }
146
+ &:only-child {
147
+ a, a:visited {
148
+ @include rounded(0 $radius $radius 0);
114
149
  }
115
150
  }
116
151
  }
@@ -119,10 +154,13 @@ nav {
119
154
  &.row {
120
155
  li {
121
156
  a, a:visited {
157
+ border-left:1px solid $button-active;
158
+ border-top:none;
122
159
  @include rounded(0);
123
160
  }
124
161
  &:first-child {
125
162
  a, a:visited {
163
+ border-left:none;
126
164
  @include rounded($radius 0 0 $radius);
127
165
  }
128
166
  }
@@ -131,9 +169,14 @@ nav {
131
169
  @include rounded(0 $radius $radius 0);
132
170
  }
133
171
  }
172
+ &:only-child {
173
+ a, a:visited {
174
+ @include rounded($radius);
175
+ }
176
+ }
134
177
  }
135
178
  ul {
136
- display:none;
179
+ @extend %menu-closed;
137
180
  position:absolute;
138
181
  left:auto;
139
182
  top:auto;
@@ -141,38 +184,41 @@ nav {
141
184
  z-index:101;
142
185
  li {
143
186
  a, a:visited {
144
- @include rounded(0 !important);
187
+ @include rounded(0);
188
+ border-left:none;
189
+ border-top:1px solid $button-active;
190
+ }
191
+ &:first-child {
192
+ a, a:visited {
193
+ @include rounded(0);
194
+ }
145
195
  }
146
196
  &:last-child {
147
197
  a, a:visited {
148
- @include rounded(0 0 $radius $radius !important);
198
+ @include rounded(0 0 $radius $radius);
149
199
  }
150
200
  }
151
201
  }
152
202
  }
153
203
  }
154
204
  }
155
- &:after {
156
- content:'';
157
- display:block;
158
- clear:both;
159
- }
160
205
  // horizontal inline navigation
161
206
  &.inline {
162
207
  width:auto;
163
208
  ul {
164
209
  font-size:0;
165
- @include rounded($radius);
166
210
  li {
167
211
  font-size:$font-size;
168
212
  display:inline-block;
169
213
  white-space-collapse:discard;
170
214
  float:none;
171
215
  a, a:visited {
172
-
216
+ border-left:1px solid $button-active;
217
+ border-top:none;
173
218
  }
174
219
  &:first-child {
175
220
  a, a:visited {
221
+ border-left:none;
176
222
  @include rounded($radius 0 0 $radius);
177
223
  }
178
224
  }
@@ -181,8 +227,14 @@ nav {
181
227
  @include rounded(0 $radius $radius 0);
182
228
  }
183
229
  }
230
+ &:only-child {
231
+ a, a:visited {
232
+ @include rounded($radius);
233
+ }
234
+ }
184
235
  ul {
185
- display:none;
236
+ @extend %menu-closed;
237
+ // display:none;
186
238
  position:absolute;
187
239
  left:auto;
188
240
  top:auto;
@@ -191,11 +243,18 @@ nav {
191
243
  li {
192
244
  display:block;
193
245
  a, a:visited {
194
- @include rounded(0 !important);
246
+ @include rounded(0);
247
+ border-left:none;
248
+ border-top:1px solid $button-active;
249
+ }
250
+ &:first-child {
251
+ a, a:visited {
252
+ @include rounded(0);
253
+ }
195
254
  }
196
255
  &:last-child {
197
256
  a, a:visited {
198
- @include rounded(0 0 $radius $radius !important);
257
+ @include rounded(0 0 $radius $radius);
199
258
  }
200
259
  }
201
260
  }
@@ -203,87 +262,85 @@ nav {
203
262
  }
204
263
  }
205
264
  }
206
- // pagination
207
- &.pagination {
208
- ul {
209
- margin:10px auto;
210
- display:block;
211
- list-style-type:none;
212
- text-align:center;
213
- li {
214
- display:inline-block;
215
- @include rounded(4px);
216
- padding:0 3px 0 2px;
217
- min-width:29px;
265
+ // hamburger menu
266
+ &.menu {
267
+ .menu-toggle {
268
+ @extend .button;
269
+ display:none !important;
270
+ }
271
+ }
272
+ }
273
+ // pagination
274
+ .pagination {
275
+ ul {
276
+ margin:10px auto;
277
+ display:block;
278
+ list-style-type:none;
279
+ li {
280
+ display:inline-block;
281
+ @include rounded($radius);
282
+ padding:0 3px 0 2px;
283
+ min-width:29px;
284
+ a {
285
+ display:block;
286
+ background:$button-color;
287
+ font-size:1em;
288
+ line-height:1.5;
289
+ font-weight:bold;
290
+ color:$button-text;
291
+ text-decoration:none;
218
292
  text-align:center;
219
- a {
220
- display:block;
221
- font-size:1em;
222
- line-height:1.5;
223
- font-weight:bold;
293
+ padding:0 3px;
294
+ @include rounded(4px);
295
+ &:hover, &:focus {
296
+ background:$button-active;
224
297
  color:$button-text;
225
- text-decoration:none;
226
- padding:0 3px;
227
- @include rounded(4px);
228
- &:hover, &:focus {
229
- background:$button-active;
230
- color:$button-text;
231
- }
232
298
  }
233
- &.active {
234
- a {
235
- background:lighten(gray, 15%);
236
- border-color:gray;
237
- color:lighten(gray, 35%);
238
- text-decoration:none;
239
- &:hover, &:focus {
240
- background:lighten(gray, 15%);
241
- border-color:gray;
242
- color:lighten(gray, 35%);
243
- }
244
- }
299
+ &.disabled {
300
+ @include state(disabled,normal,desaturate($button-color,20%));
245
301
  }
246
- &.prev, &.next {
247
- a {
248
- padding:0 4px;
249
- background:$button-color;
250
- color:#fff;
251
- &:hover, &:focus {
252
- background:$button-active;
253
- }
254
- }
302
+ }
303
+ &.active {
304
+ a {
305
+ @include state(disabled,normal,desaturate($button-color,20%));
255
306
  }
256
- &.disabled {
257
- a {
258
- background:lighten(gray, 15%);
259
- border-color:gray;
260
- color:lighten(gray, 35%);
261
- text-decoration:none;
262
- &:hover, &:focus {
263
- background:lighten(gray, 15%);
264
- border-color:gray;
265
- color:lighten(gray, 35%);
266
- }
307
+ }
308
+ &.prev, &.next {
309
+ a {
310
+ padding:0 4px;
311
+ background:$button-color;
312
+ color:#fff;
313
+ &:hover, &:focus {
314
+ background:$button-active;
267
315
  }
268
316
  }
269
- &:first-child {
270
- a, a:visited {
271
- @include rounded($radius);
272
- }
317
+ }
318
+ &.disabled {
319
+ a {
320
+ @include state(disabled,normal,desaturate($button-color,20%));
273
321
  }
274
- &:last-child {
275
- a, a:visited {
276
- @include rounded($radius);
277
- }
322
+ }
323
+ &:first-child {
324
+ a, a:visited {
325
+ @include rounded($radius);
326
+ }
327
+ }
328
+ &:last-child {
329
+ a, a:visited {
330
+ @include rounded($radius);
278
331
  }
279
332
  }
280
333
  }
281
334
  }
282
335
  }
283
336
  .no-js {
284
- nav {
337
+ .nav {
285
338
  ul {
286
339
  li.menu {
340
+ ul {
341
+ @extend %menu-open;
342
+ display:none;
343
+ }
287
344
  &:hover, &:focus {
288
345
  ul {
289
346
  display:block !important;