middleman-gumby 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +43 -0
  6. data/Rakefile +1 -0
  7. data/lib/middleman/gumby.rb +17 -0
  8. data/lib/middleman/gumby/version.rb +5 -0
  9. data/middleman-gumby.gemspec +25 -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/javascripts/gumby/libs/gumby.init.js +47 -0
  14. data/vendor/assets/javascripts/gumby/libs/gumby.js +258 -0
  15. data/vendor/assets/javascripts/gumby/libs/gumby.min.js +1 -0
  16. data/vendor/assets/javascripts/gumby/libs/jquery-1.10.1.min.js +6 -0
  17. data/vendor/assets/javascripts/gumby/libs/jquery-1.10.1.min.map +1 -0
  18. data/vendor/assets/javascripts/gumby/libs/jquery-2.0.2.min.js +6 -0
  19. data/vendor/assets/javascripts/gumby/libs/jquery-2.0.2.min.map +1 -0
  20. data/vendor/assets/javascripts/gumby/libs/jquery.mobile.custom.min.js +3 -0
  21. data/vendor/assets/javascripts/gumby/libs/modernizr-2.6.2.min.js +4 -0
  22. data/vendor/assets/javascripts/gumby/libs/ui/gumby.checkbox.js +101 -0
  23. data/vendor/assets/javascripts/gumby/libs/ui/gumby.fixed.js +240 -0
  24. data/vendor/assets/javascripts/gumby/libs/ui/gumby.navbar.js +111 -0
  25. data/vendor/assets/javascripts/gumby/libs/ui/gumby.radiobtn.js +90 -0
  26. data/vendor/assets/javascripts/gumby/libs/ui/gumby.retina.js +81 -0
  27. data/vendor/assets/javascripts/gumby/libs/ui/gumby.skiplink.js +157 -0
  28. data/vendor/assets/javascripts/gumby/libs/ui/gumby.tabs.js +80 -0
  29. data/vendor/assets/javascripts/gumby/libs/ui/gumby.toggleswitch.js +264 -0
  30. data/vendor/assets/javascripts/gumby/libs/ui/jquery.validation.js +142 -0
  31. data/vendor/assets/javascripts/gumby/main.js +23 -0
  32. data/vendor/assets/javascripts/gumby/plugins.js +4 -0
  33. data/vendor/assets/javascripts/gumby/production.js +3 -0
  34. data/vendor/assets/sass/_base.scss +49 -0
  35. data/vendor/assets/sass/_custom.scss +1 -0
  36. data/vendor/assets/sass/_fonts.scss +28 -0
  37. data/vendor/assets/sass/_grid.scss +339 -0
  38. data/vendor/assets/sass/_shame.scss +36 -0
  39. data/vendor/assets/sass/_typography.scss +272 -0
  40. data/vendor/assets/sass/extensions/modular-scale/lib/modular-scale.rb +128 -0
  41. data/vendor/assets/sass/extensions/modular-scale/stylesheets/_modular-scale.scss +310 -0
  42. data/vendor/assets/sass/extensions/sassy-math/lib/sassy-math.rb +159 -0
  43. data/vendor/assets/sass/extensions/sassy-math/stylesheets/_math.scss +310 -0
  44. data/vendor/assets/sass/functions/_all.scss +25 -0
  45. data/vendor/assets/sass/functions/_breakpoints.scss +11 -0
  46. data/vendor/assets/sass/functions/_button-size.scss +44 -0
  47. data/vendor/assets/sass/functions/_clearfix.scss +25 -0
  48. data/vendor/assets/sass/functions/_em.scss +11 -0
  49. data/vendor/assets/sass/functions/_even.scss +10 -0
  50. data/vendor/assets/sass/functions/_fade.scss +20 -0
  51. data/vendor/assets/sass/functions/_fancytiles.scss +29 -0
  52. data/vendor/assets/sass/functions/_fixed.scss +21 -0
  53. data/vendor/assets/sass/functions/_forms.scss +18 -0
  54. data/vendor/assets/sass/functions/_grid-calc.scss +82 -0
  55. data/vendor/assets/sass/functions/_height-calc.scss +6 -0
  56. data/vendor/assets/sass/functions/_icons.scss +35 -0
  57. data/vendor/assets/sass/functions/_line-and-height.scss +7 -0
  58. data/vendor/assets/sass/functions/_palette.scss +76 -0
  59. data/vendor/assets/sass/functions/_responsivity.scss +34 -0
  60. data/vendor/assets/sass/functions/_semantic-grid.scss +170 -0
  61. data/vendor/assets/sass/functions/_shapes.scss +22 -0
  62. data/vendor/assets/sass/functions/_strip-units.scss +5 -0
  63. data/vendor/assets/sass/functions/_tooltips.scss +98 -0
  64. data/vendor/assets/sass/functions/_typography.scss +15 -0
  65. data/vendor/assets/sass/functions/_visibility.scss +17 -0
  66. data/vendor/assets/sass/gumby.scss +39 -0
  67. data/vendor/assets/sass/ui/_all.scss +11 -0
  68. data/vendor/assets/sass/ui/_buttons.scss +154 -0
  69. data/vendor/assets/sass/ui/_forms.scss +392 -0
  70. data/vendor/assets/sass/ui/_icons.scss +23 -0
  71. data/vendor/assets/sass/ui/_images.scss +23 -0
  72. data/vendor/assets/sass/ui/_labels.scss +87 -0
  73. data/vendor/assets/sass/ui/_navbar.scss +440 -0
  74. data/vendor/assets/sass/ui/_tables.scss +89 -0
  75. data/vendor/assets/sass/ui/_tabs.scss +156 -0
  76. data/vendor/assets/sass/ui/_toggles.scss +73 -0
  77. data/vendor/assets/sass/ui/_tooltips.scss +12 -0
  78. data/vendor/assets/sass/ui/_video.scss +24 -0
  79. data/vendor/assets/sass/var/_lists.scss +20 -0
  80. data/vendor/assets/sass/var/_settings.scss +169 -0
  81. data/vendor/assets/sass/var/icons/_entypo-icon-list.scss +286 -0
  82. data/vendor/assets/sass/var/icons/_entypo.scss +294 -0
  83. metadata +167 -0
@@ -0,0 +1,156 @@
1
+ /* Tabs */
2
+
3
+ .tabs {
4
+ display: block;
5
+ }
6
+
7
+ .tab-nav {
8
+ margin: 0;
9
+ padding: 0;
10
+ border-bottom: 1px solid darken($default-color, 5%);
11
+ > li {
12
+ display: inline-block;
13
+ width: auto;
14
+ padding: 0;
15
+ margin: 0 $gutter 0 0;
16
+ cursor: default;
17
+ top: 1px;
18
+ @include box-shadow(0 1px 0 $white);
19
+ > li {
20
+ display: inline-block;
21
+ width: auto;
22
+ padding: 0;
23
+ margin: 0 $gutter 0 0;
24
+ cursor: default;
25
+ top: 1px;
26
+ @include box-shadow(0 1px 0 $white);
27
+ > a {
28
+ display: block;
29
+ width: auto;
30
+ padding: 0 $norm;
31
+ margin: 0;
32
+ color: $body-font-color;
33
+ font-family: $font-family;
34
+ font-weight: $tabs-font-weight;
35
+ border: 1px solid darken($default-color, 5%);
36
+ border-width: 1px 1px 0 1px;
37
+ text-shadow: 0 1px 1px lighten($default-color, 5%);
38
+ background: $default-color;
39
+ cursor: pointer;
40
+ @include border-radius($button-radius $button-radius 0 0);
41
+ @include line-and-height($tab-height);
42
+ &:hover {
43
+ text-decoration: none;
44
+ background: lighten($default-color, 1%);
45
+ }
46
+ &:active {
47
+ background: darken($default-color, 2%);
48
+ }
49
+ }
50
+ &.active > a {
51
+ @include line-and-height($tab-height + 1);
52
+ background: $white;
53
+ cursor: default;
54
+ }
55
+ &:last-child {
56
+ margin-right: 0;
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ .tab-nav > li:last-child {
63
+ margin-right: 0;
64
+ }
65
+
66
+ .tab-nav > li > a {
67
+ display: block;
68
+ width: auto;
69
+ padding: 0 $norm;
70
+ margin: 0;
71
+ color: $body-font-color;
72
+ font-family: $font-family;
73
+ font-weight: $tabs-font-weight;
74
+ border: 1px solid darken($default-color, 5%);
75
+ border-width: 1px 1px 0 1px;
76
+ text-shadow: 0 1px 1px lighten($default-color, 5%);
77
+ background: $default-color;
78
+ cursor: pointer;
79
+ @include border-radius($button-radius $button-radius 0 0);
80
+ @include line-and-height($tab-height);
81
+ &:hover {
82
+ text-decoration: none;
83
+ background: lighten($default-color, 1%);
84
+ }
85
+ &:active {
86
+ background: darken($default-color, 2%);
87
+ }
88
+ }
89
+
90
+ .tab-nav > li.active > a {
91
+ @include line-and-height($tab-height + 1);
92
+ background: $white;
93
+ }
94
+
95
+ .tabs.pill .tab-nav {
96
+ width: 100%; /* remove if you dont want the tabs to span the full container width */
97
+ display: table;
98
+ overflow: hidden;
99
+ border: 1px solid darken($default-color, 5%);
100
+ @include border-radius($button-radius);
101
+ > li {
102
+ display: table-cell;
103
+ margin: 0;
104
+ margin-left: -4px;
105
+ text-align: center;
106
+ top: 0;
107
+ &:first-child {
108
+ margin-left: 0;
109
+ }
110
+ > a {
111
+ border: none;
112
+ border-right: 1px solid darken($default-color, 5%);
113
+ @include border-radius(0);
114
+ @include line-and-height($tab-height);
115
+ }
116
+ &:last-child > a {
117
+ border-right:none;
118
+ }
119
+ }
120
+ }
121
+
122
+ .tab-content {
123
+ display: none;
124
+ padding: 20px 10px;
125
+ &.active {
126
+ display: block;
127
+ }
128
+ }
129
+
130
+ .tabs.vertical {
131
+ .tab-nav {
132
+ border: none;
133
+ > li {
134
+ display: block;
135
+ margin: 0;
136
+ margin-bottom: 5px;
137
+ &.active {
138
+ position: relative;
139
+ z-index: 99;
140
+ > a {
141
+ border-right: 1px solid $global-bg-color;
142
+ }
143
+ }
144
+ > a {
145
+ border: 1px solid darken($default-color, 5%);
146
+ @include border-radius($button-radius 0 0 $button-radius);
147
+ }
148
+ }
149
+ }
150
+ .tab-content {
151
+ padding: 10px 0 30px 20px;
152
+ margin-left: -1px;
153
+ border-left: 1px solid darken($default-color, 5%);
154
+ }
155
+ }
156
+
@@ -0,0 +1,73 @@
1
+ /* Toggles */
2
+
3
+ .drawer {
4
+ position: relative;
5
+ width: 100%;
6
+ max-height: 0;
7
+ background: $drawer-background-color;
8
+ @include box-shadow(
9
+ inset $drawer-inner-shadow-x-offset #{-$drawer-inner-shadow-y-offset} $drawer-inner-shadow-blur $drawer-inner-shadow-color,
10
+ inset $drawer-inner-shadow-x-offset $drawer-inner-shadow-y-offset $drawer-inner-shadow-blur $drawer-inner-shadow-color);
11
+ ;
12
+ overflow: hidden;
13
+ @include transition-duration(.3s);
14
+ &.active {
15
+ height: auto;
16
+ max-height: 800px;
17
+ @include transition-duration(.5s);
18
+ }
19
+ }
20
+
21
+ .modal {
22
+ width: 100%;
23
+ height: 100%;
24
+ position: fixed;
25
+ top: 0;
26
+ left: 0;
27
+ z-index: 999999;
28
+ background: rgb(0, 0, 0);
29
+ background: $modal-overlay-color;
30
+ > .content {
31
+ width: 50%;
32
+ min-height: 50%;
33
+ max-height: 65%;
34
+ position: relative;
35
+ top: 25%;
36
+ margin: 0 auto;
37
+ padding: $gutter-in-px;
38
+ background: $modal-window-color;
39
+ z-index: 2;
40
+ overflow: auto;
41
+ @include respond(portrait-tablets) {
42
+ width: 80%;
43
+ min-height: 80%;
44
+ max-height: 80%;
45
+ top: 10%;
46
+ }
47
+ @include respond(all-phones) {
48
+ width: 92.5%;
49
+ min-height: 92.5%;
50
+ max-height: 92.5%;
51
+ top: 3.75%;
52
+ }
53
+ > .close {
54
+ position: absolute;
55
+ top: 10px;
56
+ right: 10px;
57
+ cursor: pointer;
58
+ z-index: 3;
59
+ }
60
+ }
61
+ &, > .content {
62
+ visibility: hidden;
63
+ @include opacity(0);
64
+ }
65
+ &.active {
66
+ @include transition-property(opacity);
67
+ @include transition-duration(.3s);
68
+ &, > .content {
69
+ visibility: visible;
70
+ @include opacity(1);
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,12 @@
1
+ /* Tooltips */
2
+
3
+ .ttip {
4
+ @include tooltip($tt-min-width, $tt-bgcolor, $tt-position, $tt-align);
5
+ cursor: pointer;
6
+ }
7
+
8
+ .ttip:after, .ttip:before {
9
+ @include respond(portrait-tablets) {
10
+ display: none;
11
+ }
12
+ }
@@ -0,0 +1,24 @@
1
+ /* Video */
2
+
3
+ body .video {
4
+ width: 100%;
5
+ position: relative;
6
+ height: 0;
7
+ padding-bottom: 56.25%;
8
+ &.twitch, &.youtube.show_controls {
9
+ padding-top: 30px;
10
+ // Use .show_controls f you want the play/pause controls
11
+ // to show before the video plays, like on older youtube.
12
+ }
13
+ &.youtube, &.vimeo {
14
+ // Nothing goes here anymore. Both use overlay transports.
15
+ }
16
+ }
17
+
18
+ .video > video, .video > iframe, .video > object, .video > embed {
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ width: 100%;
23
+ height: 100%;
24
+ }
@@ -0,0 +1,20 @@
1
+ // Lists
2
+
3
+ // UI Coloring List
4
+ $ui-coloring:
5
+ primary $primary-color $primary-hover-color,
6
+ secondary $secondary-color $secondary-hover-color,
7
+ default $default-color $default-hover-color,
8
+ info $info-color $info-hover-color,
9
+ danger $danger-color $danger-hover-color,
10
+ warning $warning-color $warning-hover-color,
11
+ success $success-color $success-hover-color;
12
+
13
+ // UI Styling List
14
+ $styling: metro $metro-radius, pretty $button-radius;
15
+
16
+
17
+ // Form field types
18
+ $field-types: text, email, password, numeric, search, combined, prepend, append, double;
19
+
20
+ $field-sizes: xnarrow, narrow, normal, wide, xwide, xxwide;
@@ -0,0 +1,169 @@
1
+ // Welcome to Gumby 2.0 Settings.
2
+ // Happy Tinkering!
3
+
4
+
5
+ // Grid Settings
6
+ $row-max-width: 940px !default; // 940px
7
+ $gutter-in-px: 20px !default; // 20px
8
+ $cols: 12 !default; // 12 Column Default Grid
9
+ $hybrid: 16 !default; // 16 Column Default Hybrid Grid
10
+
11
+ // Responsiveness Settings
12
+ $min-device-width: 320px; // iPhone Portrait
13
+ $tablet-device-width: 768px; // iPad Portrait
14
+ $document-width: $row-max-width; // Default Document
15
+ $max-device-width: 2880px; // Max Document Size
16
+
17
+ // Spacing
18
+ $nav-distance: 0; // Navigation distance from the top of the viewport
19
+
20
+ // Typography
21
+ $font-family: "Open Sans";
22
+ $font-style-italic: italic;
23
+ $icons: entypo;
24
+ $font-smoothing: antialiased;
25
+
26
+ // Font Weights
27
+ $font-weight-bold: 700;
28
+ $font-weight-semibold: 600;
29
+ $font-weight-medium: 400;
30
+ $font-weight-regular: 400;
31
+ $font-weight-light: 300;
32
+ $font-weight-thin: 300;
33
+
34
+ $header-font-weight: $font-weight-thin;
35
+ $body-font-weight: $font-weight-regular;
36
+ $type-font-weight: $font-weight-regular;
37
+ $link-font-weight: $font-weight-regular;
38
+ $button-font-weight: $font-weight-semibold;
39
+ $tabs-font-weight: $font-weight-semibold;
40
+
41
+ // Vertical Rhythm Spacing
42
+ $base-line-height: ms(1) !default;
43
+ $rhythm-spacing: .168;
44
+ $rhythm-height: .711;
45
+
46
+ // Modular Scale Settings
47
+ // http://www.modularscale.com by Tim Brown
48
+ // https://github.com/scottkellum/modular-scale
49
+ $ratio: golden(); // Ratio for Modular Scale
50
+ $base-font-size: 16px !default;
51
+ $importantNum: 78px !default;
52
+ $base-size: $base-font-size $importantNum;
53
+ // Gumby Default Scale Values: 16, 18, 26, 30, 42, 48, 68, 78, 110, 126;
54
+
55
+ // Sizing
56
+ $xsmall: ms(-2);
57
+ $small: ms(-1);
58
+ $norm: ms(0); // $base-font-size (16px == default)
59
+ $med: ms(1);
60
+ $large: ms(2);
61
+ $larger: ms(3);
62
+ $xlarge: ms(4);
63
+ $xxlarge: ms(5);
64
+ $xxxlarge: ms(6);
65
+ $reallybig: ms(8);
66
+ $tremendous: ms(9);
67
+ $absurd: ms(10);
68
+
69
+ // Typography Colors
70
+ $header-font-color: #444444 !default;
71
+ $header-link-color: #d04526 !default;
72
+ $header-link-hover-color: #c03d20 !default;
73
+ $body-font-color: #555555 !default;
74
+ $body-link-color: #d04526 !default;
75
+ $body-link-hover-color: #c03d20 !default;
76
+
77
+ // User Interface Colors
78
+ $global-bg-color: #fff;
79
+ $navbar-color: #4a4d50;
80
+ $navbar-link-color: #fff;
81
+
82
+ $primary-color: #3085d6;
83
+ $secondary-color: #42a35a;
84
+ $default-color: #f2f2f2;
85
+ $info-color: #4a4d50;
86
+ $danger-color: #ca3838;
87
+ $warning-color: #f6b83f;
88
+ $success-color: #58c026;
89
+
90
+ $primary-hover-color: #58b2fa;
91
+ $secondary-hover-color: #6dbb80;
92
+ $default-hover-color: #ffffff;
93
+ $info-hover-color: #868d92;
94
+ $danger-hover-color: #f14f4f;
95
+ $warning-hover-color: #fdd27f;
96
+ $success-hover-color: #66d92f;
97
+
98
+ $horizontal-rule-color: #ccc !default;
99
+
100
+ $black: #000;
101
+ $white: #fff;
102
+
103
+ // Borders
104
+ $button-radius: 4px !default;
105
+ $metro-radius: 0 !default;
106
+ $bigger-radius: 8px;
107
+
108
+ // Buttons
109
+ // Font Sizing
110
+ $xlarge-button-font-size: $larger;
111
+ $large-button-font-size: $large;
112
+ $medium-button-font-size: $norm;
113
+ $small-button-font-size: $small;
114
+ // Padding
115
+ $default-button-padding: $med;
116
+ // Height
117
+ $default-button-height: 36px;
118
+
119
+ // Form Elements
120
+ $form-text-input-stroke: #ccc;
121
+ $form-text-input-background: $white;
122
+ $form-text-input-placeholder-color: $default-color;
123
+ $form-text-input-color: #555;
124
+
125
+ $form-select-stroke: #ccc;
126
+ $form-select-background: $white;
127
+ $form-select-color: #555;
128
+
129
+ // Tabs
130
+ $tab-height: 42px;
131
+
132
+ // Navigation
133
+ $navcontain-height: 80px; // makes space at the top of a document for when using a fixed nav
134
+
135
+ // Drawers & Modals
136
+ $modal-overlay-color: rgba(0, 0, 0, 0.8);
137
+ $modal-window-color: $white;
138
+ $drawer-background-color: #3e4144;
139
+ $drawer-inner-shadow-x-offset: 0;
140
+ $drawer-inner-shadow-y-offset: 2px;
141
+ $drawer-inner-shadow-blur: 5px;
142
+ $drawer-inner-shadow-color: #313436;
143
+
144
+ // Tables
145
+ $table-bgcolor: #fff;
146
+ $table-thead-bgcolor: $primary-color;
147
+ $table-row-first-cell-font-weight: bold;
148
+ $table-border-size: 1px;
149
+ $table-border-style: solid;
150
+ $table-border-color: #e5e5e5;
151
+ $table-cell-border-size: 1px;
152
+ $table-cell-border-color: #e5e5e5;
153
+ $table-cell-border-style: solid;
154
+ // .rounded
155
+ $table-border-radius: 4px;
156
+ // .striped
157
+ $table-stripe-bgcolor: #e5e5e5;
158
+
159
+ // Tooltips
160
+ $tt-min-width: 130px;
161
+ $tt-bgcolor: $primary-color;
162
+ $tt-position: top; // position: top / bottom / left / right
163
+ $tt-align: left; // text and caret alignment: left / right
164
+ $tt-pretty: yes; // yes = pretty / no = flat
165
+
166
+ // Floats
167
+ $default-float: left;
168
+ $switch-float: right;
169
+