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
@@ -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
|
-
//
|
82
|
+
// helpers
|
51
83
|
// ====================
|
52
84
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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(
|
104
|
+
background-image:url("#{$root_path}#{$images_path}#{$file}"); // fallback
|
90
105
|
background-image:inline-image($file); // data URI
|
91
|
-
*background-image:url(
|
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:
|
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
|
-
|
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 $
|
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
|
-
|
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
|
-
|
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';
|
53
|
-
display:
|
54
|
-
width:
|
71
|
+
content:'\f0d7';
|
72
|
+
display:inline-block;
|
73
|
+
width:1.1em;
|
55
74
|
margin-left:0.25em;
|
56
|
-
font-family:
|
57
|
-
font-weight:
|
58
|
-
font-style:
|
75
|
+
font-family:FontAwesome;
|
76
|
+
font-weight:normal;
|
77
|
+
font-style:normal;
|
59
78
|
font-size:1.1em;
|
60
|
-
text-decoration:
|
61
|
-
-webkit-font-smoothing:
|
62
|
-
line-height:
|
63
|
-
vertical-align:
|
64
|
-
background-image:
|
65
|
-
background-position:
|
66
|
-
background-repeat:
|
67
|
-
margin-top:
|
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
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
116
|
+
@extend %menu-closed;
|
93
117
|
position:absolute;
|
94
118
|
left:100%;
|
95
|
-
top
|
119
|
+
top:0;
|
96
120
|
width:auto;
|
97
121
|
z-index:101;
|
98
122
|
li {
|
99
123
|
a, a:visited {
|
100
|
-
@include rounded(0
|
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
|
-
|
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
|
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
|
-
|
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
|
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
|
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
|
-
|
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
|
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
|
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
|
-
//
|
207
|
-
&.
|
208
|
-
|
209
|
-
|
210
|
-
display:
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
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
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
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
|
-
&.
|
234
|
-
|
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
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
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
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
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
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
317
|
+
}
|
318
|
+
&.disabled {
|
319
|
+
a {
|
320
|
+
@include state(disabled,normal,desaturate($button-color,20%));
|
273
321
|
}
|
274
|
-
|
275
|
-
|
276
|
-
|
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;
|