gumby2-rails 0.0.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.
Files changed (72) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +29 -0
  5. data/Rakefile +1 -0
  6. data/gumby2-rails.gemspec +19 -0
  7. data/lib/gumby2-rails/version.rb +5 -0
  8. data/lib/gumby2-rails.rb +9 -0
  9. data/vendor/assets/.DS_Store +0 -0
  10. data/vendor/assets/fonts/icons/entypo.eot +0 -0
  11. data/vendor/assets/fonts/icons/entypo.ttf +0 -0
  12. data/vendor/assets/fonts/icons/entypo.woff +0 -0
  13. data/vendor/assets/js/libs/gumby.init.js +27 -0
  14. data/vendor/assets/js/libs/gumby.js +150 -0
  15. data/vendor/assets/js/libs/gumby.min.js +1 -0
  16. data/vendor/assets/js/libs/jquery-1.10.1.min.js +6 -0
  17. data/vendor/assets/js/libs/jquery-2.0.2.min.js +6 -0
  18. data/vendor/assets/js/libs/jquery.mobile.custom.min.js +3 -0
  19. data/vendor/assets/js/libs/modernizr-2.6.2.min.js +4 -0
  20. data/vendor/assets/js/libs/ui/gumby.checkbox.js +90 -0
  21. data/vendor/assets/js/libs/ui/gumby.fittext.js +107 -0
  22. data/vendor/assets/js/libs/ui/gumby.fixed.js +206 -0
  23. data/vendor/assets/js/libs/ui/gumby.navbar.js +115 -0
  24. data/vendor/assets/js/libs/ui/gumby.radiobtn.js +79 -0
  25. data/vendor/assets/js/libs/ui/gumby.retina.js +74 -0
  26. data/vendor/assets/js/libs/ui/gumby.skiplink.js +145 -0
  27. data/vendor/assets/js/libs/ui/gumby.tabs.js +71 -0
  28. data/vendor/assets/js/libs/ui/gumby.toggleswitch.js +203 -0
  29. data/vendor/assets/js/libs/ui/jquery.validation.js +138 -0
  30. data/vendor/assets/js/main.js +25 -0
  31. data/vendor/assets/js/plugins.js +8 -0
  32. data/vendor/assets/stylesheets/.DS_Store +0 -0
  33. data/vendor/assets/stylesheets/gumby.css +1876 -0
  34. data/vendor/assets/stylesheets/sass/_base.scss +71 -0
  35. data/vendor/assets/stylesheets/sass/_custom.scss +1 -0
  36. data/vendor/assets/stylesheets/sass/_fonts.scss +28 -0
  37. data/vendor/assets/stylesheets/sass/_grid.scss +273 -0
  38. data/vendor/assets/stylesheets/sass/_typography.scss +274 -0
  39. data/vendor/assets/stylesheets/sass/extensions/modular-scale/lib/modular-scale.rb +129 -0
  40. data/vendor/assets/stylesheets/sass/extensions/modular-scale/stylesheets/_modular-scale.scss +310 -0
  41. data/vendor/assets/stylesheets/sass/extensions/sassy-math/lib/sassy-math.rb +159 -0
  42. data/vendor/assets/stylesheets/sass/extensions/sassy-math/stylesheets/_math.scss +310 -0
  43. data/vendor/assets/stylesheets/sass/functions/_all.scss +15 -0
  44. data/vendor/assets/stylesheets/sass/functions/_breakpoints.scss +11 -0
  45. data/vendor/assets/stylesheets/sass/functions/_buttons.scss +44 -0
  46. data/vendor/assets/stylesheets/sass/functions/_clearfix.scss +25 -0
  47. data/vendor/assets/stylesheets/sass/functions/_forms.scss +18 -0
  48. data/vendor/assets/stylesheets/sass/functions/_grid-calc.scss +59 -0
  49. data/vendor/assets/stylesheets/sass/functions/_height-calc.scss +6 -0
  50. data/vendor/assets/stylesheets/sass/functions/_line-and-height.scss +7 -0
  51. data/vendor/assets/stylesheets/sass/functions/_responsivity.scss +34 -0
  52. data/vendor/assets/stylesheets/sass/functions/_semantic-grid.scss +187 -0
  53. data/vendor/assets/stylesheets/sass/functions/_strip-units.scss +5 -0
  54. data/vendor/assets/stylesheets/sass/functions/_typography.scss +15 -0
  55. data/vendor/assets/stylesheets/sass/functions/_visibility.scss +17 -0
  56. data/vendor/assets/stylesheets/sass/gumby.scss +37 -0
  57. data/vendor/assets/stylesheets/sass/ui/_all.scss +10 -0
  58. data/vendor/assets/stylesheets/sass/ui/_buttons.scss +151 -0
  59. data/vendor/assets/stylesheets/sass/ui/_forms.scss +379 -0
  60. data/vendor/assets/stylesheets/sass/ui/_icons.scss +37 -0
  61. data/vendor/assets/stylesheets/sass/ui/_images.scss +21 -0
  62. data/vendor/assets/stylesheets/sass/ui/_labels.scss +86 -0
  63. data/vendor/assets/stylesheets/sass/ui/_navbar.scss +417 -0
  64. data/vendor/assets/stylesheets/sass/ui/_tables.scss +87 -0
  65. data/vendor/assets/stylesheets/sass/ui/_tabs.scss +109 -0
  66. data/vendor/assets/stylesheets/sass/ui/_toggles.scss +69 -0
  67. data/vendor/assets/stylesheets/sass/ui/_video.scss +22 -0
  68. data/vendor/assets/stylesheets/sass/var/_lists.scss +20 -0
  69. data/vendor/assets/stylesheets/sass/var/_settings.scss +149 -0
  70. data/vendor/assets/stylesheets/sass/var/icons/_entypo-icon-list.scss +286 -0
  71. data/vendor/assets/stylesheets/sass/var/icons/_entypo.scss +294 -0
  72. metadata +116 -0
@@ -0,0 +1,71 @@
1
+ @import "compass/typography/vertical_rhythm";
2
+
3
+ @include establish-baseline;
4
+
5
+ html * {
6
+ @include box-sizing(border-box);
7
+ }
8
+
9
+ body {
10
+ background: $global-bg-color;
11
+ font-family: $font-family;
12
+ font-weight: $body-font-weight;
13
+ color: $body-font-color;
14
+ position: relative;
15
+ -webkit-font-smoothing: $font-smoothing;
16
+ @include respond(all-phones) {
17
+ -webkit-text-size-adjust: none;
18
+ -ms-text-size-adjust: none;
19
+ width: 100%;
20
+ min-width: 0;
21
+ }
22
+ }
23
+
24
+ html, body {
25
+ height: 100%;
26
+ }
27
+
28
+ .ie9 {
29
+ font-family: $font-family;
30
+ * {
31
+ font-family: $font-family;
32
+ }
33
+ }
34
+
35
+ .hide {
36
+ display: none;
37
+ }
38
+
39
+ .hide.active, .show {
40
+ display: block;
41
+ }
42
+
43
+ .fixed {
44
+ position: fixed;
45
+ &.pinned {
46
+ position: absolute;
47
+ }
48
+ @include respond(portrait-tablets) {
49
+ position: relative !important;
50
+ top: auto !important;
51
+ left: auto !important;
52
+ }
53
+ }
54
+
55
+ .unfixed {
56
+ position: relative !important;
57
+ top: auto !important;
58
+ left: auto !important;
59
+ }
60
+
61
+ .text-center {
62
+ text-align: center;
63
+ }
64
+
65
+ .text-left {
66
+ text-align: left;
67
+ }
68
+
69
+ .text-right {
70
+ text-align: right;
71
+ }
@@ -0,0 +1 @@
1
+ // Your custom SCSS should be written here...
@@ -0,0 +1,28 @@
1
+ /* Fonts */
2
+
3
+ // Import Google Web Fonts
4
+ @import url(//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);
5
+
6
+
7
+ // Set local icon font
8
+ @font-face {
9
+ font-family: '#{$icons}';
10
+ font-style: normal;
11
+ font-weight: 400;
12
+ src: url(../fonts/icons/#{$icons}.eot);
13
+ src: url('../fonts/icons/#{$icons}.eot?#iefix') format('ie9-skip-eot'),
14
+ url('../fonts/icons/#{$icons}.woff') format('woff'),
15
+ url('../fonts/icons/#{$icons}.ttf') format('truetype');
16
+ }
17
+
18
+ // To include your own, local copies of fonts, use the following template
19
+ //
20
+ //@font-face {
21
+ // font-family: '#{$some-font-variable}';
22
+ // font-style: normal;
23
+ // font-weight: 400;
24
+ // src: url(../fonts/icons/#{$some-font-variable}.eot);
25
+ // src: url('../fonts/icons/#{$some-font-variable}.eot?#iefix') format('ie9-skip-eot'),
26
+ // url('../fonts/icons/#{$some-font-variable}.woff') format('woff'),
27
+ // url('../fonts/icons/#{$some-font-variable}.ttf') format('truetype');
28
+ //}
@@ -0,0 +1,273 @@
1
+
2
+
3
+
4
+ /*=================================================
5
+
6
+ +++ LE GRID +++
7
+ A Responsive Grid -- Gumby defaults to a standard 960 grid,
8
+ but you can change it to whatever you'd like.
9
+
10
+ ==================================================*/
11
+
12
+ // We're removing the container class in favor
13
+ // of adding padding to rows at the $device-width
14
+ // breakpoint.
15
+
16
+ /*.container {
17
+ padding: 0px $gutter-in-px;
18
+ }*/
19
+
20
+ .row {
21
+ width: 100%;
22
+ max-width: $row-max-width;
23
+ min-width: $min-device-width;
24
+ margin: 0 auto;
25
+ @include respond(document-width) {
26
+ padding: 0 $gutter-in-px;
27
+ }
28
+ .row {
29
+ min-width: 0px;
30
+ @include respond(document-width) {
31
+ padding: 0;
32
+ }
33
+ }
34
+ }
35
+
36
+ /* To fix the grid into a different size, set max-width to your desired width */
37
+
38
+ .column, .columns {
39
+ margin-left: $gutter;
40
+ float: $default-float;
41
+ min-height: 1px;
42
+ @include box-sizing(border-box);
43
+ }
44
+
45
+ .column:first-child, .columns:first-child, .alpha {
46
+ margin-left: 0px;
47
+ }
48
+
49
+ .column.omega, .columns.omega {
50
+ float: $switch-float;
51
+ }
52
+
53
+ // Generate the Grid
54
+
55
+ /* Column Classes */
56
+
57
+ // Generate Column Classes
58
+ .row {
59
+ @for $i from 1 through $cols{
60
+ @if $i == 1 {
61
+ .one.column {
62
+ width: columns($i);
63
+ }
64
+ }
65
+ .#{number-as-word($i)}.columns {
66
+ width: columns($i);
67
+ }
68
+ }
69
+ }
70
+
71
+ /* Push Classes */
72
+
73
+ // Generate Push Classes
74
+ .row {
75
+ @for $i from 1 through $cols - 1 {
76
+ .push_#{number-as-word($i)} {
77
+ margin-left: push_x($i);
78
+ &:first-child {
79
+ margin-left: push_x($i, true);
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ /* Centered Classes */
86
+
87
+ // Generate Centered Classes
88
+ .row {
89
+ @for $i from 1 through $cols - 1 {
90
+ .#{number-as-word($i)}.centered {
91
+ margin-left: centered($i);
92
+ }
93
+ }
94
+ }
95
+
96
+ /* Hybrid Grid Columns */
97
+
98
+ // Generate Hybrid Grid Column Classes
99
+ .#{number-as-word($hybrid)}.colgrid .row {
100
+ @for $i from 1 through $hybrid{
101
+ @if $i == 1 {
102
+ .one.column {
103
+ width: columns($i, true);
104
+ }
105
+ }
106
+ .#{number-as-word($i)}.columns{
107
+ width: columns($i, true);
108
+ }
109
+ }
110
+ }
111
+
112
+ /* Hybrid Push Classes */
113
+
114
+ // Generate Hybrid Push Classes
115
+ .#{number-as-word($hybrid)}.colgrid .row {
116
+ @for $i from 1 through $hybrid - 1{
117
+ .push_#{number-as-word($i)} {
118
+ margin-left: push_x($i, false, true);
119
+ &:first-child {
120
+ margin-left: push_x($i, true, true);
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ /* Hybrid Centered Classes */
127
+
128
+ // Generate Centered Classes
129
+ .#{number-as-word($hybrid)}.colgrid .row {
130
+ @for $i from 1 through $hybrid - 1 {
131
+ .#{number-as-word($i)}.centered {
132
+ margin-left: centered($i, true);
133
+ }
134
+ }
135
+ }
136
+
137
+ .pull_right { float: right; }
138
+
139
+ .pull_left { float: left; }
140
+
141
+ img, object, embed {
142
+ max-width: 100%;
143
+ height: auto;
144
+ }
145
+
146
+ img {
147
+ -ms-interpolation-mode: bicubic;
148
+ }
149
+
150
+ #map_canvas img, .map_canvas img {
151
+ max-width: none !important;
152
+ }
153
+
154
+ /* Tile Grid */
155
+
156
+ .tiles {
157
+ display: block;
158
+ overflow: hidden;
159
+ > li {
160
+ display: block;
161
+ height: auto;
162
+ float: left;
163
+ padding-bottom:0;
164
+ }
165
+ &.two_up {
166
+ margin-left: -4%;
167
+ > li {
168
+ margin-left: 4%;
169
+ width: 46%;
170
+ }
171
+ }
172
+ &.three_up, &.four_up {
173
+ margin-left: -2%;
174
+ }
175
+ &.three_up > li {
176
+ margin-left: 2%;
177
+ width: 31.3%;
178
+ }
179
+ &.four_up > li {
180
+ margin-left: 2%;
181
+ width: 23%;
182
+ }
183
+ &.five_up {
184
+ margin-left: -1.5%;
185
+ > li {
186
+ margin-left: 1.5%;
187
+ width: 18.5%;
188
+ }
189
+ }
190
+ }
191
+
192
+ /* Nicolas Gallagher's micro clearfix */
193
+
194
+ .clearfix {
195
+ @include clearfix();
196
+ }
197
+
198
+ .row {
199
+ @include clearfix();
200
+ }
201
+
202
+
203
+ // vertically align stuff
204
+
205
+ .valign {
206
+ display: table;
207
+ width: 100%;
208
+ > div {
209
+ display: table-cell;
210
+ vertical-align: middle;
211
+ }​
212
+ > article {
213
+ display: table-cell;
214
+ vertical-align: middle;
215
+ }
216
+ }
217
+
218
+ /* Mobile */
219
+
220
+ @include respond(all-phones) {
221
+ body {
222
+ -webkit-text-size-adjust: none;
223
+ -ms-text-size-adjust: none;
224
+ width: 100%;
225
+ min-width: 0;
226
+ }
227
+ .container {
228
+ min-width: 0;
229
+ margin-left: 0;
230
+ margin-right: 0;
231
+ }
232
+ .row {
233
+ width: 100%;
234
+ min-width: 0;
235
+ margin-left: 0;
236
+ margin-right: 0;
237
+ .row {
238
+ .column, .columns {
239
+ padding: 0;
240
+ }
241
+ }
242
+ .centered {
243
+ margin-left: 0 !important;
244
+ }
245
+ }
246
+ .column, .columns {
247
+ width: auto !important;
248
+ float: none;
249
+ margin-left: 0;
250
+ margin-right: 0;
251
+ }
252
+ .column:last-child, .columns:last-child {
253
+ margin-right: 0;
254
+ float: none;
255
+ }
256
+
257
+ [class*="column"] {
258
+ + [class*="column"]:last-child {
259
+ float: none;
260
+ }
261
+ &:before {
262
+ display: table;
263
+ }
264
+ &:after {
265
+ display: table;
266
+ clear: both;
267
+ }
268
+ }
269
+ [class^="push_"],
270
+ [class*="push_"] {
271
+ margin-left: 0 !important;
272
+ }
273
+ }
@@ -0,0 +1,274 @@
1
+
2
+ h1,h2,h3,h4,h5,h6 {
3
+ font-family: $font-family;
4
+ font-weight: $header-font-weight;
5
+ color: $header-font-color;
6
+ text-rendering: optimizeLegibility;
7
+ @include padding-leader($rhythm-spacing);
8
+ @include adjust-leading-to($rhythm-height);
9
+ @include padding-trailer($rhythm-spacing);
10
+ a {
11
+ color: $header-link-color;
12
+ }
13
+ }
14
+
15
+ @include respond(all-phones) {
16
+
17
+ h1,h2,h3,h4,h5,h6 { word-wrap: break-word;}
18
+
19
+ }
20
+
21
+ h1 {
22
+ @include font-size($xxxlarge);
23
+ &.xlarge {
24
+ @include font-size($reallybig);
25
+ }
26
+ &.xxlarge {
27
+ @include font-size($tremendous);
28
+ }
29
+ &.absurd {
30
+ @include font-size($absurd);
31
+ }
32
+ }
33
+ h2 { @include font-size($xlarge); }
34
+ h3 { @include font-size($larger);}
35
+ h4 { @include font-size($large);}
36
+ h5 { @include font-size($med);}
37
+ h6 { @include font-size($norm);}
38
+
39
+ @include respond(all-phones) {
40
+
41
+ h1 { @include font-size($xlarge);}
42
+ h2 { @include font-size($larger + 6);}
43
+
44
+ }
45
+
46
+ .subhead {
47
+ color: #777;
48
+ font-weight: normal;
49
+ margin-bottom: 20px;
50
+ }
51
+
52
+ /*=====================================================
53
+
54
+ Links & Paragraph styles
55
+
56
+ ======================================================*/
57
+
58
+ p {
59
+ font-family: $font-family;
60
+ font-weight: $body-font-weight;
61
+ @include font-size($base-font-size);
62
+ margin-bottom: $base-line-height / 2;
63
+ @include adjust-leading-to(1);
64
+ &.lead {
65
+ @include font-size(ms(0) * 1.25);
66
+ margin-bottom: ms(1);
67
+ }
68
+ @include respond(portrait-tablets) {
69
+ @include font-size($base-font-size * 1.1);
70
+ @include adjust-leading-to(1);
71
+ }
72
+ }
73
+
74
+ a {
75
+ color: $body-link-color;
76
+ text-decoration: none;
77
+ outline: 0;
78
+ line-height: inherit;
79
+ &:hover {
80
+ color: $body-link-hover-color;
81
+ }
82
+ }
83
+
84
+ /*=====================================================
85
+
86
+ Lists
87
+
88
+ ======================================================*/
89
+
90
+ ul, ol {
91
+ @include margin-trailer($rhythm-spacing);
92
+ }
93
+
94
+ ul {
95
+ list-style: none outside;
96
+ }
97
+
98
+ ol {
99
+ list-style: decimal;
100
+ margin-left: 30px;
101
+ }
102
+
103
+ ul {
104
+ &.square, &.circle, &.disc {
105
+ margin-left: 25px;
106
+ }
107
+ &.square {
108
+ list-style: square outside;
109
+ }
110
+ &.circle {
111
+ list-style: circle outside;
112
+ }
113
+ &.disc {
114
+ list-style: disc outside;
115
+ }
116
+ ul {
117
+ margin: 4px 0 5px 25px;
118
+ }
119
+ }
120
+
121
+ ol ol {
122
+ margin: 4px 0 5px 30px;
123
+ }
124
+
125
+ li {
126
+ @include padding-trailer($rhythm-spacing);
127
+ }
128
+
129
+ ul.large li {
130
+ line-height: 21px;
131
+ }
132
+
133
+ dl dt {
134
+ font-weight: bold;
135
+ @include font-size($norm);
136
+ }
137
+
138
+ @include respond(portrait-tablets) {
139
+
140
+ ul, ol, dl, p { text-align: left;}
141
+
142
+ }
143
+
144
+ /* Mobile */
145
+
146
+ em {
147
+ font-style: italic;
148
+ line-height: inherit;
149
+ }
150
+
151
+ strong {
152
+ font-weight: $font-weight-bold;
153
+ line-height: inherit;
154
+ }
155
+
156
+ small {
157
+ font-size: 56.4%;
158
+ line-height: inherit;
159
+ }
160
+
161
+ h1 small, h2 small, h3 small, h4 small, h5 small {
162
+ color: #777;
163
+ }
164
+
165
+ /* Blockquotes */
166
+
167
+ blockquote {
168
+ line-height: 20px;
169
+ color: #777;
170
+ p {
171
+ line-height: 20px;
172
+ color: #777;
173
+ }
174
+ margin: 0 0 18px;
175
+ padding: 9px 20px 0 19px;
176
+ border-left: 5px solid $horizontal-rule-color;
177
+ cite {
178
+ display: block;
179
+ font-size: 12px;
180
+ font-size: 1.2rem;
181
+ color: $body-font-color;
182
+ &:before {
183
+ content: "\2014 \0020";
184
+ }
185
+ a {
186
+ color: $body-font-color;
187
+ &:visited {
188
+ color: $body-font-color;
189
+ }
190
+ }
191
+ }
192
+ }
193
+
194
+ hr {
195
+ border: 1px solid $horizontal-rule-color;
196
+ clear: both;
197
+ margin: 16px 0 18px;
198
+ height: 0;
199
+ }
200
+
201
+ abbr, acronym {
202
+ text-transform: uppercase;
203
+ font-size: 90%;
204
+ color: #222;
205
+ border-bottom: 1px solid $horizontal-rule-color;
206
+ cursor: help;
207
+ }
208
+
209
+ abbr {
210
+ text-transform: none;
211
+ }
212
+
213
+ /**
214
+ * Print styles.
215
+ *
216
+ * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
217
+ * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
218
+ */
219
+
220
+ @media print {
221
+ * {
222
+ background: transparent !important;
223
+ color: black !important;
224
+ text-shadow: none !important;
225
+ filter: none !important;
226
+ -ms-filter: none !important;
227
+ }
228
+ /* Black prints faster: sanbeiji.com/archives/953 */
229
+ p a {
230
+ color: $body-font-color !important;
231
+ text-decoration: underline;
232
+ &:visited {
233
+ color: $body-font-color !important;
234
+ text-decoration: underline;
235
+ }
236
+ &[href]:after {
237
+ content: " (" attr(href) ")";
238
+ }
239
+ }
240
+ abbr[title]:after {
241
+ content: " (" attr(title) ")";
242
+ }
243
+ .ir a:after {
244
+ content: "";
245
+ }
246
+ a {
247
+ &[href^="javascript:"]:after, &[href^="#"]:after {
248
+ content: "";
249
+ }
250
+ }
251
+ /* Don't show links for images, or javascript/internal links */
252
+ pre, blockquote {
253
+ border: 1px solid #999;
254
+ page-break-inside: avoid;
255
+ }
256
+ thead {
257
+ display: table-header-group;
258
+ }
259
+ /* css-discuss.incutio.com/wiki/Printing_Tables */
260
+ tr, img {
261
+ page-break-inside: avoid;
262
+ }
263
+ @page {
264
+ margin: 0.5cm;
265
+ }
266
+
267
+ p, h2, h3 {
268
+ orphans: 3;
269
+ widows: 3;
270
+ }
271
+ h2, h3 {
272
+ page-break-after: avoid;
273
+ }
274
+ }