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,187 @@
1
+
2
+
3
+ // Gumby Semantic Grid Mixin //
4
+
5
+
6
+ // Mixin for rows
7
+
8
+ @mixin row($nested: false) {
9
+ @if $nested == nested {
10
+ width: auto;
11
+ min-width: 0px;
12
+ max-width: none;
13
+ @extend %clearfix;
14
+ }
15
+ @else {
16
+ width: 100%;
17
+ max-width: $row-max-width;
18
+ min-width: $min-device-width;
19
+ margin: 0 auto;
20
+ @extend %clearfix;
21
+ }
22
+ > *:first-child {
23
+ margin-left: 0px;
24
+ }
25
+ @include respond(document-width) {
26
+ padding: 0 20px;
27
+ }
28
+ @include respond(all-phones) {
29
+ width: auto;
30
+ min-width: 0;
31
+ margin-left: 0;
32
+ margin-right: 0;
33
+ }
34
+ }
35
+
36
+ // Mixin for rows that are nested within columns
37
+
38
+ @mixin nestedRow() {
39
+ width: auto;
40
+ min-width: 0px;
41
+ max-width: none;
42
+ @extend %clearfix;
43
+ }
44
+
45
+
46
+ @mixin column($columns:$columns, $alignment: false, $behavior: false) {
47
+ @if $alignment == center {
48
+ float: none;
49
+ margin: 0 auto !important;
50
+ width: columns($columns);
51
+ @extend %columnconfig;
52
+ @include respond(all-phones) {
53
+ float: left;
54
+ margin-left: 0;
55
+ width: 100%;
56
+ }
57
+ }
58
+ @else if $behavior == collapse {
59
+ width: columns($columns);
60
+ @extend %columnconfig;
61
+ @extend %collapse;
62
+ @include respond(all-phones) {
63
+ float: left;
64
+ width: 100%;
65
+ }
66
+ }
67
+ @else {
68
+ width: columns($columns);
69
+ @extend %columnconfig;
70
+ @include respond(all-phones) {
71
+ float: left;
72
+ margin-left: 0;
73
+ width: 100%;
74
+ }
75
+ }
76
+ }
77
+
78
+ @mixin hybrid($columns:$columns, $alignment: false, $behavior: false) {
79
+ @if $alignment == center {
80
+ float: none;
81
+ margin: 0 auto !important;
82
+ width: columns($columns, true);
83
+ @extend %columnconfig;
84
+ @include respond(all-phones) {
85
+ float: left;
86
+ margin-left: 0;
87
+ width: 100%;
88
+ }
89
+ }
90
+ @else if $behavior == collapse {
91
+ width: columns($columns, true);
92
+ @extend %columnconfig;
93
+ @extend %collapse;
94
+ @include respond(all-phones) {
95
+ float: left;
96
+ width: 100%;
97
+ }
98
+ }
99
+ @else {
100
+ width: columns($columns, true);
101
+ @extend %columnconfig;
102
+ @include respond(all-phones) {
103
+ float: left;
104
+ margin-left: 0;
105
+ width: 100%;
106
+ }
107
+ }
108
+ }
109
+
110
+ @mixin push($columns, $hybrid-grid: false) {
111
+ @if $hybrid-grid == hybrid {
112
+ margin-left: push_x($columns, false, true);
113
+ &:first-child {
114
+ margin-left: push_x($columns, true, true);
115
+ }
116
+ @include respond(all-phones) {
117
+ margin-left: 0;
118
+ &:first-child {
119
+ margin-left: 0;
120
+ }
121
+ }
122
+ }
123
+ @else {
124
+ margin-left: push_x($columns);
125
+ &:first-child {
126
+ margin-left: push_x($columns, true);
127
+ }
128
+ @include respond(all-phones) {
129
+ margin-left: 0;
130
+ &:first-child {
131
+ margin-left: 0;
132
+ }
133
+ }
134
+ }
135
+ }
136
+
137
+ @mixin pull($direction:false) {
138
+ @if $direction == left {
139
+ @extend %pull-left;
140
+ }
141
+ @elseif $direction == none {
142
+ @extend %pull-none;
143
+ }
144
+ @else {
145
+ @extend %pull-right;
146
+ }
147
+ }
148
+
149
+
150
+ // Placeholders for the Semantic Grid
151
+
152
+ %container {
153
+ padding: 0px $gutter-in-px + px;
154
+ @include respond(all-phones) {
155
+ min-width: 0;
156
+ margin-left: 0;
157
+ margin-right: 0;
158
+ }
159
+ }
160
+
161
+ // Clearfix placeholder
162
+ %clearfix { @include clearfix(); }
163
+
164
+ // Clearfix placeholder for mobile
165
+ %mobilefix { @include mobilefix(); }
166
+
167
+ // Row placeholders
168
+ %row { @include row(); }
169
+ %nestedrow { @include row(); }
170
+
171
+ // Column Configuration placeholder
172
+ %columnconfig {
173
+ margin-left: $gutter;
174
+ float: $default-float;
175
+ min-height: 1px;
176
+ position: relative;
177
+ @include box-sizing(border-box);
178
+ }
179
+
180
+ %pull-right { float: right; }
181
+ %pull-left { float: left; }
182
+ %pull-none { float: none; }
183
+
184
+ // Collapse Gutters
185
+ %collapse {
186
+ margin-left: 0px;
187
+ }
@@ -0,0 +1,5 @@
1
+
2
+ // Strip out units to do math functions.
3
+ @function strip-units($number) {
4
+ @return $number / ($number * 0 + 1);
5
+ }
@@ -0,0 +1,15 @@
1
+ // Typography mixins
2
+
3
+ // Fonts in rems with px fallback
4
+
5
+ @mixin font-size($size, $is-important: false) {
6
+ $size: if(unitless($size), $size, $size / 1px);
7
+
8
+ @if $is-important {
9
+ font-size: $size + px !important;
10
+ font-size: ($size / strip-units($base-font-size)) + rem !important;
11
+ } @else {
12
+ font-size: $size + px;
13
+ font-size: ($size / strip-units($base-font-size)) + rem;
14
+ }
15
+ }
@@ -0,0 +1,17 @@
1
+ // Visibility Mixins
2
+
3
+ // Mixin for hidden
4
+
5
+ @mixin hidden($media) {
6
+ @include respond($media) {
7
+ display: none !important;
8
+ }
9
+ }
10
+
11
+ // Mixin for visible
12
+
13
+ @mixin visible($media) {
14
+ @include respond($media) {
15
+ display: inherit !important;
16
+ }
17
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Gumby Framework
3
+ * ---------------
4
+ *
5
+ * Follow @gumbycss on twitter and spread the love.
6
+ * We worked super hard on making this awesome and released it to the web.
7
+ * All we ask is you leave this intact. #gumbyisawesome
8
+ *
9
+ * Gumby Framework
10
+ * http://gumbyframework.com
11
+ *
12
+ * Built with love by your friends @digitalsurgeons
13
+ * http://www.digitalsurgeons.com
14
+ *
15
+ * Free to use under the MIT license.
16
+ * http://www.opensource.org/licenses/mit-license.php
17
+ */
18
+
19
+ @charset "UTF-8";
20
+
21
+ @import "modular-scale";
22
+
23
+ @import "var/settings";
24
+ @import "var/lists";
25
+
26
+ @import "compass";
27
+ @import "compass/reset";
28
+
29
+ @import "functions/all";
30
+
31
+ @import "base";
32
+ @import "fonts";
33
+ @import "typography";
34
+ @import "grid";
35
+ @import "ui/all";
36
+
37
+ @import "custom";
@@ -0,0 +1,10 @@
1
+ @import "navbar";
2
+ @import "buttons";
3
+ @import "icons";
4
+ @import "forms";
5
+ @import "labels";
6
+ @import "tabs";
7
+ @import "images";
8
+ @import "video";
9
+ @import "toggles";
10
+ @import "tables";
@@ -0,0 +1,151 @@
1
+ /* Buttons */
2
+
3
+ // Buttons
4
+ @import "../functions/buttons";
5
+
6
+ .btn, .skiplink {
7
+ display: inline-block;
8
+ width: auto;
9
+ background: $default-color;
10
+ -webkit-appearance: none;
11
+ font-family: $font-family;
12
+ font-weight: $button-font-weight;
13
+ padding: 0 !important;
14
+ text-align: center;
15
+ .pretty & { @extend .pretty.btn; }
16
+ .metro & { @extend .metro.btn; }
17
+
18
+ > a, input, button {
19
+ display: block;
20
+ padding: 0 $default-button-padding;
21
+ color: $white;
22
+ height: 100%;
23
+ }
24
+
25
+ input, button {
26
+ background: none;
27
+ border: none;
28
+ width: 100%;
29
+ font-size: 100%;
30
+ cursor: pointer;
31
+ font-weight: $type-font-weight;
32
+ @include appearance(none);
33
+ }
34
+
35
+ &.xlarge {
36
+ @include button-size(xlarge);
37
+ }
38
+ &.large {
39
+ @include button-size(large);
40
+ }
41
+ &.medium {
42
+ @include button-size(medium);
43
+ a {
44
+ padding: 0 ms(1);
45
+ }
46
+ }
47
+ &.small {
48
+ @include button-size(small);
49
+ a {
50
+ padding: 0 ms(-1);
51
+ }
52
+ }
53
+
54
+ &.oval {
55
+ @include border-radius(1000px);
56
+ }
57
+
58
+ &.pill-left {
59
+ @include border-radius(500px 0 0 500px);
60
+ }
61
+
62
+ &.pill-right {
63
+ @include border-radius(0 500px 500px 0);
64
+ }
65
+
66
+ @each $shade in $ui-coloring {
67
+ &.#{nth($shade, 1)} {
68
+ background: nth($shade, 2);
69
+ border: 1px solid nth($shade, 2);
70
+ &:hover {
71
+ background: lighten(nth($shade, 2), 10%);
72
+ }
73
+ &:active {
74
+ background: darken(nth($shade, 2), 10%);
75
+ }
76
+ @if nth($shade, 1) == default {
77
+ color: darken(nth($shade, 2), 61.5%);
78
+ border: 1px solid nth($shade, 2);
79
+ &:hover {
80
+ border: 1px solid darken(nth($shade, 2), 5%);
81
+ }
82
+ a, input, button {
83
+ color: darken(nth($shade, 2), 61.5%);
84
+ }
85
+ }
86
+ @if nth($shade, 1) == warning {
87
+ color: darken(nth($shade, 2), 40%);
88
+ a, input, button {
89
+ color: darken(nth($shade, 2), 40%);
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ @each $style in $styling {
96
+ &.#{nth($style, 1)} {
97
+ @include border-radius(nth($style, 2));
98
+ &:hover {
99
+ @extend .btn.#{nth($style, 1)}
100
+ }
101
+ &:active {
102
+ @extend .btn.#{nth($style, 1)}
103
+ }
104
+ @if nth($style, 1) == metro {
105
+ &.rounded {
106
+ @include border-radius($button-radius);
107
+ }
108
+ }
109
+ @if nth($style, 1) == pretty {
110
+ &.squared {
111
+ @include border-radius($metro-radius);
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ &.pretty {
118
+ @each $grade in $ui-coloring {
119
+ &.#{nth($grade, 1)} {
120
+ @include background-image(linear-gradient(lighten(nth($grade, 2), 20%), saturate(nth($grade, 2), 5%)));
121
+ @include box-shadow(inset 0 0 3px lighten(nth($grade, 2), 45%));
122
+ border: 1px solid darken(nth($grade, 2), 15%);
123
+ &:hover {
124
+ @include background-image(linear-gradient(lighten(nth($grade, 3), 15%), saturate(nth($grade, 3), 5%)));
125
+ @include box-shadow(inset 0 0 3px lighten(nth($grade, 3), 40%));
126
+ border: 1px solid darken(nth($grade, 3), 15%);
127
+ }
128
+ &:active {
129
+ @include background-image(linear-gradient(saturate(nth($grade, 2), 5%), lighten(nth($grade, 2), 20%)));
130
+ @include box-shadow(inset 0 0 3px lighten(nth($grade, 2), 50%));
131
+ }
132
+ @if nth($grade, 1) == default {
133
+ a, input, button {
134
+ text-shadow: 0 1px 1px lighten(nth($grade, 2), 20%);
135
+ }
136
+ }
137
+ @elseif nth($grade, 1) == warning {
138
+ color: darken(nth($grade, 2), 40%);
139
+ a, input, button {
140
+ text-shadow: 0 1px 1px lighten(nth($grade, 2), 20%);
141
+ }
142
+ }
143
+ @else {
144
+ a, input, button {
145
+ text-shadow: 0 1px 1px darken(nth($grade, 2), 20%);
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }