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.
- data/lib/groundworkcss/rails/version.rb +1 -1
- data/lib/groundworkcss/rails/version.rb~ +1 -1
- data/vendor/assets/images/groundworkcss/orbit/bullets.jpg +0 -0
- data/vendor/assets/images/groundworkcss/orbit/left-arrow.png +0 -0
- data/vendor/assets/images/groundworkcss/orbit/mask-black.png +0 -0
- data/vendor/assets/images/groundworkcss/orbit/pause-black.png +0 -0
- data/vendor/assets/images/groundworkcss/orbit/right-arrow.png +0 -0
- data/vendor/assets/images/groundworkcss/orbit/rotator-black.png +0 -0
- data/vendor/assets/images/groundworkcss/orbit/timer-black.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply.png +0 -0
- data/vendor/assets/javascripts/groundwork-hook.js +1 -0
- data/vendor/assets/javascripts/groundwork-hook.js~ +2 -0
- data/vendor/assets/javascripts/groundworkcss/components/disabled.js +13 -0
- data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.js +34 -0
- data/vendor/assets/javascripts/groundworkcss/components/forms.js +29 -0
- data/vendor/assets/javascripts/groundworkcss/components/menus.js +85 -0
- data/vendor/assets/javascripts/groundworkcss/components/modals.js +8 -0
- data/vendor/assets/javascripts/groundworkcss/components/pagination.js +98 -0
- data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.js +24 -0
- data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +21 -0
- data/vendor/assets/javascripts/groundworkcss/components/tabs.js +20 -0
- data/vendor/assets/javascripts/groundworkcss/components/tiles.js +25 -0
- data/vendor/assets/javascripts/groundworkcss/components/tooltips.js +8 -0
- data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +670 -525
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.modals.js +11 -8
- data/vendor/assets/stylesheets/groundworkcss-scss/_animations.scss +25 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +15 -13
- data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +3 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_font-awesome.scss +5 -5
- data/vendor/assets/stylesheets/groundworkcss-scss/_forms.scss +3 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_grid.scss +1 -1
- data/vendor/assets/stylesheets/groundworkcss-scss/_helpers.scss +171 -73
- data/vendor/assets/stylesheets/groundworkcss-scss/_mixins.scss +94 -32
- data/vendor/assets/stylesheets/groundworkcss-scss/_modals.scss +2 -2
- data/vendor/assets/stylesheets/groundworkcss-scss/_navigation.scss +173 -116
- data/vendor/assets/stylesheets/groundworkcss-scss/_reset.scss +1 -1
- data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +112 -88
- data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +57 -66
- data/vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss +198 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/_typography.scss +3 -3
- data/vendor/assets/stylesheets/groundworkcss-scss/_variables.scss +13 -3
- data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +1 -0
- data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +6 -1
- 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
|
-
$('
|
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 $('
|
82
|
+
return $('body').addClass("modal-active");
|
83
83
|
}, 0);
|
84
84
|
setTimeout(function() {
|
85
|
-
return $('
|
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
|
-
$('
|
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
|
-
|
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
|
-
|
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
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
* Work: Lead Product Designer @ http://kyruus.com
|
22
22
|
*/
|
23
23
|
|
24
|
-
$fontAwesomePath: "
|
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}
|
33
|
-
src: url('#{$fontAwesomePath}
|
34
|
-
url('#{$fontAwesomePath}
|
35
|
-
url('#{$fontAwesomePath}
|
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
|
}
|
@@ -1,87 +1,181 @@
|
|
1
|
-
//
|
2
|
-
// layout helpers
|
3
|
-
//
|
1
|
+
// ================================
|
2
|
+
// layout helpers: mixins
|
3
|
+
// ================================
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
@mixin _clear {
|
6
|
+
clear: both;
|
7
|
+
&:after {content:''; display:block; clear:both;}
|
7
8
|
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
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-
|
25
|
-
&%double {
|
26
|
-
&%triple {
|
85
|
+
%pad-top { @include _pad-top;
|
86
|
+
&%double { @include _pad-top(2); }
|
87
|
+
&%triple { @include _pad-top(3); }
|
27
88
|
}
|
28
|
-
%
|
29
|
-
&%double {
|
30
|
-
&%triple {
|
89
|
+
%pad-right { @include _pad-right;
|
90
|
+
&%double { @include _pad-right(2); }
|
91
|
+
&%triple { @include _pad-right(3); }
|
31
92
|
}
|
32
|
-
%
|
33
|
-
&%double {
|
34
|
-
&%triple {
|
93
|
+
%pad-bottom { @include _pad-bottom;
|
94
|
+
&%double { @include _pad-bottom(2); }
|
95
|
+
&%triple { @include _pad-bottom(3); }
|
35
96
|
}
|
36
|
-
%
|
37
|
-
&%double {
|
38
|
-
&%triple {
|
97
|
+
%pad-left { @include _pad-left;
|
98
|
+
&%double { @include _pad-left(2); }
|
99
|
+
&%triple { @include _pad-left(3); }
|
39
100
|
}
|
40
|
-
%
|
41
|
-
&%double {
|
42
|
-
&%triple {
|
101
|
+
%gapped { @include _gapped;
|
102
|
+
&%double { @include _gapped(2); }
|
103
|
+
&%triple { @include _gapped(3); }
|
43
104
|
}
|
44
|
-
%gap-
|
45
|
-
&%double {
|
46
|
-
&%triple {
|
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 {
|
49
|
-
&%top { top
|
50
|
-
&%right { right
|
51
|
-
&%bottom { bottom
|
52
|
-
&%left { left
|
53
|
-
&%middle {
|
54
|
-
&%center {
|
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
|
-
|
57
|
-
%
|
58
|
-
%
|
59
|
-
%
|
60
|
-
%pull-
|
61
|
-
%
|
62
|
-
%
|
63
|
-
%border-
|
64
|
-
%border-
|
65
|
-
%border-
|
66
|
-
%
|
67
|
-
%align-
|
68
|
-
%align-
|
69
|
-
%align-
|
70
|
-
%align-
|
71
|
-
%
|
72
|
-
%
|
73
|
-
%
|
74
|
-
%
|
75
|
-
%
|
76
|
-
%
|
77
|
-
%
|
78
|
-
%rotate-90
|
79
|
-
%rotate-180
|
80
|
-
%rotate-270
|
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
|
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)} {
|
95
|
-
|
96
|
-
|
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; }
|