groundworkcss-rails 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/lib/groundworkcss/rails/version.rb +1 -1
  2. data/lib/groundworkcss/rails/version.rb~ +1 -1
  3. data/vendor/assets/javascripts/groundworkcss/components/disabled.js +13 -12
  4. data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.js +31 -28
  5. data/vendor/assets/javascripts/groundworkcss/components/forms.js +21 -20
  6. data/vendor/assets/javascripts/groundworkcss/components/menus.js +88 -78
  7. data/vendor/assets/javascripts/groundworkcss/components/modals.js +7 -4
  8. data/vendor/assets/javascripts/groundworkcss/components/pagination.js +87 -82
  9. data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.js +22 -18
  10. data/vendor/assets/javascripts/groundworkcss/components/responsiveText.js +38 -31
  11. data/vendor/assets/javascripts/groundworkcss/components/tabs.js +19 -17
  12. data/vendor/assets/javascripts/groundworkcss/components/tiles.js +24 -21
  13. data/vendor/assets/javascripts/groundworkcss/components/tooltips.js +7 -4
  14. data/vendor/assets/javascripts/groundworkcss/groundwork.all.js +974 -821
  15. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-modals.js +193 -0
  16. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-popover.js +208 -0
  17. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.js +64 -0
  18. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.js +46 -0
  19. data/vendor/assets/javascripts/groundworkcss/plugins/jquery-tooltip.js +137 -0
  20. data/vendor/assets/stylesheets/groundworkcss-scss/_settings.scss +149 -0
  21. data/vendor/assets/stylesheets/groundworkcss-scss/base/_all.scss +11 -0
  22. data/vendor/assets/stylesheets/groundworkcss-scss/{_animations.scss → base/_animations.scss} +7 -3
  23. data/vendor/assets/stylesheets/groundworkcss-scss/{_global.scss → base/_global.scss} +27 -10
  24. data/vendor/assets/stylesheets/groundworkcss-scss/{_grid.scss → base/_grid.scss} +5 -3
  25. data/vendor/assets/stylesheets/groundworkcss-scss/{_helpers.scss → base/_helpers.scss} +61 -18
  26. data/vendor/assets/stylesheets/groundworkcss-scss/{_reset.scss → base/_reset.scss} +36 -31
  27. data/vendor/assets/stylesheets/groundworkcss-scss/core/_all.scss +11 -0
  28. data/vendor/assets/stylesheets/groundworkcss-scss/{_variables.scss → core/_constants.scss} +7 -58
  29. data/vendor/assets/stylesheets/groundworkcss-scss/core/_defaults.scss +150 -0
  30. data/vendor/assets/stylesheets/groundworkcss-scss/{_mixins.scss → core/_mixins.scss} +6 -97
  31. data/vendor/assets/stylesheets/groundworkcss-scss/form/_all.scss +10 -0
  32. data/vendor/assets/stylesheets/groundworkcss-scss/{_forms.scss → form/_forms.scss} +96 -80
  33. data/vendor/assets/stylesheets/groundworkcss-scss/form/_tiles.scss +100 -0
  34. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork-ie.scss +10 -8
  35. data/vendor/assets/stylesheets/groundworkcss-scss/groundwork.scss +12 -32
  36. data/vendor/assets/stylesheets/groundworkcss-scss/{_popovers.scss → misc/_all.scss} +3 -4
  37. data/vendor/assets/stylesheets/groundworkcss-scss/{_social-icons.scss → misc/_social-icons.scss} +4 -0
  38. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_all.scss +11 -0
  39. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_buttons.scss +328 -0
  40. data/vendor/assets/stylesheets/groundworkcss-scss/{_navigation.scss → nav/_navigation.scss} +8 -5
  41. data/vendor/assets/stylesheets/groundworkcss-scss/nav/_tabs.scss +230 -0
  42. data/vendor/assets/stylesheets/groundworkcss-scss/no-svg.scss +9 -7
  43. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_all.scss +13 -0
  44. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_desktop.scss +26 -0
  45. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_helpers.scss +16 -0
  46. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_ipad.scss +28 -0
  47. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_mobile.scss +44 -0
  48. data/vendor/assets/stylesheets/groundworkcss-scss/responsive/_small-tablet.scss +196 -0
  49. data/vendor/assets/stylesheets/groundworkcss-scss/type/_all.scss +9 -0
  50. data/vendor/assets/stylesheets/groundworkcss-scss/{_font-awesome.scss → type/_font-awesome.scss} +10 -2
  51. data/vendor/assets/stylesheets/groundworkcss-scss/{_typography.scss → type/_typography.scss} +172 -60
  52. data/vendor/assets/stylesheets/groundworkcss-scss/type/_webfonts.scss +28 -0
  53. data/vendor/assets/stylesheets/groundworkcss-scss/{_ui-elements.scss → ui/_all.scss} +4 -0
  54. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_callouts.scss +117 -0
  55. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_messages.scss +111 -0
  56. data/vendor/assets/stylesheets/groundworkcss-scss/{_modals.scss → ui/_modals.scss} +2 -0
  57. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_popovers.scss +81 -0
  58. data/vendor/assets/stylesheets/groundworkcss-scss/ui/_tables.scss +142 -0
  59. data/vendor/assets/stylesheets/groundworkcss-scss/{_tooltips.scss → ui/_tooltips.scss} +35 -0
  60. metadata +56 -40
  61. data/vendor/assets/stylesheets/groundworkcss-scss/_buttons.scss +0 -231
  62. data/vendor/assets/stylesheets/groundworkcss-scss/_callouts.scss +0 -74
  63. data/vendor/assets/stylesheets/groundworkcss-scss/_cycle.scss +0 -20
  64. data/vendor/assets/stylesheets/groundworkcss-scss/_messages.scss +0 -69
  65. data/vendor/assets/stylesheets/groundworkcss-scss/_mobile-reset.scss +0 -11
  66. data/vendor/assets/stylesheets/groundworkcss-scss/_responsive.scss +0 -246
  67. data/vendor/assets/stylesheets/groundworkcss-scss/_tables.scss +0 -85
  68. data/vendor/assets/stylesheets/groundworkcss-scss/_tabs.scss +0 -172
  69. data/vendor/assets/stylesheets/groundworkcss-scss/_tiles.scss +0 -198
  70. data/vendor/assets/stylesheets/groundworkcss-scss/_webfonts.scss +0 -19
@@ -0,0 +1,230 @@
1
+ // ===================================
2
+ // GroundworkCSS Tabs
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ %tabs {
9
+ position:relative;
10
+ }
11
+ %tablist {
12
+ display:block;
13
+ width:100%;
14
+ margin:0;
15
+ padding:0;
16
+ list-style:none;
17
+ &:after {
18
+ content:'';
19
+ display:block;
20
+ clear:both;
21
+ }
22
+ }
23
+ %tab {
24
+ display:block;
25
+ float:left;
26
+ margin:0 2px;
27
+ &.pull-right { float:right; }
28
+ &.pull-left { float:left; }
29
+ &:first-child {
30
+ margin-left:0;
31
+ a, a:visited {
32
+ &:before {
33
+ display:none;
34
+ }
35
+ }
36
+ }
37
+ }
38
+ %tab-link {
39
+ display:block;
40
+ position:relative;
41
+ width:100%;
42
+ word-wrap:break-word;
43
+ padding:0.25em 1em;
44
+ background:$button-color;
45
+ border:1px solid $button-color;
46
+ color:$button-text;
47
+ font-weight:bold;
48
+ font-size:1em;
49
+ text-decoration:none;
50
+ text-align:center;
51
+ cursor:pointer;
52
+ line-height:1.5;
53
+ height:2em;
54
+ @include transition(background-color 0.25s ease-out);
55
+ @include rounded($radius $radius 0 0);
56
+ &:hover, &:focus {
57
+ background:$button-active;
58
+ border:1px solid $button-active;
59
+ color:$button-text;
60
+ text-decoration:none;
61
+ &:before {
62
+ box-shadow:2px 1px 0 $button-active;
63
+ }
64
+ &:after {
65
+ box-shadow:-2px 1px 0 $button-active;
66
+ }
67
+ }
68
+ &.active, &.active:hover, &.active:focus {
69
+ background:$button-active;
70
+ border:1px solid $button-active;
71
+ color:$button-text;
72
+ z-index:2;
73
+ &:before {
74
+ box-shadow:2px 1px 0 $button-active;
75
+ }
76
+ &:after {
77
+ box-shadow:-2px 1px 0 $button-active;
78
+ }
79
+ }
80
+ &.disabled {
81
+ @include state(disabled,normal,desaturate($button-color,20%));
82
+ border-bottom-color:lighten(desaturate($button-color,20%), 15%) !important;
83
+ &:before {
84
+ box-shadow:2px 1px 0 lighten(desaturate($button-color,20%), 15%);
85
+ }
86
+ &:after {
87
+ box-shadow:-2px 1px 0 lighten(desaturate($button-color,20%), 15%);
88
+ }
89
+ }
90
+ &:before, &:after {
91
+ position:absolute;
92
+ bottom:-1px;
93
+ width:6px;
94
+ height:6px;
95
+ content:'';
96
+ }
97
+ &:before {
98
+ left:-6px;
99
+ border-bottom-right-radius:6px;
100
+ border-width:0 1px 1px 0;
101
+ box-shadow:2px 1px 0 $button-color;
102
+ }
103
+ &:after {
104
+ right:-6px;
105
+ border-bottom-left-radius:6px;
106
+ border-width:0 0 1px 1px;
107
+ box-shadow:-2px 1px 0 $button-color;
108
+ }
109
+ }
110
+ %tabpanel {
111
+ display:none;
112
+ padding:$gutter * 2;
113
+ background:$background-color;
114
+ @include rounded(0 0 $radius $radius);
115
+ *:first-child {
116
+ margin-top:0;
117
+ }
118
+ *:last-child {
119
+ margin-bottom:0;
120
+ }
121
+ &.active {
122
+ display:block;
123
+ border:1px solid $button-active;
124
+ }
125
+ }
126
+ %vertical-tablist {
127
+ height:100%;
128
+ position:absolute;
129
+ width:20%;
130
+ background:$button-active;
131
+ border-bottom:1px solid $button-active;
132
+ @include rounded($radius 0 0 $radius);
133
+ }
134
+ %vertical-tabs {
135
+ float:none;
136
+ margin:0 -1px 0 0;
137
+ &:first-child {
138
+ a, a:visited {
139
+ @include rounded($radius 0 0 0);
140
+ }
141
+ }
142
+ }
143
+ %vertical-tab-link {
144
+ height:auto;
145
+ border-bottom:1px solid $button-active;
146
+ @include rounded(0);
147
+ &:before, &:after {
148
+ display:none !important;
149
+ }
150
+ &.active {
151
+ border-right:none;
152
+ color:$font-color;
153
+ background:$background-color;
154
+ &:hover, &:focus {
155
+ border-right:none;
156
+ color:$font-color;
157
+ background:$background-color;
158
+ }
159
+ }
160
+ }
161
+ %vertical-tabpanel {
162
+ position:relative;
163
+ left:20%;
164
+ width:80%;
165
+ @include rounded(0 $radius $radius 0);
166
+ }
167
+
168
+ @if $classes {
169
+ .tabs {
170
+ @extend %tabs;
171
+
172
+ @if $tags {
173
+ > ul, > ol {
174
+ @extend %tablist;
175
+ li {
176
+ @extend %tab;
177
+ a, a:visited {
178
+ @extend %tab-link;
179
+ }
180
+ }
181
+ }
182
+ > div {
183
+ @extend %tabpanel;
184
+ }
185
+ &.vertical {
186
+ @extend %vertical-tabs;
187
+ > ul, > ol {
188
+ @extend %vertical-tablist;
189
+ li {
190
+ @extend %vertical-tabs;
191
+ a, a:visited {
192
+ @extend %vertical-tab-link;
193
+ }
194
+ }
195
+ }
196
+ > div {
197
+ @extend %vertical-tabpanel;
198
+ }
199
+
200
+ @if $aria {
201
+ [role~=tablist] {
202
+ @extend %vertical-tablist;
203
+ [role~=tab] {
204
+ @extend %vertical-tabs;
205
+ }
206
+ }
207
+ [role~=tabpanel] {
208
+ @extend %vertical-tabpanel;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ @if $aria {
217
+ [role~=tabpanel] {
218
+ @extend %tabs;
219
+ [role~=tablist] {
220
+ @extend %tablist;
221
+ background:none;
222
+ [role~=tab] {
223
+ @extend %tab;
224
+ }
225
+ }
226
+ [role~=tabpanel] {
227
+ @extend %tabpanel;
228
+ }
229
+ }
230
+ }
@@ -1,12 +1,14 @@
1
- // =============================================
2
- // Fallbacks for non-SVG support by Gary Hepting
3
- // Last Updated:2013-2-15
4
- // =============================================
1
+ /* =============================================
2
+ * No SVG Fallbacks
3
+ * Last Updated:2013-2-15
4
+ * ===========================================*/
5
5
 
6
- // variables & mixins
7
- @import "variables";
8
- @import "mixins";
9
6
 
7
+ // custom settings
8
+ @import "settings"; // optional
9
+
10
+ // core
11
+ @import "core/all"; // required
10
12
 
11
13
 
12
14
 
@@ -0,0 +1,13 @@
1
+ // ===================================
2
+ // Responsive
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ // responsive adjustments
9
+ @import "helpers";
10
+ @import "desktop";
11
+ @import "ipad";
12
+ @import "small-tablet";
13
+ @import "mobile";
@@ -0,0 +1,26 @@
1
+ // ===================================
2
+ // Desktop
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ @mixin desktop {
9
+ @media only screen and (min-width:1025px) {
10
+ // conditional helpers
11
+ .hide-on-desktop { display:none !important; }
12
+ // spacer overrides
13
+ .zero-desktop { @include helper_reset(); }
14
+ .no-padding-desktop, .no-pad-desktop { @include helper_reset(padding, $spacers: padded pad-top pad-right pad-bottom pad-left); }
15
+ .no-margin-desktop, .no-gap-desktop { @include helper_reset(margin, $spacers: gapped gap-top gap-right gap-bottom gap-left); }
16
+ @content;
17
+ }
18
+ }
19
+
20
+
21
+ ///////////////////////
22
+ // desktop //
23
+ ///////////////////////
24
+ @include desktop {
25
+ // do not remove -- required for desktop helpers
26
+ }
@@ -0,0 +1,16 @@
1
+ ///////////////////////
2
+ // conditionals //
3
+ ///////////////////////
4
+
5
+ // desktop helpers
6
+ .desktop-only { display:block; }
7
+ .hide-on-desktop {}
8
+ // ipad helpers
9
+ .ipad-only { display:none; }
10
+ .hide-on-ipad {}
11
+ // small tablet helpers
12
+ .small-tablet-only { display:none; }
13
+ .hide-on-small-tablet {}
14
+ // mobile helpers
15
+ .mobile-only { display:none; }
16
+ .hide-on-mobile {}
@@ -0,0 +1,28 @@
1
+ // ===================================
2
+ // iPad
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ @mixin ipad {
9
+ @media only screen and (min-width:768px) and (max-width:1024px) {
10
+ // conditional helpers
11
+ .ipad-only { display:inline-block !important; }
12
+ .hide-on-ipad { display:none !important; }
13
+ .desktop-only { display:none !important; }
14
+ // spacer overrides
15
+ .zero-ipad { @include helper_reset(); }
16
+ .no-padding-ipad, .no-pad-ipad { @include helper_reset(padding, $spacers: padded pad-top pad-right pad-bottom pad-left); }
17
+ .no-margin-ipad, .no-gap-ipad { @include helper_reset(margin, $spacers: gapped gap-top gap-right gap-bottom gap-left); }
18
+ @content;
19
+ }
20
+ }
21
+
22
+
23
+ ///////////////////////
24
+ // ipad //
25
+ ///////////////////////
26
+ @include ipad {
27
+ // do not remove -- required for ipad helpers
28
+ }
@@ -0,0 +1,44 @@
1
+ // ===================================
2
+ // Mobile
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ @mixin mobile {
9
+ @media only screen and (max-width:480px) {
10
+ // responsive grid
11
+ @include grid-responsive(false);
12
+ // conditional helpers
13
+ .mobile-only { display:inline-block !important; }
14
+ .hide-on-mobile { display:none !important; }
15
+ .desktop-only { display:none !important; }
16
+ // spacer overrides
17
+ .zero-mobile { @include helper_reset(); }
18
+ .no-padding-mobile, .no-pad-mobile { @include helper_reset(padding, $spacers: padded pad-top pad-right pad-bottom pad-left); }
19
+ .no-margin-mobile, .no-gap-mobile { @include helper_reset(margin, $spacers: gapped gap-top gap-right gap-bottom gap-left); }
20
+ @content;
21
+ }
22
+ }
23
+
24
+
25
+ ///////////////////////
26
+ // mobile //
27
+ ///////////////////////
28
+ @include mobile {
29
+ .tabs:not(.mobile) {
30
+ > ul {
31
+ li {
32
+ float:none;
33
+ width:100%;
34
+ a {
35
+ @include rounded(0);
36
+ border-bottom:none;
37
+ }
38
+ &:first-child a {
39
+ @include rounded($radius $radius 0 0);
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,196 @@
1
+ // ===================================
2
+ // Small Tablet
3
+ // ===================================
4
+
5
+
6
+
7
+
8
+ @mixin small-tablet {
9
+ @media only screen and (max-width:767px) {
10
+ // responsive grid
11
+ @include grid-responsive();
12
+ // conditional helpers
13
+ .small-tablet-only { display:inline-block !important; }
14
+ .hide-on-small-tablet { display:none !important; }
15
+ .desktop-only { display:none !important; }
16
+ // spacer overrides
17
+ .zero-small-tablet { @include helper_reset(); }
18
+ .no-padding-small-tablet, .no-pad-small-tablet { @include helper_reset(padding, $spacers: padded pad-top pad-right pad-bottom pad-left); }
19
+ .no-margin-small-tablet, .no-gap-small-tablet { @include helper_reset(margin, $spacers: gapped gap-top gap-right gap-bottom gap-left); }
20
+ @content;
21
+ }
22
+ }
23
+
24
+
25
+ ///////////////////////
26
+ // small tablet //
27
+ ///////////////////////
28
+ @include small-tablet {
29
+ %nav-not-pagination {
30
+ width:100%;
31
+ ul, ul.row {
32
+ li {
33
+ display:block;
34
+ width:100% !important;
35
+ &:first-child {
36
+ > a, > a:visited {
37
+ @include rounded($radius $radius 0 0);
38
+ }
39
+ }
40
+ &:last-child {
41
+ > a, > a:visited {
42
+ @include rounded(0 0 $radius $radius);
43
+ }
44
+ }
45
+ &:only-child {
46
+ > a, > a:visited {
47
+ @include rounded($radius);
48
+ }
49
+ }
50
+ a, a:visited {
51
+ border:none;
52
+ border-top:1px solid $button-active !important;
53
+ }
54
+ ul {
55
+ position:static !important;
56
+ li {
57
+ a, a:visited {
58
+ @include rounded(0);
59
+ }
60
+ &:first-child,
61
+ &:last-child,
62
+ &:only-child {
63
+ a, a:visited {
64
+ @include rounded(0);
65
+ }
66
+ }
67
+ }
68
+ }
69
+ &:first-child {
70
+ a, a:visited {
71
+ @include rounded($radius $radius 0 0);
72
+ }
73
+ }
74
+ &:last-child {
75
+ a, a:visited {
76
+ @include rounded(0 0 $radius $radius);
77
+ }
78
+ ul {
79
+ li {
80
+ &:last-child {
81
+ a, a:visited {
82
+ @include rounded(0 0 $radius $radius);
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ &:only-child {
89
+ a, a:visited {
90
+ @include rounded($radius);
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ // hamburger menus
97
+ %nav-menu-not-pagination {
98
+ display:block;
99
+ float:none;
100
+ &:before {
101
+ content:attr(data-label);
102
+ float:left;
103
+ color:$button-text;
104
+ line-height:2.2;
105
+ }
106
+ background-color:$button-color;
107
+ padding:$gutter;
108
+ padding-bottom:0;
109
+ @include rounded($radius);
110
+ .menu-toggle {
111
+ display:inline-block !important;
112
+ float:right;
113
+ margin-bottom:$gutter;
114
+ }
115
+ > ul, > ul.row {
116
+ display:block !important;
117
+ overflow:hidden;
118
+ max-height:0;
119
+ width:auto;
120
+ margin:0 (-$gutter);
121
+ clear:both;
122
+ @include transition(all 0.2s ease);
123
+ li {
124
+ a, a:visited {
125
+ border:none;
126
+ border-top:1px solid $button-active;
127
+ &:first-child, &:last-child {
128
+ @include rounded(0);
129
+ }
130
+ &:hover, &:focus {
131
+ border:none;
132
+ border-top:1px solid $button-active;
133
+ }
134
+ }
135
+ &:last-child {
136
+ a, a:visited {
137
+ @include rounded(0 0 $radius $radius !important);
138
+ }
139
+ }
140
+ ul {
141
+ position:static;
142
+ }
143
+ }
144
+ }
145
+ &.on {
146
+ > ul {
147
+ max-height:1000px;
148
+ }
149
+ }
150
+ }
151
+ %normal-tabs {
152
+ > ul {
153
+ li {
154
+ float:none;
155
+ width:100%;
156
+ margin:0;
157
+ a {
158
+ @include rounded(0);
159
+ border-bottom:none;
160
+ &:before, &:after {
161
+ display:none !important;
162
+ }
163
+ }
164
+ &:first-child a {
165
+ @include rounded($radius $radius 0 0);
166
+ }
167
+ }
168
+ }
169
+ }
170
+
171
+ @if $tags {
172
+ nav:not(.pagination) {
173
+ @extend %nav-not-pagination;
174
+ }
175
+
176
+ @if $classes {
177
+ nav.inline {
178
+ @extend %nav-not-pagination;
179
+ }
180
+ nav.menu {
181
+ @extend %nav-menu-not-pagination;
182
+ }
183
+ }
184
+ }
185
+ @if $classes {
186
+ .nav, .nav.inline {
187
+ @extend %nav-not-pagination;
188
+ }
189
+ .nav.menu {
190
+ @extend %nav-menu-not-pagination;
191
+ }
192
+ .tabs:not(.small-tablet):not(.mobile):not(.vertical) {
193
+ @extend %normal-tabs;
194
+ }
195
+ }
196
+ }