groundworkcss 2.0.4 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -1
- data/app/assets/javascripts/groundworkcss/components/checklists.coffee +1 -1
- data/app/assets/javascripts/groundworkcss/components/equalizeColumns.coffee +2 -4
- data/app/assets/javascripts/groundworkcss/components/forms.coffee +16 -23
- data/app/assets/javascripts/groundworkcss/components/menus.coffee +9 -4
- data/app/assets/javascripts/groundworkcss/components/navigation.coffee +21 -11
- data/app/assets/javascripts/groundworkcss/components/tabs.coffee +17 -8
- data/app/assets/javascripts/groundworkcss/plugins/jquery-placeholderText.coffee +15 -5
- data/app/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.coffee +4 -3
- data/app/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.coffee +8 -4
- data/app/assets/javascripts/groundworkcss/plugins/jquery-truncateLines.coffee +21 -32
- data/app/assets/stylesheets/groundworkcss/_settings.scss +9 -3
- data/app/assets/stylesheets/groundworkcss/anim/_all-animations.scss +1 -0
- data/app/assets/stylesheets/groundworkcss/anim/_slide.scss +96 -0
- data/app/assets/stylesheets/groundworkcss/base/_helpers.scss +79 -81
- data/app/assets/stylesheets/groundworkcss/base/_reset.scss +4 -2
- data/app/assets/stylesheets/groundworkcss/core/_defaults.scss +2 -0
- data/app/assets/stylesheets/groundworkcss/core/_mixins-core.scss +21 -28
- data/app/assets/stylesheets/groundworkcss/core/_palette.scss +5 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-anim.scss +35 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-core.scss +16 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-ie.scss +0 -12
- data/app/assets/stylesheets/groundworkcss/groundwork-responsive.scss +28 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-type.scss +30 -0
- data/app/assets/stylesheets/groundworkcss/groundwork-ui.scss +34 -0
- data/app/assets/stylesheets/groundworkcss/groundwork.scss +1 -0
- data/app/assets/stylesheets/groundworkcss/responsive/_desktop.scss +76 -60
- data/app/assets/stylesheets/groundworkcss/responsive/_mobile.scss +76 -60
- data/app/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +76 -60
- data/app/assets/stylesheets/groundworkcss/type/_typography.scss +31 -16
- data/app/assets/stylesheets/groundworkcss/ui/_forms.scss +5 -12
- data/app/assets/stylesheets/groundworkcss/ui/_nav.scss +107 -15
- data/app/views/groundworkdocs/navigation.html.erb +245 -55
- data/app/views/groundworkdocs/typography.html.erb +2 -2
- data/app/views/layouts/groundworkdocs.html.erb +151 -113
- data/groundworkcss-0.4.4.gem +0 -0
- data/groundworkcss-2.0.4.gem +0 -0
- data/groundworkcss-2.0.7.gem +0 -0
- data/lib/groundworkcss/generators/docs_generator.rb +16 -16
- data/lib/groundworkcss/version.rb +1 -1
- metadata +12 -2
@@ -0,0 +1,96 @@
|
|
1
|
+
$slide-animations: true !default;
|
2
|
+
|
3
|
+
|
4
|
+
@if $slide-animations {
|
5
|
+
|
6
|
+
@keyframes slideInDown {
|
7
|
+
0% {
|
8
|
+
opacity: 0;
|
9
|
+
transform: translateY(-2000px);
|
10
|
+
}
|
11
|
+
|
12
|
+
100% {
|
13
|
+
transform: translateY(0);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.slideInDown {
|
18
|
+
animation-name: slideInDown;
|
19
|
+
}
|
20
|
+
|
21
|
+
@keyframes slideInLeft {
|
22
|
+
0% {
|
23
|
+
opacity: 0;
|
24
|
+
transform: translateX(-2000px);
|
25
|
+
}
|
26
|
+
|
27
|
+
100% {
|
28
|
+
transform: translateX(0);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.slideInLeft {
|
33
|
+
animation-name: slideInLeft;
|
34
|
+
}
|
35
|
+
|
36
|
+
@keyframes slideInRight {
|
37
|
+
0% {
|
38
|
+
opacity: 0;
|
39
|
+
transform: translateX(2000px);
|
40
|
+
}
|
41
|
+
|
42
|
+
100% {
|
43
|
+
transform: translateX(0);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.slideInRight {
|
48
|
+
animation-name: slideInRight;
|
49
|
+
}
|
50
|
+
|
51
|
+
@keyframes slideOutLeft {
|
52
|
+
0% {
|
53
|
+
transform: translateX(0);
|
54
|
+
}
|
55
|
+
|
56
|
+
100% {
|
57
|
+
opacity: 0;
|
58
|
+
transform: translateX(-2000px);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.slideOutLeft {
|
63
|
+
animation-name: slideOutLeft;
|
64
|
+
}
|
65
|
+
|
66
|
+
@keyframes slideOutRight {
|
67
|
+
0% {
|
68
|
+
transform: translateX(0);
|
69
|
+
}
|
70
|
+
|
71
|
+
100% {
|
72
|
+
opacity: 0;
|
73
|
+
transform: translateX(2000px);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.slideOutRight {
|
78
|
+
animation-name: slideOutRight;
|
79
|
+
}
|
80
|
+
|
81
|
+
@keyframes slideOutUp {
|
82
|
+
0% {
|
83
|
+
transform: translateY(0);
|
84
|
+
}
|
85
|
+
|
86
|
+
100% {
|
87
|
+
opacity: 0;
|
88
|
+
transform: translateY(-2000px);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.slideOutUp {
|
93
|
+
animation-name: slideOutUp;
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
@@ -37,6 +37,7 @@ $rotation-classes: true !default;
|
|
37
37
|
$rotation-helpers: "rotate-90" "rotate-90-ctr" "rotate-180" "rotate-180-ctr" "rotate-270" "rotate-270-ctr" "rotate-360" "rotate-360-ctr" !default;
|
38
38
|
|
39
39
|
$transition-classes: true !default;
|
40
|
+
$gutter: 10px !default;
|
40
41
|
|
41
42
|
|
42
43
|
///////////////////////
|
@@ -147,83 +148,80 @@ $transition-classes: true !default;
|
|
147
148
|
&:after { content: " "; display: block; height: 0; font-size: 0; clear: both; visibility: hidden; }
|
148
149
|
}
|
149
150
|
|
150
|
-
%padded
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
%pad-top
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
%pad-right
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
%pad-bottom
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
%pad-left
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
%gapped
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
}
|
181
|
-
%gap-top
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
}
|
186
|
-
%gap-right
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
}
|
191
|
-
%gap-bottom
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
}
|
196
|
-
%gap-left
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
}
|
201
|
-
|
202
|
-
%offset
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
}
|
207
|
-
%offset-top
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
}
|
212
|
-
%offset-right
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
}
|
217
|
-
%offset-bottom
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
}
|
222
|
-
%offset-left
|
223
|
-
|
224
|
-
&%double { @include _offset-left(2); }
|
225
|
-
&%triple { @include _offset-left(3); }
|
226
|
-
}
|
151
|
+
%padded { @include _padded; }
|
152
|
+
%half-padded { @include _padded(0.5); }
|
153
|
+
%double-padded { @include _padded(2); }
|
154
|
+
%triple-padded { @include _padded(3); }
|
155
|
+
|
156
|
+
%pad-top { @include _pad-top; }
|
157
|
+
%half-pad-top { @include _pad-top(0.5); }
|
158
|
+
%double-pad-top { @include _pad-top(2); }
|
159
|
+
%triple-pad-top { @include _pad-top(3); }
|
160
|
+
|
161
|
+
%pad-right { @include _pad-right; }
|
162
|
+
%half-pad-right { @include _pad-right(0.5); }
|
163
|
+
%double-pad-right { @include _pad-right(2); }
|
164
|
+
%triple-pad-right { @include _pad-right(3); }
|
165
|
+
|
166
|
+
%pad-bottom { @include _pad-bottom; }
|
167
|
+
%half-pad-bottom { @include _pad-bottom(0.5); }
|
168
|
+
%double-pad-bottom { @include _pad-bottom(2); }
|
169
|
+
%triple-pad-bottom { @include _pad-bottom(3); }
|
170
|
+
|
171
|
+
%pad-left { @include _pad-left; }
|
172
|
+
%half-pad-left { @include _pad-left(0.5); }
|
173
|
+
%double-pad-left { @include _pad-left(2); }
|
174
|
+
%triple-pad-left { @include _pad-left(3); }
|
175
|
+
|
176
|
+
%gapped { @include _gapped; }
|
177
|
+
%half-gapped { @include _gapped(0.5); }
|
178
|
+
%double-gapped { @include _gapped(2); }
|
179
|
+
%triple-gapped { @include _gapped(3); }
|
180
|
+
|
181
|
+
%gap-top { @include _gap-top; }
|
182
|
+
%half-gap-top { @include _gap-top(0.5); }
|
183
|
+
%double-gap-top { @include _gap-top(2); }
|
184
|
+
%triple-gap-top { @include _gap-top(3); }
|
185
|
+
|
186
|
+
%gap-right { @include _gap-right; }
|
187
|
+
%half-gap-right { @include _gap-right(0.5); }
|
188
|
+
%double-gap-right { @include _gap-right(2); }
|
189
|
+
%triple-gap-right { @include _gap-right(3); }
|
190
|
+
|
191
|
+
%gap-bottom { @include _gap-bottom; }
|
192
|
+
%half-gap-bottom { @include _gap-bottom(0.5); }
|
193
|
+
%double-gap-bottom { @include _gap-bottom(2); }
|
194
|
+
%triple-gap-bottom { @include _gap-bottom(3); }
|
195
|
+
|
196
|
+
%gap-left { @include _gap-left; }
|
197
|
+
%half-gap-left { @include _gap-left(0.5); }
|
198
|
+
%double-gap-left { @include _gap-left(2); }
|
199
|
+
%triple-gap-left { @include _gap-left(3); }
|
200
|
+
|
201
|
+
%offset { @include _offset; }
|
202
|
+
%half-offset { @include _offset(0.5); }
|
203
|
+
%double-offset { @include _offset(2); }
|
204
|
+
%triple-offset { @include _offset(3); }
|
205
|
+
|
206
|
+
%offset-top { @include _offset-top; }
|
207
|
+
%half-offset-top { @include _offset-top(0.5); }
|
208
|
+
%double-offset-top { @include _offset-top(2); }
|
209
|
+
%triple-offset-top { @include _offset-top(3); }
|
210
|
+
|
211
|
+
%offset-right { @include _offset-right; }
|
212
|
+
%half-offset-right { @include _offset-right(0.5); }
|
213
|
+
%double-offset-right { @include _offset-right(2); }
|
214
|
+
%triple-offset-right { @include _offset-right(3); }
|
215
|
+
|
216
|
+
%offset-bottom { @include _offset-bottom; }
|
217
|
+
%half-offset-bottom { @include _offset-bottom(0.5); }
|
218
|
+
%double-offset-bottom { @include _offset-bottom(2); }
|
219
|
+
%triple-offset-bottom { @include _offset-bottom(3); }
|
220
|
+
|
221
|
+
%offset-left { @include _offset-left; }
|
222
|
+
%half-offset-left { @include _offset-left(0.5); }
|
223
|
+
%double-offset-left { @include _offset-left(2); }
|
224
|
+
%triple-offset-left { @include _offset-left(3); }
|
227
225
|
|
228
226
|
%fixed { @include _fixed; }
|
229
227
|
%fixed-top { @include _fixed(top); }
|
@@ -354,10 +352,10 @@ $transition-classes: true !default;
|
|
354
352
|
@for $i from 1 through length($spacer-helpers) {
|
355
353
|
.#{nth($spacer-helpers, $i)} {
|
356
354
|
@extend %#{nth($spacer-helpers, $i)};
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
}
|
355
|
+
}
|
356
|
+
@if $spacer-mod-classes {
|
357
|
+
@for $j from 1 through length($spacer-modifiers) {
|
358
|
+
.#{nth($spacer-modifiers, $j)}-#{nth($spacer-helpers, $i)} { @extend %#{nth($spacer-modifiers, $j)}-#{nth($spacer-helpers, $i)}; }
|
361
359
|
}
|
362
360
|
}
|
363
361
|
}
|
@@ -9,7 +9,7 @@ $reset-elements: "html" "body"
|
|
9
9
|
"h1" "h2" "h3" "h4" "h5" "h6" "p"
|
10
10
|
"ol" "ul" "li" "dl" "dt" "dd"
|
11
11
|
"em" "small" "big" "strong" "b" "u" "i" "sub" "sup" "del" "strike"
|
12
|
-
"q" "
|
12
|
+
"q" "blockquote" "cite"
|
13
13
|
"time" "address"
|
14
14
|
"code" "pre"
|
15
15
|
"a" "img" "center" "hr"
|
@@ -20,7 +20,9 @@ $reset-elements: "html" "body"
|
|
20
20
|
|
21
21
|
%everything {
|
22
22
|
@include box-sizing(border-box);
|
23
|
-
|
23
|
+
@if $oldIE {
|
24
|
+
*behavior: url($boxsizing_path); // IE 6-7 -- Thank Schepp for the polyfill for legacy IE browsers: https://github.com/Schepp/box-sizing-polyfill
|
25
|
+
}
|
24
26
|
//
|
25
27
|
// =======================================================
|
26
28
|
// the better box model
|
@@ -15,4 +15,6 @@ $fonts_path: "fonts/" !default; // path to fonts (relative from $roo
|
|
15
15
|
$boxsizing_path: "/js/libs/boxsizing.htc" !default; // path to box sizing polyfill (change to absolute path from HTML document root)
|
16
16
|
$PIE_path: "/js/libs/PIE.htc" !default; // path to IE CSS3 polyfill (change to absolute path from HTML document root)
|
17
17
|
|
18
|
+
$oldIE: false !default;
|
19
|
+
|
18
20
|
@import "palette";
|
@@ -4,6 +4,7 @@
|
|
4
4
|
// =============================================
|
5
5
|
|
6
6
|
$font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
7
|
+
$oldIE: false !default;
|
7
8
|
|
8
9
|
|
9
10
|
///////////////////////
|
@@ -87,10 +88,10 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
87
88
|
// works with compass 0.12
|
88
89
|
@include background-image(linear-gradient($old, $startColor, $endColor));
|
89
90
|
background-image: linear-gradient($correct, $startColor, $endColor); // override with correct css3 syntax
|
90
|
-
|
91
|
-
//
|
92
|
-
|
93
|
-
|
91
|
+
@if $oldIE {
|
92
|
+
-pie-background: linear-gradient($correct, $startColor, $endColor); // IE 6-7 -- Thank Jason for these polyfills for legacy IE browsers: http://css3pie.com/
|
93
|
+
*behavior: url($PIE_path); // IE 6-7 -- Thank Jason for these polyfills for legacy IE browsers: http://css3pie.com/
|
94
|
+
}
|
94
95
|
}
|
95
96
|
|
96
97
|
// filter drop shadow
|
@@ -134,16 +135,6 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
134
135
|
cursor: not-allowed;
|
135
136
|
text-decoration: none;
|
136
137
|
outline: none;
|
137
|
-
// &:hover, &:focus, &:visited {
|
138
|
-
// color: lighten($color, 35%);
|
139
|
-
// @if $mode != "textOnly" {
|
140
|
-
// background: lighten($color, 15%);
|
141
|
-
// border-color: $color;
|
142
|
-
// }
|
143
|
-
// cursor: not-allowed;
|
144
|
-
// text-decoration: none;
|
145
|
-
// outline: none;
|
146
|
-
// }
|
147
138
|
}
|
148
139
|
}
|
149
140
|
|
@@ -164,7 +155,7 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
164
155
|
|
165
156
|
// responsive navigation
|
166
157
|
@mixin hamburger-mode($filters: "") {
|
167
|
-
.nav#{$filters} {
|
158
|
+
.nav:not(.nocollapse)#{$filters} {
|
168
159
|
&:before {
|
169
160
|
float: left;
|
170
161
|
display: inline-block;
|
@@ -186,6 +177,11 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
186
177
|
}
|
187
178
|
> ul {
|
188
179
|
display: none;
|
180
|
+
> li {
|
181
|
+
> a, > button {
|
182
|
+
border-top-width: $border-thickness;
|
183
|
+
}
|
184
|
+
}
|
189
185
|
}
|
190
186
|
> ul[aria-expanded="true"] {
|
191
187
|
display: block;
|
@@ -208,10 +204,13 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
208
204
|
}
|
209
205
|
&[role="menu"] {
|
210
206
|
ul {
|
211
|
-
border:
|
212
|
-
|
213
|
-
|
214
|
-
|
207
|
+
border: 0;
|
208
|
+
> li {
|
209
|
+
&:first-child {
|
210
|
+
> a, > button {
|
211
|
+
border-top-width: $border-thickness;
|
212
|
+
}
|
213
|
+
}
|
215
214
|
}
|
216
215
|
}
|
217
216
|
> a, > button {
|
@@ -233,24 +232,16 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
233
232
|
display: block;
|
234
233
|
width: 100%;
|
235
234
|
text-align: left;
|
236
|
-
border-bottom: $border-thickness $border-style $nav-border-color;
|
237
235
|
}
|
238
236
|
@for $i from 1 through length($modifier-name) {
|
239
237
|
&.#{nth($modifier-name, $i)} {
|
240
238
|
li ul a, li[role="menu"] ul a, a,
|
241
239
|
li ul button, li[role="menu"] ul button, button {
|
242
|
-
border-top: none;
|
243
|
-
border-bottom: $border-thickness $border-style darken(nth($modifier-code, $i), 5%);
|
244
240
|
@include rounded(0);
|
245
241
|
}
|
246
242
|
}
|
247
243
|
}
|
248
244
|
}
|
249
|
-
> ul li:last-child {
|
250
|
-
a, button {
|
251
|
-
border-bottom: none;
|
252
|
-
}
|
253
|
-
}
|
254
245
|
}
|
255
246
|
|
256
247
|
|
@@ -264,7 +255,9 @@ $font-family: Helvetica, Arial, Geneva, sans-serif !default;
|
|
264
255
|
// no output if $default-radius is set to a zero value
|
265
256
|
} @else {
|
266
257
|
@include border-radius($radius);
|
267
|
-
|
258
|
+
@if $oldIE {
|
259
|
+
*behavior: url($PIE_path); // IE 6-7 -- Thank Jason for these polyfills for legacy IE browsers: http://css3pie.com/
|
260
|
+
}
|
268
261
|
}
|
269
262
|
}
|
270
263
|
|
@@ -39,6 +39,11 @@ $nav-border-color: lighten(gray, 27.5%) !default;
|
|
39
39
|
$nav-active: lighten(gray, 27.5%) !default;
|
40
40
|
$nav-active-text: darken(gray, 12%) !default;
|
41
41
|
|
42
|
+
// quotes
|
43
|
+
$quote-color: $font-color !default;
|
44
|
+
$quote-background: $border-color !default;
|
45
|
+
$quote-font: "source-sans-pro" !default;
|
46
|
+
|
42
47
|
// info
|
43
48
|
$info-color: #3a87ad !default;
|
44
49
|
$info-text: #ffffff !default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// ============================================
|
2
|
+
// GroundworkCSS Anim by Gary Hepting
|
3
|
+
// Last Updated:2013-9-27
|
4
|
+
// ============================================
|
5
|
+
|
6
|
+
|
7
|
+
//---------- CUSTOM SETTINGS: ----------//
|
8
|
+
@import "settings"; // customizable settings
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
//-------- REQUIRED COMPONENTS: --------//
|
13
|
+
@import "core/all-core"; // constants, defaults, mixins, breakpoints, color palette
|
14
|
+
@import "base/helpers";
|
15
|
+
|
16
|
+
// Animations
|
17
|
+
@import "anim/all-animations";
|
18
|
+
// individual animation modules
|
19
|
+
// @import "anim/bounce";
|
20
|
+
// @import "anim/fade";
|
21
|
+
// @import "anim/flash";
|
22
|
+
// @import "anim/flip";
|
23
|
+
// @import "anim/hinge";
|
24
|
+
// @import "anim/lightspeed";
|
25
|
+
// @import "anim/pulse";
|
26
|
+
// @import "anim/roll";
|
27
|
+
// @import "anim/rotate";
|
28
|
+
// @import "anim/shake";
|
29
|
+
// @import "anim/spin";
|
30
|
+
// @import "anim/swing";
|
31
|
+
// @import "anim/tada";
|
32
|
+
// @import "anim/wiggle";
|
33
|
+
// @import "anim/wobble";
|
34
|
+
// @import "anim/slide";
|
35
|
+
|