bourbon-compass 2.1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bourbon-compass.rb +4 -0
- data/readme.md +31 -0
- data/stylesheets/bourbon/_bourbon.scss +40 -0
- data/stylesheets/bourbon/addons/_button.scss +273 -0
- data/stylesheets/bourbon/addons/_clearfix.scss +29 -0
- data/stylesheets/bourbon/addons/_font-face.scss +12 -0
- data/stylesheets/bourbon/addons/_font-family.scss +5 -0
- data/stylesheets/bourbon/addons/_hide-text.scss +15 -0
- data/stylesheets/bourbon/addons/_html5-input-types.scss +36 -0
- data/stylesheets/bourbon/addons/_position.scss +42 -0
- data/stylesheets/bourbon/addons/_timing-functions.scss +32 -0
- data/stylesheets/bourbon/css3/_animation.scss +125 -0
- data/stylesheets/bourbon/css3/_appearance.scss +3 -0
- data/stylesheets/bourbon/css3/_background-image.scss +57 -0
- data/stylesheets/bourbon/css3/_background-size.scss +11 -0
- data/stylesheets/bourbon/css3/_background.scss +107 -0
- data/stylesheets/bourbon/css3/_border-image.scss +56 -0
- data/stylesheets/bourbon/css3/_border-radius.scss +44 -0
- data/stylesheets/bourbon/css3/_box-shadow.scss +12 -0
- data/stylesheets/bourbon/css3/_box-sizing.scss +4 -0
- data/stylesheets/bourbon/css3/_columns.scss +47 -0
- data/stylesheets/bourbon/css3/_flex-box.scss +52 -0
- data/stylesheets/bourbon/css3/_inline-block.scss +8 -0
- data/stylesheets/bourbon/css3/_linear-gradient.scss +43 -0
- data/stylesheets/bourbon/css3/_prefixer.scss +12 -0
- data/stylesheets/bourbon/css3/_radial-gradient.scss +76 -0
- data/stylesheets/bourbon/css3/_transform.scss +11 -0
- data/stylesheets/bourbon/css3/_transition.scss +72 -0
- data/stylesheets/bourbon/css3/_user-select.scss +3 -0
- data/stylesheets/bourbon/functions/_deprecated-webkit-gradient.scss +44 -0
- data/stylesheets/bourbon/functions/_flex-grid.scss +35 -0
- data/stylesheets/bourbon/functions/_grid-width.scss +13 -0
- data/stylesheets/bourbon/functions/_linear-gradient.scss +23 -0
- data/stylesheets/bourbon/functions/_modular-scale.scss +40 -0
- data/stylesheets/bourbon/functions/_radial-gradient.scss +62 -0
- data/stylesheets/bourbon/functions/_render-gradients.scss +14 -0
- data/stylesheets/bourbon/functions/_tint-shade.scss +9 -0
- data/stylesheets/bourbon/functions/_transition-property-name.scss +22 -0
- data/stylesheets/bourbon/lib/bourbon.rb +19 -0
- data/stylesheets/bourbon/lib/bourbon/sass_extensions.rb +6 -0
- data/stylesheets/bourbon/lib/bourbon/sass_extensions/functions.rb +13 -0
- data/stylesheets/bourbon/lib/bourbon/sass_extensions/functions/compact.rb +14 -0
- metadata +118 -0
data/readme.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#Stipe Compass Extension
|
2
|
+
Stipe is the life blood of the Toadstool style guide framework. Consisting of a series of mixins, extends and defaults that give Toadstool that 'instant on' experience.
|
3
|
+
|
4
|
+
[Stipe](https://rubygems.org/gems/stipe)
|
5
|
+
|
6
|
+
##To install
|
7
|
+
`gem install stipe`
|
8
|
+
|
9
|
+
##To use
|
10
|
+
To use the Stipe gem, using Bundler `gem 'stipe'`
|
11
|
+
|
12
|
+
Stipe is a Compass Extension, so Compass is set as a depdency. You will need to include `require 'stipe'` in your config.rb file.
|
13
|
+
|
14
|
+
##Sass / Compass
|
15
|
+
**(BLEEDING EDGE ALERT)** Toadstool is using ``3.2.0.alpha.*``
|
16
|
+
For [reasons explained](/Anotheruiguy/toadstool/blob/master/doc-src/exploited-bug.md) please continue using the alpha gem and upgrading to Sass 3.2 will break Toadstool and Stipe.
|
17
|
+
|
18
|
+
# Stipe Changelog
|
19
|
+
|
20
|
+
## 0.0.2.8/0.0.2.9
|
21
|
+
* Updated Toadstool Sass to use better named spaced class for main content block.
|
22
|
+
** Changed .main_content to .toadstool_main_contnet
|
23
|
+
|
24
|
+
## 0.0.2.7
|
25
|
+
* Sass and UI work related to default form views
|
26
|
+
|
27
|
+
## 0.0.2.6
|
28
|
+
* Created color views in Toadstool
|
29
|
+
* Created remaining semantic color variables silent classes
|
30
|
+
* Updated Toadstool `_design / _ui_manifest.scss`
|
31
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// Custom Functions
|
2
|
+
@import "functions/deprecated-webkit-gradient";
|
3
|
+
@import "functions/flex-grid";
|
4
|
+
@import "functions/grid-width";
|
5
|
+
@import "functions/linear-gradient";
|
6
|
+
@import "functions/modular-scale";
|
7
|
+
@import "functions/radial-gradient";
|
8
|
+
@import "functions/render-gradients";
|
9
|
+
@import "functions/tint-shade";
|
10
|
+
@import "functions/transition-property-name";
|
11
|
+
|
12
|
+
// CSS3 Mixins
|
13
|
+
@import "css3/animation";
|
14
|
+
@import "css3/appearance";
|
15
|
+
@import "css3/background";
|
16
|
+
@import "css3/background-image";
|
17
|
+
@import "css3/background-size";
|
18
|
+
@import "css3/border-image";
|
19
|
+
@import "css3/border-radius";
|
20
|
+
@import "css3/box-shadow";
|
21
|
+
@import "css3/box-sizing";
|
22
|
+
@import "css3/columns";
|
23
|
+
@import "css3/flex-box";
|
24
|
+
@import "css3/inline-block";
|
25
|
+
@import "css3/linear-gradient";
|
26
|
+
@import "css3/prefixer";
|
27
|
+
@import "css3/radial-gradient";
|
28
|
+
@import "css3/transform";
|
29
|
+
@import "css3/transition";
|
30
|
+
@import "css3/user-select";
|
31
|
+
|
32
|
+
// Addons & other mixins
|
33
|
+
@import "addons/button";
|
34
|
+
@import "addons/clearfix";
|
35
|
+
@import "addons/font-face";
|
36
|
+
@import "addons/font-family";
|
37
|
+
@import "addons/hide-text";
|
38
|
+
@import "addons/html5-input-types";
|
39
|
+
@import "addons/position";
|
40
|
+
@import "addons/timing-functions";
|
@@ -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
|
+
@include border-radius (3px);
|
68
|
+
@include 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
|
+
-webkit-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
|
+
@include 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
|
+
@include 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
|
+
@include border-radius(5px);
|
140
|
+
@include 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
|
+
@include 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
|
+
@include border-radius(16px);
|
211
|
+
@include 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
|
+
-webkit-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
|
+
@include 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
|
+
-webkit-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
|
+
@include 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,12 @@
|
|
1
|
+
@mixin font-face($font-family, $file-path, $weight: normal, $style: normal ) {
|
2
|
+
@font-face {
|
3
|
+
font-family: $font-family;
|
4
|
+
src: url('#{$file-path}.eot');
|
5
|
+
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
|
6
|
+
url('#{$file-path}.woff') format('woff'),
|
7
|
+
url('#{$file-path}.ttf') format('truetype'),
|
8
|
+
url('#{$file-path}.svg##{$font-family}') format('svg');
|
9
|
+
font-weight: $weight;
|
10
|
+
font-style: $style;
|
11
|
+
}
|
12
|
+
}
|
@@ -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,15 @@
|
|
1
|
+
@mixin hide-text {
|
2
|
+
background-color: transparent;
|
3
|
+
border: 0;
|
4
|
+
color: transparent;
|
5
|
+
font: 0/0 a;
|
6
|
+
text-shadow: none;
|
7
|
+
}
|
8
|
+
|
9
|
+
// A CSS image replacement method that does not require the use of text-indent.
|
10
|
+
//
|
11
|
+
// Examples
|
12
|
+
//
|
13
|
+
// .ir {
|
14
|
+
// @include hide-text;
|
15
|
+
// }
|
@@ -0,0 +1,36 @@
|
|
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
|
+
|
25
|
+
@each $input-type in $inputs-list {
|
26
|
+
$unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
|
27
|
+
}
|
28
|
+
|
29
|
+
$all-text-inputs: $unquoted-inputs-list;
|
30
|
+
|
31
|
+
// You must use interpolation on the variable:
|
32
|
+
// #{$all-text-inputs}
|
33
|
+
//************************************************************************//
|
34
|
+
// #{$all-text-inputs}, textarea {
|
35
|
+
// border: 1px solid red;
|
36
|
+
// }
|