moovui 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 (116) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +1 -0
  7. data/Rakefile +1 -0
  8. data/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  9. data/bourbon/_bourbon.scss +59 -0
  10. data/bourbon/addons/_button.scss +273 -0
  11. data/bourbon/addons/_clearfix.scss +29 -0
  12. data/bourbon/addons/_font-family.scss +5 -0
  13. data/bourbon/addons/_hide-text.scss +5 -0
  14. data/bourbon/addons/_html5-input-types.scss +56 -0
  15. data/bourbon/addons/_position.scss +42 -0
  16. data/bourbon/addons/_prefixer.scss +49 -0
  17. data/bourbon/addons/_retina-image.scss +32 -0
  18. data/bourbon/addons/_size.scss +44 -0
  19. data/bourbon/addons/_timing-functions.scss +32 -0
  20. data/bourbon/addons/_triangle.scss +45 -0
  21. data/bourbon/css3/_animation.scss +52 -0
  22. data/bourbon/css3/_appearance.scss +3 -0
  23. data/bourbon/css3/_backface-visibility.scss +6 -0
  24. data/bourbon/css3/_background-image.scss +48 -0
  25. data/bourbon/css3/_background.scss +103 -0
  26. data/bourbon/css3/_border-image.scss +55 -0
  27. data/bourbon/css3/_border-radius.scss +22 -0
  28. data/bourbon/css3/_box-sizing.scss +4 -0
  29. data/bourbon/css3/_columns.scss +47 -0
  30. data/bourbon/css3/_flex-box.scss +52 -0
  31. data/bourbon/css3/_font-face.scss +23 -0
  32. data/bourbon/css3/_hidpi-media-query.scss +10 -0
  33. data/bourbon/css3/_image-rendering.scss +13 -0
  34. data/bourbon/css3/_inline-block.scss +8 -0
  35. data/bourbon/css3/_keyframes.scss +43 -0
  36. data/bourbon/css3/_linear-gradient.scss +41 -0
  37. data/bourbon/css3/_perspective.scss +8 -0
  38. data/bourbon/css3/_placeholder.scss +29 -0
  39. data/bourbon/css3/_radial-gradient.scss +44 -0
  40. data/bourbon/css3/_transform.scss +15 -0
  41. data/bourbon/css3/_transition.scss +34 -0
  42. data/bourbon/css3/_user-select.scss +3 -0
  43. data/bourbon/functions/_compact.scss +11 -0
  44. data/bourbon/functions/_flex-grid.scss +39 -0
  45. data/bourbon/functions/_grid-width.scss +13 -0
  46. data/bourbon/functions/_linear-gradient.scss +13 -0
  47. data/bourbon/functions/_modular-scale.scss +40 -0
  48. data/bourbon/functions/_px-to-em.scss +8 -0
  49. data/bourbon/functions/_radial-gradient.scss +23 -0
  50. data/bourbon/functions/_tint-shade.scss +9 -0
  51. data/bourbon/functions/_transition-property-name.scss +22 -0
  52. data/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
  53. data/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  54. data/bourbon/helpers/_linear-positions-parser.scss +61 -0
  55. data/bourbon/helpers/_radial-arg-parser.scss +69 -0
  56. data/bourbon/helpers/_radial-positions-parser.scss +18 -0
  57. data/bourbon/helpers/_render-gradients.scss +26 -0
  58. data/bourbon/helpers/_shape-size-stripper.scss +10 -0
  59. data/chosen.jquery.js +1166 -0
  60. data/custom.modernizr.js +4 -0
  61. data/fonts/TSTARPRO-BoldWeb.eot +0 -0
  62. data/fonts/TSTARPRO-BoldWeb.woff +0 -0
  63. data/fonts/entypo.eot +0 -0
  64. data/fonts/entypo.svg +235 -0
  65. data/fonts/entypo.ttf +0 -0
  66. data/fonts/entypo.woff +0 -0
  67. data/foundation.alerts.js +52 -0
  68. data/foundation.dropdown.js +177 -0
  69. data/foundation.js +440 -0
  70. data/foundation.reveal.js +330 -0
  71. data/foundation.section.js +400 -0
  72. data/foundation.tooltips.custom.js +222 -0
  73. data/globals/_base.scss +41 -0
  74. data/globals/_entypo.scss +711 -0
  75. data/globals/_footer.scss +29 -0
  76. data/globals/_header.scss +64 -0
  77. data/globals/_mixins.scss +69 -0
  78. data/globals/_normalize.scss +405 -0
  79. data/globals/_vars.scss +67 -0
  80. data/index.html +1254 -0
  81. data/lib/moovui/version.rb +3 -0
  82. data/lib/moovui.rb +4 -0
  83. data/modules/_accordion.scss +51 -0
  84. data/modules/_btn.scss +130 -0
  85. data/modules/_btnbar.scss +56 -0
  86. data/modules/_code.scss +55 -0
  87. data/modules/_copy.scss +99 -0
  88. data/modules/_definition.scss +34 -0
  89. data/modules/_docs.scss +127 -0
  90. data/modules/_dropdown.scss +32 -0
  91. data/modules/_flex.scss +300 -0
  92. data/modules/_grid.scss +72 -0
  93. data/modules/_input.scss +59 -0
  94. data/modules/_label.scss +6 -0
  95. data/modules/_list.scss +57 -0
  96. data/modules/_media.scss +17 -0
  97. data/modules/_modal.scss +71 -0
  98. data/modules/_notice.scss +111 -0
  99. data/modules/_pane.scss +25 -0
  100. data/modules/_resp.scss +71 -0
  101. data/modules/_select.scss +94 -0
  102. data/modules/_sidebar.scss +117 -0
  103. data/modules/_syntax-highlighter.scss +100 -0
  104. data/modules/_table.scss +63 -0
  105. data/modules/_tooltip.scss +59 -0
  106. data/moovui.gemspec +21 -0
  107. data/moovui.scss +43 -0
  108. data/shBrushBash.js +59 -0
  109. data/shBrushJScript.js +52 -0
  110. data/shBrushNull.js +35 -0
  111. data/shBrushSass.js +90 -0
  112. data/shBrushTritium.js +46 -0
  113. data/shBrushXml.js +69 -0
  114. data/shCore.custom.js +2399 -0
  115. data/shInit.js +14 -0
  116. metadata +187 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ODg3ZTZmZDFhY2E3ODJjMmIxZmVmMWJmMjIwM2U2ZDk0NjAwNjA5MQ==
5
+ data.tar.gz: !binary |-
6
+ NTQ4OTM3ZTY3YWZjMTUzMmU1YzczMzViMDA2NzZlOTM2NGVlZGVmZA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzFiNjczMzc3Nzg2NTQyMmIwZTFiYTBjM2JlYzdhMzdiNjQ2Y2I5MzY4ZTZi
10
+ OTFjMmQ2MDQ3NTY2M2M5Zjk3YzNkNTA4NjJmYmJiOTdlMTNhZjRlNWIzNTEx
11
+ NTNjYzkyYmViZjJkMGU4ZWVlNjAzZTgxNDdiOTQ2NjJkODhjNGQ=
12
+ data.tar.gz: !binary |-
13
+ ZGEwNzg2ODJlZjJjNzNlMjI1MzFlNDIwZWIyMWQ5MTUyM2Y0NTFlOWY1MGFk
14
+ ZmRjMmFjY2QxMDI2NDMzZGNhNDFhMGUyMTRhNTNmMzg3ZmIyOGEyMzlhNWYz
15
+ YzEzNjI0MWRmMzZkYjk1Y2Y2OGVmYTA0YjE1NGRhMDQwODU3Mzg=
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg/
2
+ .sass-cache
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in moovui.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,17 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ moovui (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.3.2)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.5)
16
+ moovui!
17
+ rake
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Chris Neale
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1 @@
1
+ You can find an example at http://moovweb.github.io/moovui
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,13 @@
1
+ //************************************************************************//
2
+ // These mixins/functions are deprecated
3
+ // They will be removed in the next MAJOR version release
4
+ //************************************************************************//
5
+ @mixin box-shadow ($shadows...) {
6
+ @include prefixer(box-shadow, $shadows, spec);
7
+ //@warn "box-shadow is deprecated and will be removed in the next major version release";
8
+ }
9
+
10
+ @mixin background-size ($lengths...) {
11
+ @include prefixer(background-size, $lengths, spec);
12
+ @warn "background-size is deprecated and will be removed in the next major version release";
13
+ }
@@ -0,0 +1,59 @@
1
+ // Custom Helpers
2
+ @import "helpers/deprecated-webkit-gradient";
3
+ @import "helpers/gradient-positions-parser";
4
+ @import "helpers/linear-positions-parser";
5
+ @import "helpers/radial-arg-parser";
6
+ @import "helpers/radial-positions-parser";
7
+ @import "helpers/render-gradients";
8
+ @import "helpers/shape-size-stripper";
9
+
10
+ // Custom Functions
11
+ @import "functions/compact";
12
+ @import "functions/flex-grid";
13
+ @import "functions/grid-width";
14
+ @import "functions/linear-gradient";
15
+ @import "functions/modular-scale";
16
+ @import "functions/px-to-em";
17
+ @import "functions/radial-gradient";
18
+ @import "functions/tint-shade";
19
+ @import "functions/transition-property-name";
20
+
21
+ // CSS3 Mixins
22
+ @import "css3/animation";
23
+ @import "css3/appearance";
24
+ @import "css3/backface-visibility";
25
+ @import "css3/background";
26
+ @import "css3/background-image";
27
+ @import "css3/border-image";
28
+ @import "css3/border-radius";
29
+ @import "css3/box-sizing";
30
+ @import "css3/columns";
31
+ @import "css3/flex-box";
32
+ @import "css3/font-face";
33
+ @import "css3/hidpi-media-query";
34
+ @import "css3/image-rendering";
35
+ @import "css3/inline-block";
36
+ @import "css3/keyframes";
37
+ @import "css3/linear-gradient";
38
+ @import "css3/perspective";
39
+ @import "css3/radial-gradient";
40
+ @import "css3/transform";
41
+ @import "css3/transition";
42
+ @import "css3/user-select";
43
+ @import "css3/placeholder";
44
+
45
+ // Addons & other mixins
46
+ @import "addons/button";
47
+ @import "addons/clearfix";
48
+ @import "addons/font-family";
49
+ @import "addons/hide-text";
50
+ @import "addons/html5-input-types";
51
+ @import "addons/position";
52
+ @import "addons/prefixer";
53
+ @import "addons/retina-image";
54
+ @import "addons/size";
55
+ @import "addons/timing-functions";
56
+ @import "addons/triangle";
57
+
58
+ // Soon to be deprecated Mixins
59
+ @import "bourbon-deprecated-upcoming";
@@ -0,0 +1,273 @@
1
+ @mixin button ($style: simple, $base-color: #4294f0) {
2
+
3
+ @if type-of($style) == color {
4
+ $base-color: $style;
5
+ $style: simple;
6
+ }
7
+
8
+ // Grayscale button
9
+ @if $base-color == grayscale($base-color) {
10
+ @if $style == simple {
11
+ @include simple($base-color, $grayscale: true);
12
+ }
13
+
14
+ @else if $style == shiny {
15
+ @include shiny($base-color, $grayscale: true);
16
+ }
17
+
18
+ @else if $style == pill {
19
+ @include pill($base-color, $grayscale: true);
20
+ }
21
+ }
22
+
23
+ // Colored button
24
+ @else {
25
+ @if $style == simple {
26
+ @include simple($base-color);
27
+ }
28
+
29
+ @else if $style == shiny {
30
+ @include shiny($base-color);
31
+ }
32
+
33
+ @else if $style == pill {
34
+ @include pill($base-color);
35
+ }
36
+ }
37
+
38
+ &:disabled {
39
+ opacity: 0.5;
40
+ cursor: not-allowed;
41
+ }
42
+ }
43
+
44
+
45
+ // Simple Button
46
+ //************************************************************************//
47
+ @mixin simple($base-color, $grayscale: false) {
48
+ $color: hsl(0, 0, 100%);
49
+ $border: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
50
+ $inset-shadow: adjust-color($base-color, $saturation: -8%, $lightness: 15%);
51
+ $stop-gradient: adjust-color($base-color, $saturation: 9%, $lightness: -11%);
52
+ $text-shadow: adjust-color($base-color, $saturation: 15%, $lightness: -18%);
53
+
54
+ @if lightness($base-color) > 70% {
55
+ $color: hsl(0, 0, 20%);
56
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
57
+ }
58
+
59
+ @if $grayscale == true {
60
+ $border: grayscale($border);
61
+ $inset-shadow: grayscale($inset-shadow);
62
+ $stop-gradient: grayscale($stop-gradient);
63
+ $text-shadow: grayscale($text-shadow);
64
+ }
65
+
66
+ border: 1px solid $border;
67
+ border-radius: 3px;
68
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
69
+ color: $color;
70
+ display: inline-block;
71
+ font-size: 11px;
72
+ font-weight: bold;
73
+ @include linear-gradient ($base-color, $stop-gradient);
74
+ padding: 7px 18px;
75
+ text-decoration: none;
76
+ text-shadow: 0 1px 0 $text-shadow;
77
+ background-clip: padding-box;
78
+
79
+ &:hover:not(:disabled) {
80
+ $base-color-hover: adjust-color($base-color, $saturation: -4%, $lightness: -5%);
81
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -7%, $lightness: 5%);
82
+ $stop-gradient-hover: adjust-color($base-color, $saturation: 8%, $lightness: -14%);
83
+
84
+ @if $grayscale == true {
85
+ $base-color-hover: grayscale($base-color-hover);
86
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
87
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
88
+ }
89
+
90
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
91
+ cursor: pointer;
92
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
93
+ }
94
+
95
+ &:active:not(:disabled) {
96
+ $border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
97
+ $inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);
98
+
99
+ @if $grayscale == true {
100
+ $border-active: grayscale($border-active);
101
+ $inset-shadow-active: grayscale($inset-shadow-active);
102
+ }
103
+
104
+ border: 1px solid $border-active;
105
+ box-shadow: inset 0 0 8px 4px $inset-shadow-active, inset 0 0 8px 4px $inset-shadow-active, 0 1px 1px 0 #eee;
106
+ }
107
+ }
108
+
109
+
110
+ // Shiny Button
111
+ //************************************************************************//
112
+ @mixin shiny($base-color, $grayscale: false) {
113
+ $color: hsl(0, 0, 100%);
114
+ $border: adjust-color($base-color, $red: -117, $green: -111, $blue: -81);
115
+ $border-bottom: adjust-color($base-color, $red: -126, $green: -127, $blue: -122);
116
+ $fourth-stop: adjust-color($base-color, $red: -79, $green: -70, $blue: -46);
117
+ $inset-shadow: adjust-color($base-color, $red: 37, $green: 29, $blue: 12);
118
+ $second-stop: adjust-color($base-color, $red: -56, $green: -50, $blue: -33);
119
+ $text-shadow: adjust-color($base-color, $red: -140, $green: -141, $blue: -114);
120
+ $third-stop: adjust-color($base-color, $red: -86, $green: -75, $blue: -48);
121
+
122
+ @if lightness($base-color) > 70% {
123
+ $color: hsl(0, 0, 20%);
124
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
125
+ }
126
+
127
+ @if $grayscale == true {
128
+ $border: grayscale($border);
129
+ $border-bottom: grayscale($border-bottom);
130
+ $fourth-stop: grayscale($fourth-stop);
131
+ $inset-shadow: grayscale($inset-shadow);
132
+ $second-stop: grayscale($second-stop);
133
+ $text-shadow: grayscale($text-shadow);
134
+ $third-stop: grayscale($third-stop);
135
+ }
136
+
137
+ border: 1px solid $border;
138
+ border-bottom: 1px solid $border-bottom;
139
+ border-radius: 5px;
140
+ box-shadow: inset 0 1px 0 0 $inset-shadow;
141
+ color: $color;
142
+ display: inline-block;
143
+ font-size: 14px;
144
+ font-weight: bold;
145
+ @include linear-gradient(top, $base-color 0%, $second-stop 50%, $third-stop 50%, $fourth-stop 100%);
146
+ padding: 8px 20px;
147
+ text-align: center;
148
+ text-decoration: none;
149
+ text-shadow: 0 -1px 1px $text-shadow;
150
+
151
+ &:hover:not(:disabled) {
152
+ $first-stop-hover: adjust-color($base-color, $red: -13, $green: -15, $blue: -18);
153
+ $second-stop-hover: adjust-color($base-color, $red: -66, $green: -62, $blue: -51);
154
+ $third-stop-hover: adjust-color($base-color, $red: -93, $green: -85, $blue: -66);
155
+ $fourth-stop-hover: adjust-color($base-color, $red: -86, $green: -80, $blue: -63);
156
+
157
+ @if $grayscale == true {
158
+ $first-stop-hover: grayscale($first-stop-hover);
159
+ $second-stop-hover: grayscale($second-stop-hover);
160
+ $third-stop-hover: grayscale($third-stop-hover);
161
+ $fourth-stop-hover: grayscale($fourth-stop-hover);
162
+ }
163
+
164
+ cursor: pointer;
165
+ @include linear-gradient(top, $first-stop-hover 0%,
166
+ $second-stop-hover 50%,
167
+ $third-stop-hover 50%,
168
+ $fourth-stop-hover 100%);
169
+ }
170
+
171
+ &:active:not(:disabled) {
172
+ $inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);
173
+
174
+ @if $grayscale == true {
175
+ $inset-shadow-active: grayscale($inset-shadow-active);
176
+ }
177
+
178
+ box-shadow: inset 0 0 20px 0 $inset-shadow-active, 0 1px 0 #fff;
179
+ }
180
+ }
181
+
182
+
183
+ // Pill Button
184
+ //************************************************************************//
185
+ @mixin pill($base-color, $grayscale: false) {
186
+ $color: hsl(0, 0, 100%);
187
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: -11%, $lightness: -26%);
188
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -21%, $lightness: -21%);
189
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -30%, $lightness: -15%);
190
+ $inset-shadow: adjust-color($base-color, $hue: -1, $saturation: -1%, $lightness: 7%);
191
+ $stop-gradient: adjust-color($base-color, $hue: 8, $saturation: 14%, $lightness: -10%);
192
+ $text-shadow: adjust-color($base-color, $hue: 5, $saturation: -19%, $lightness: -15%);
193
+
194
+ @if lightness($base-color) > 70% {
195
+ $color: hsl(0, 0, 20%);
196
+ $text-shadow: adjust-color($base-color, $saturation: 10%, $lightness: 4%);
197
+ }
198
+
199
+ @if $grayscale == true {
200
+ $border-bottom: grayscale($border-bottom);
201
+ $border-sides: grayscale($border-sides);
202
+ $border-top: grayscale($border-top);
203
+ $inset-shadow: grayscale($inset-shadow);
204
+ $stop-gradient: grayscale($stop-gradient);
205
+ $text-shadow: grayscale($text-shadow);
206
+ }
207
+
208
+ border: 1px solid $border-top;
209
+ border-color: $border-top $border-sides $border-bottom;
210
+ border-radius: 16px;
211
+ box-shadow: inset 0 1px 0 0 $inset-shadow, 0 1px 2px 0 #b3b3b3;
212
+ color: $color;
213
+ display: inline-block;
214
+ font-size: 11px;
215
+ font-weight: normal;
216
+ line-height: 1;
217
+ @include linear-gradient ($base-color, $stop-gradient);
218
+ padding: 5px 16px;
219
+ text-align: center;
220
+ text-decoration: none;
221
+ text-shadow: 0 -1px 1px $text-shadow;
222
+ background-clip: padding-box;
223
+
224
+ &:hover:not(:disabled) {
225
+ $base-color-hover: adjust-color($base-color, $lightness: -4.5%);
226
+ $border-bottom: adjust-color($base-color, $hue: 8, $saturation: 13.5%, $lightness: -32%);
227
+ $border-sides: adjust-color($base-color, $hue: 4, $saturation: -2%, $lightness: -27%);
228
+ $border-top: adjust-color($base-color, $hue: -1, $saturation: -17%, $lightness: -21%);
229
+ $inset-shadow-hover: adjust-color($base-color, $saturation: -1%, $lightness: 3%);
230
+ $stop-gradient-hover: adjust-color($base-color, $hue: 8, $saturation: -4%, $lightness: -15.5%);
231
+ $text-shadow-hover: adjust-color($base-color, $hue: 5, $saturation: -5%, $lightness: -22%);
232
+
233
+ @if $grayscale == true {
234
+ $base-color-hover: grayscale($base-color-hover);
235
+ $border-bottom: grayscale($border-bottom);
236
+ $border-sides: grayscale($border-sides);
237
+ $border-top: grayscale($border-top);
238
+ $inset-shadow-hover: grayscale($inset-shadow-hover);
239
+ $stop-gradient-hover: grayscale($stop-gradient-hover);
240
+ $text-shadow-hover: grayscale($text-shadow-hover);
241
+ }
242
+
243
+ border: 1px solid $border-top;
244
+ border-color: $border-top $border-sides $border-bottom;
245
+ box-shadow: inset 0 1px 0 0 $inset-shadow-hover;
246
+ cursor: pointer;
247
+ @include linear-gradient ($base-color-hover, $stop-gradient-hover);
248
+ text-shadow: 0 -1px 1px $text-shadow-hover;
249
+ background-clip: padding-box;
250
+ }
251
+
252
+ &:active:not(:disabled) {
253
+ $active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
254
+ $border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
255
+ $border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
256
+ $inset-shadow-active: adjust-color($base-color, $hue: 9, $saturation: 2%, $lightness: -21.5%);
257
+ $text-shadow-active: adjust-color($base-color, $hue: 5, $saturation: -12%, $lightness: -21.5%);
258
+
259
+ @if $grayscale == true {
260
+ $active-color: grayscale($active-color);
261
+ $border-active: grayscale($border-active);
262
+ $border-bottom-active: grayscale($border-bottom-active);
263
+ $inset-shadow-active: grayscale($inset-shadow-active);
264
+ $text-shadow-active: grayscale($text-shadow-active);
265
+ }
266
+
267
+ background: $active-color;
268
+ border: 1px solid $border-active;
269
+ border-bottom: 1px solid $border-bottom-active;
270
+ box-shadow: inset 0 0 6px 3px $inset-shadow-active, 0 1px 0 0 #fff;
271
+ text-shadow: 0 -1px 1px $text-shadow-active;
272
+ }
273
+ }
@@ -0,0 +1,29 @@
1
+ // Micro clearfix provides an easy way to contain floats without adding additional markup
2
+ //
3
+ // Example usage:
4
+ //
5
+ // // Contain all floats within .wrapper
6
+ // .wrapper {
7
+ // @include clearfix;
8
+ // .content,
9
+ // .sidebar {
10
+ // float : left;
11
+ // }
12
+ // }
13
+
14
+ @mixin clearfix {
15
+ *zoom: 1;
16
+
17
+ &:before,
18
+ &:after {
19
+ content: " ";
20
+ display: table;
21
+ }
22
+
23
+ &:after {
24
+ clear: both;
25
+ }
26
+ }
27
+
28
+ // Acknowledgements
29
+ // Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/)
@@ -0,0 +1,5 @@
1
+ $georgia: Georgia, Cambria, "Times New Roman", Times, serif;
2
+ $helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
3
+ $lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
4
+ $monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
5
+ $verdana: Verdana, Geneva, sans-serif;
@@ -0,0 +1,5 @@
1
+ @mixin hide-text {
2
+ color: transparent;
3
+ font: 0/0 a;
4
+ text-shadow: none;
5
+ }
@@ -0,0 +1,56 @@
1
+ //************************************************************************//
2
+ // Generate a variable ($all-text-inputs) with a list of all html5
3
+ // input types that have a text-based input, excluding textarea.
4
+ // http://diveintohtml5.org/forms.html
5
+ //************************************************************************//
6
+ $inputs-list: 'input[type="email"]',
7
+ 'input[type="number"]',
8
+ 'input[type="password"]',
9
+ 'input[type="search"]',
10
+ 'input[type="tel"]',
11
+ 'input[type="text"]',
12
+ 'input[type="url"]',
13
+
14
+ // Webkit & Gecko may change the display of these in the future
15
+ 'input[type="color"]',
16
+ 'input[type="date"]',
17
+ 'input[type="datetime"]',
18
+ 'input[type="datetime-local"]',
19
+ 'input[type="month"]',
20
+ 'input[type="time"]',
21
+ 'input[type="week"]';
22
+
23
+ $unquoted-inputs-list: ();
24
+ @each $input-type in $inputs-list {
25
+ $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
26
+ }
27
+
28
+ $all-text-inputs: $unquoted-inputs-list;
29
+
30
+
31
+ // Hover Pseudo-class
32
+ //************************************************************************//
33
+ $all-text-inputs-hover: ();
34
+ @each $input-type in $unquoted-inputs-list {
35
+ $input-type-hover: $input-type + ":hover";
36
+ $all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma);
37
+ }
38
+
39
+ // Focus Pseudo-class
40
+ //************************************************************************//
41
+ $all-text-inputs-focus: ();
42
+ @each $input-type in $unquoted-inputs-list {
43
+ $input-type-focus: $input-type + ":focus";
44
+ $all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma);
45
+ }
46
+
47
+ // You must use interpolation on the variable:
48
+ // #{$all-text-inputs}
49
+ // #{$all-text-inputs-hover}
50
+ // #{$all-text-inputs-focus}
51
+
52
+ // Example
53
+ //************************************************************************//
54
+ // #{$all-text-inputs}, textarea {
55
+ // border: 1px solid red;
56
+ // }
@@ -0,0 +1,42 @@
1
+ @mixin position ($position: relative, $coordinates: 0 0 0 0) {
2
+
3
+ @if type-of($position) == list {
4
+ $coordinates: $position;
5
+ $position: relative;
6
+ }
7
+
8
+ $top: nth($coordinates, 1);
9
+ $right: nth($coordinates, 2);
10
+ $bottom: nth($coordinates, 3);
11
+ $left: nth($coordinates, 4);
12
+
13
+ position: $position;
14
+
15
+ @if $top == auto {
16
+ top: $top;
17
+ }
18
+ @else if not(unitless($top)) {
19
+ top: $top;
20
+ }
21
+
22
+ @if $right == auto {
23
+ right: $right;
24
+ }
25
+ @else if not(unitless($right)) {
26
+ right: $right;
27
+ }
28
+
29
+ @if $bottom == auto {
30
+ bottom: $bottom;
31
+ }
32
+ @else if not(unitless($bottom)) {
33
+ bottom: $bottom;
34
+ }
35
+
36
+ @if $left == auto {
37
+ left: $left;
38
+ }
39
+ @else if not(unitless($left)) {
40
+ left: $left;
41
+ }
42
+ }
@@ -0,0 +1,49 @@
1
+ //************************************************************************//
2
+ // Example: @include prefixer(border-radius, $radii, webkit ms spec);
3
+ //************************************************************************//
4
+ $prefix-for-webkit: true !default;
5
+ $prefix-for-mozilla: true !default;
6
+ $prefix-for-microsoft: true !default;
7
+ $prefix-for-opera: true !default;
8
+ $prefix-for-spec: true !default; // required for keyframe mixin
9
+
10
+ @mixin prefixer ($property, $value, $prefixes) {
11
+ @each $prefix in $prefixes {
12
+ @if $prefix == webkit {
13
+ @if $prefix-for-webkit {
14
+ -webkit-#{$property}: $value;
15
+ }
16
+ }
17
+ @else if $prefix == moz {
18
+ @if $prefix-for-mozilla {
19
+ -moz-#{$property}: $value;
20
+ }
21
+ }
22
+ @else if $prefix == ms {
23
+ @if $prefix-for-microsoft {
24
+ -ms-#{$property}: $value;
25
+ }
26
+ }
27
+ @else if $prefix == o {
28
+ @if $prefix-for-opera {
29
+ -o-#{$property}: $value;
30
+ }
31
+ }
32
+ @else if $prefix == spec {
33
+ @if $prefix-for-spec {
34
+ #{$property}: $value;
35
+ }
36
+ }
37
+ @else {
38
+ @warn "Unrecognized prefix: #{$prefix}";
39
+ }
40
+ }
41
+ }
42
+
43
+ @mixin disable-prefix-for-all() {
44
+ $prefix-for-webkit: false;
45
+ $prefix-for-mozilla: false;
46
+ $prefix-for-microsoft: false;
47
+ $prefix-for-opera: false;
48
+ $prefix-for-spec: false;
49
+ }
@@ -0,0 +1,32 @@
1
+ @mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) {
2
+ @if $asset-pipeline {
3
+ background-image: image-url("#{$filename}.#{$extension}");
4
+ }
5
+ @else {
6
+ background-image: url("#{$filename}.#{$extension}");
7
+ }
8
+
9
+ @include hidpi {
10
+
11
+ @if $asset-pipeline {
12
+ @if $retina-filename {
13
+ background-image: image-url("#{$retina-filename}.#{$extension}");
14
+ }
15
+ @else {
16
+ background-image: image-url("#{$filename}@2x.#{$extension}");
17
+ }
18
+ }
19
+
20
+ @else {
21
+ @if $retina-filename {
22
+ background-image: url("#{$retina-filename}.#{$extension}");
23
+ }
24
+ @else {
25
+ background-image: url("#{$filename}@2x.#{$extension}");
26
+ }
27
+ }
28
+
29
+ background-size: $background-size;
30
+
31
+ }
32
+ }