english_tea 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +10 -0
- data/app/assets/stylesheets/english_tea/all.scss +154 -0
- data/app/assets/stylesheets/english_tea/border/_index.scss +77 -0
- data/app/assets/stylesheets/english_tea/buttons/_index.scss +44 -0
- data/app/assets/stylesheets/english_tea/color/_border.scss +32 -0
- data/app/assets/stylesheets/english_tea/color/_buttons.scss +182 -0
- data/app/assets/stylesheets/english_tea/color/_index.scss +57 -0
- data/app/assets/stylesheets/english_tea/color/_jobs.scss +46 -0
- data/app/assets/stylesheets/english_tea/color/_social.scss +21 -0
- data/app/assets/stylesheets/english_tea/color/_status.scss +25 -0
- data/app/assets/stylesheets/english_tea/dimension/_margin.scss +196 -0
- data/app/assets/stylesheets/english_tea/dimension/_padding.scss +166 -0
- data/app/assets/stylesheets/english_tea/dimension/_position.scss +80 -0
- data/app/assets/stylesheets/english_tea/forms/_autocomplete.scss +67 -0
- data/app/assets/stylesheets/english_tea/forms/_choices.scss +204 -0
- data/app/assets/stylesheets/english_tea/forms/_datepicker.scss +142 -0
- data/app/assets/stylesheets/english_tea/forms/_index.scss +246 -0
- data/app/assets/stylesheets/english_tea/forms/_media.scss +61 -0
- data/app/assets/stylesheets/english_tea/forms/_numeric.scss +47 -0
- data/app/assets/stylesheets/english_tea/forms/_range.scss +124 -0
- data/app/assets/stylesheets/english_tea/forms/_select.scss +398 -0
- data/app/assets/stylesheets/english_tea/forms/_text.scss +51 -0
- data/app/assets/stylesheets/english_tea/forms/_uploader.scss +51 -0
- data/app/assets/stylesheets/english_tea/layout/_alignment.scss +89 -0
- data/app/assets/stylesheets/english_tea/layout/_clearfix.scss +15 -0
- data/app/assets/stylesheets/english_tea/layout/_display.scss +93 -0
- data/app/assets/stylesheets/english_tea/layout/_flex.scss +266 -0
- data/app/assets/stylesheets/english_tea/layout/_float.scss +33 -0
- data/app/assets/stylesheets/english_tea/layout/_grid.scss +210 -0
- data/app/assets/stylesheets/english_tea/layout/_layers.scss +11 -0
- data/app/assets/stylesheets/english_tea/layout/_position.scss +36 -0
- data/app/assets/stylesheets/english_tea/layout/_sizing.scss +264 -0
- data/app/assets/stylesheets/english_tea/layout/_visibility.scss +121 -0
- data/app/assets/stylesheets/english_tea/marketing/_double_login.scss +10 -0
- data/app/assets/stylesheets/english_tea/marketing/_index.scss +1350 -0
- data/app/assets/stylesheets/english_tea/media/_icons.scss +61 -0
- data/app/assets/stylesheets/english_tea/modules/_avatars.scss +40 -0
- data/app/assets/stylesheets/english_tea/modules/_billing.scss +60 -0
- data/app/assets/stylesheets/english_tea/modules/_box-shadow.scss +11 -0
- data/app/assets/stylesheets/english_tea/modules/_bubbles.scss +36 -0
- data/app/assets/stylesheets/english_tea/modules/_celebrate.scss +27 -0
- data/app/assets/stylesheets/english_tea/modules/_cursors.scss +51 -0
- data/app/assets/stylesheets/english_tea/modules/_fadein.scss +38 -0
- data/app/assets/stylesheets/english_tea/modules/_index.scss +224 -0
- data/app/assets/stylesheets/english_tea/modules/_job_posts.scss +303 -0
- data/app/assets/stylesheets/english_tea/modules/_listings.scss +32 -0
- data/app/assets/stylesheets/english_tea/modules/_menu.scss +57 -0
- data/app/assets/stylesheets/english_tea/modules/_modal.scss +37 -0
- data/app/assets/stylesheets/english_tea/modules/_navigation.scss +94 -0
- data/app/assets/stylesheets/english_tea/modules/_notification.scss +8 -0
- data/app/assets/stylesheets/english_tea/modules/_notifications_stream.scss +18 -0
- data/app/assets/stylesheets/english_tea/modules/_overlay.scss +49 -0
- data/app/assets/stylesheets/english_tea/modules/_profile.scss +239 -0
- data/app/assets/stylesheets/english_tea/modules/_projects.scss +55 -0
- data/app/assets/stylesheets/english_tea/modules/_stickybanner.scss +46 -0
- data/app/assets/stylesheets/english_tea/modules/_tabs.scss +14 -0
- data/app/assets/stylesheets/english_tea/modules/_tiles.scss +401 -0
- data/app/assets/stylesheets/english_tea/modules/_tooltips.scss +53 -0
- data/app/assets/stylesheets/english_tea/setup/_config.scss +515 -0
- data/app/assets/stylesheets/english_tea/setup/_default.scss +286 -0
- data/app/assets/stylesheets/english_tea/setup/_functions.scss +110 -0
- data/app/assets/stylesheets/english_tea/setup/_mixins.scss +258 -0
- data/app/assets/stylesheets/english_tea/setup/_normalize.scss +427 -0
- data/app/assets/stylesheets/english_tea/transition/_index.scss +97 -0
- data/app/assets/stylesheets/english_tea/typography/_fonts.scss +41 -0
- data/app/assets/stylesheets/english_tea/typography/_hierarchy.scss +40 -0
- data/app/assets/stylesheets/english_tea/typography/_style.scss +126 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/english_tea.gemspec +28 -0
- data/lib/english_tea/rails/engine.rb +6 -0
- data/lib/english_tea/version.rb +3 -0
- data/lib/english_tea.rb +5 -0
- data/vendor/assets/stylesheets/snapper.scss +83 -0
- metadata +179 -0
@@ -0,0 +1,286 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Base styles: opinionated element defaults
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
*
|
6
|
+
{
|
7
|
+
box-sizing: border-box;
|
8
|
+
}
|
9
|
+
|
10
|
+
html,
|
11
|
+
body,
|
12
|
+
div,
|
13
|
+
span,
|
14
|
+
applet,
|
15
|
+
object,
|
16
|
+
iframe,
|
17
|
+
h1,
|
18
|
+
h2,
|
19
|
+
h3,
|
20
|
+
h4,
|
21
|
+
h5,
|
22
|
+
h6,
|
23
|
+
p,
|
24
|
+
blockquote,
|
25
|
+
pre,
|
26
|
+
a,
|
27
|
+
abbr,
|
28
|
+
acronym,
|
29
|
+
address,
|
30
|
+
big,
|
31
|
+
cite,
|
32
|
+
code,
|
33
|
+
del,
|
34
|
+
dfn,
|
35
|
+
em,
|
36
|
+
img,
|
37
|
+
ins,
|
38
|
+
kbd,
|
39
|
+
q,
|
40
|
+
s,
|
41
|
+
samp,
|
42
|
+
small,
|
43
|
+
strike,
|
44
|
+
strong,
|
45
|
+
sub,
|
46
|
+
sup,
|
47
|
+
tt,
|
48
|
+
var,
|
49
|
+
b,
|
50
|
+
u,
|
51
|
+
i,
|
52
|
+
center,
|
53
|
+
dl,
|
54
|
+
dt,
|
55
|
+
dd,
|
56
|
+
ol,
|
57
|
+
ul,
|
58
|
+
li,
|
59
|
+
fieldset,
|
60
|
+
form,
|
61
|
+
label,
|
62
|
+
legend,
|
63
|
+
table,
|
64
|
+
caption,
|
65
|
+
tbody,
|
66
|
+
tfoot,
|
67
|
+
thead,
|
68
|
+
tr,
|
69
|
+
th,
|
70
|
+
td,
|
71
|
+
article,
|
72
|
+
aside,
|
73
|
+
canvas,
|
74
|
+
details,
|
75
|
+
embed,
|
76
|
+
figure,
|
77
|
+
figcaption,
|
78
|
+
footer,
|
79
|
+
header,
|
80
|
+
hgroup,
|
81
|
+
menu,
|
82
|
+
nav,
|
83
|
+
output,
|
84
|
+
ruby,
|
85
|
+
section,
|
86
|
+
summary,
|
87
|
+
time,
|
88
|
+
mark,
|
89
|
+
audio,
|
90
|
+
video
|
91
|
+
{
|
92
|
+
font-family: inherit;
|
93
|
+
font-weight: inherit;
|
94
|
+
margin: 0;
|
95
|
+
padding: 0;
|
96
|
+
vertical-align: baseline;
|
97
|
+
}
|
98
|
+
|
99
|
+
body
|
100
|
+
{
|
101
|
+
font-size: _rem(map-get(map-get($type-scale, 3), size));
|
102
|
+
line-height: _rem(map-get(map-get($type-scale, 3), line-height));
|
103
|
+
}
|
104
|
+
|
105
|
+
// ---
|
106
|
+
// TEXTUAL ELEMENTS
|
107
|
+
// ---
|
108
|
+
|
109
|
+
p
|
110
|
+
{
|
111
|
+
font-size: inherit;
|
112
|
+
font-weight: inherit;
|
113
|
+
}
|
114
|
+
|
115
|
+
a
|
116
|
+
{
|
117
|
+
color: inherit;
|
118
|
+
text-decoration: none;
|
119
|
+
@include transition(all $transition-timing-text $transition-easing-text);
|
120
|
+
|
121
|
+
&:hover
|
122
|
+
{
|
123
|
+
opacity: 0.75;
|
124
|
+
}
|
125
|
+
|
126
|
+
&:focus
|
127
|
+
{
|
128
|
+
outline: none;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
b, strong,
|
133
|
+
i, em,
|
134
|
+
cite, mark,
|
135
|
+
small
|
136
|
+
{
|
137
|
+
font-size: inherit;
|
138
|
+
font-weight: inherit;
|
139
|
+
}
|
140
|
+
|
141
|
+
b,
|
142
|
+
strong
|
143
|
+
{
|
144
|
+
font-weight: $type-weight-medium;
|
145
|
+
}
|
146
|
+
|
147
|
+
i,
|
148
|
+
em
|
149
|
+
{
|
150
|
+
font-style: italic;
|
151
|
+
}
|
152
|
+
|
153
|
+
cite
|
154
|
+
{
|
155
|
+
font-style: normal;
|
156
|
+
}
|
157
|
+
|
158
|
+
mark
|
159
|
+
{
|
160
|
+
background-color: transparent;
|
161
|
+
color: inherit;
|
162
|
+
|
163
|
+
@include transition(all $transition-timing-text $transition-easing-text);
|
164
|
+
|
165
|
+
&:focus
|
166
|
+
{
|
167
|
+
outline: none;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
code,
|
172
|
+
pre
|
173
|
+
{
|
174
|
+
color: map-get(map-get($colors-status, stat-a), std);
|
175
|
+
font-family: $type-font-code;
|
176
|
+
font-weight: $type-weight-normal;
|
177
|
+
tab-size: 3;
|
178
|
+
}
|
179
|
+
|
180
|
+
ul,
|
181
|
+
ol
|
182
|
+
{
|
183
|
+
list-style: none;
|
184
|
+
}
|
185
|
+
|
186
|
+
hr
|
187
|
+
{
|
188
|
+
display: block;
|
189
|
+
height: 1px;
|
190
|
+
border: 0;
|
191
|
+
border-top: 1px solid #ccc;
|
192
|
+
margin: 1em 0;
|
193
|
+
padding: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
// ---
|
197
|
+
// MEDIA
|
198
|
+
// ---
|
199
|
+
|
200
|
+
audio,
|
201
|
+
canvas,
|
202
|
+
iframe,
|
203
|
+
img,
|
204
|
+
svg,
|
205
|
+
video
|
206
|
+
{
|
207
|
+
max-width: 100%;
|
208
|
+
vertical-align: middle;
|
209
|
+
}
|
210
|
+
|
211
|
+
// ---
|
212
|
+
// FORMS & CTAS
|
213
|
+
// ---
|
214
|
+
|
215
|
+
input,
|
216
|
+
select,
|
217
|
+
textarea,
|
218
|
+
[contenteditable]
|
219
|
+
{
|
220
|
+
&:focus
|
221
|
+
{
|
222
|
+
outline: none;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
button,
|
227
|
+
[type=submit],
|
228
|
+
[type=button]
|
229
|
+
{
|
230
|
+
border: none;
|
231
|
+
cursor: pointer;
|
232
|
+
display: inline-block;
|
233
|
+
padding: 0;
|
234
|
+
background-color: transparent;
|
235
|
+
background-image: none;
|
236
|
+
border: 0;
|
237
|
+
vertical-align: middle;
|
238
|
+
white-space: nowrap;
|
239
|
+
|
240
|
+
@include prefixer(appearance, none, webkit);
|
241
|
+
@include prefixer(user-select, none, webkit moz ms o spec);
|
242
|
+
|
243
|
+
&:focus
|
244
|
+
{
|
245
|
+
outline: none;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
fieldset
|
250
|
+
{
|
251
|
+
border: 0;
|
252
|
+
margin: 0;
|
253
|
+
min-width: 0;
|
254
|
+
padding: 0;
|
255
|
+
}
|
256
|
+
|
257
|
+
textarea
|
258
|
+
{
|
259
|
+
resize: vertical;
|
260
|
+
}
|
261
|
+
|
262
|
+
input[autocomplete="off"]::-webkit-contacts-auto-fill-button
|
263
|
+
{
|
264
|
+
visibility: hidden;
|
265
|
+
display: none !important;
|
266
|
+
pointer-events: none;
|
267
|
+
height: 0;
|
268
|
+
width: 0;
|
269
|
+
margin: 0;
|
270
|
+
}
|
271
|
+
|
272
|
+
// ---
|
273
|
+
// HIGHLIGHTED TEXT
|
274
|
+
// ---
|
275
|
+
|
276
|
+
::-moz-selection
|
277
|
+
{
|
278
|
+
background: map-get($colors, 2);
|
279
|
+
text-shadow: none;
|
280
|
+
}
|
281
|
+
|
282
|
+
::selection
|
283
|
+
{
|
284
|
+
background: map-get($colors, 2);
|
285
|
+
text-shadow: none;
|
286
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Global SASS function declarations
|
3
|
+
// ========================================================================== */
|
4
|
+
|
5
|
+
@function _rem($px, $base-px: $base-font-size)
|
6
|
+
{
|
7
|
+
@if $px == 0px
|
8
|
+
{
|
9
|
+
@return 0;
|
10
|
+
}
|
11
|
+
@else
|
12
|
+
{
|
13
|
+
@return #{$px / $base-px}rem;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
/// Map deep get
|
18
|
+
/// @author Hugo Giraudel
|
19
|
+
/// @access public
|
20
|
+
/// @param {Map} $map - Map
|
21
|
+
/// @param {Arglist} $keys - Key chain
|
22
|
+
/// @return {*} - Desired value
|
23
|
+
@function map-deep-get($map, $keys...)
|
24
|
+
{
|
25
|
+
@each $key in $keys
|
26
|
+
{
|
27
|
+
$map: map-get($map, $key);
|
28
|
+
}
|
29
|
+
|
30
|
+
@return $map;
|
31
|
+
}
|
32
|
+
|
33
|
+
// _decimal.scss | MIT License | gist.github.com/terkel/4373420
|
34
|
+
// Round a number to specified digits.
|
35
|
+
//
|
36
|
+
// @param {Number} $number A number to round
|
37
|
+
// @param {Number} [$digits:0] Digits to output
|
38
|
+
// @param {String} [$mode:round] (round|ceil|floor) How to round a number
|
39
|
+
// @return {Number} A rounded number
|
40
|
+
// @example
|
41
|
+
// decimal-round(0.333) => 0
|
42
|
+
// decimal-round(0.333, 1) => 0.3
|
43
|
+
// decimal-round(0.333, 2) => 0.33
|
44
|
+
// decimal-round(0.666) => 1
|
45
|
+
// decimal-round(0.666, 1) => 0.7
|
46
|
+
// decimal-round(0.666, 2) => 0.67
|
47
|
+
//
|
48
|
+
@function _decimal-round($number, $digits: 0, $mode: round) {
|
49
|
+
$n: 1;
|
50
|
+
// $number must be a number
|
51
|
+
@if type-of($number) != number {
|
52
|
+
@warn '#{ $number } is not a number.';
|
53
|
+
@return $number;
|
54
|
+
}
|
55
|
+
// $digits must be a unitless number
|
56
|
+
@if type-of($digits) != number {
|
57
|
+
@warn '#{ $digits } is not a number.';
|
58
|
+
@return $number;
|
59
|
+
} @else if not unitless($digits) {
|
60
|
+
@warn '#{ $digits } has a unit.';
|
61
|
+
@return $number;
|
62
|
+
}
|
63
|
+
@for $i from 1 through $digits {
|
64
|
+
$n: $n * 10;
|
65
|
+
}
|
66
|
+
@if $mode == round {
|
67
|
+
@return round($number * $n) / $n;
|
68
|
+
} @else if $mode == ceil {
|
69
|
+
@return ceil($number * $n) / $n;
|
70
|
+
} @else if $mode == floor {
|
71
|
+
@return floor($number * $n) / $n;
|
72
|
+
} @else {
|
73
|
+
@warn '#{ $mode } is undefined keyword.';
|
74
|
+
@return $number;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
// Ceil a number to specified digits.
|
79
|
+
//
|
80
|
+
// @param {Number} $number A number to round
|
81
|
+
// @param {Number} [$digits:0] Digits to output
|
82
|
+
// @return {Number} A ceiled number
|
83
|
+
// @example
|
84
|
+
// decimal-ceil(0.333) => 1
|
85
|
+
// decimal-ceil(0.333, 1) => 0.4
|
86
|
+
// decimal-ceil(0.333, 2) => 0.34
|
87
|
+
// decimal-ceil(0.666) => 1
|
88
|
+
// decimal-ceil(0.666, 1) => 0.7
|
89
|
+
// decimal-ceil(0.666, 2) => 0.67
|
90
|
+
//
|
91
|
+
@function _decimal-ceil($number, $digits: 0) {
|
92
|
+
@return _decimal-round($number, $digits, ceil);
|
93
|
+
}
|
94
|
+
|
95
|
+
// Floor a number to specified digits.
|
96
|
+
//
|
97
|
+
// @param {Number} $number A number to round
|
98
|
+
// @param {Number} [$digits:0] Digits to output
|
99
|
+
// @return {Number} A floored number
|
100
|
+
// @example
|
101
|
+
// decimal-floor(0.333) => 0
|
102
|
+
// decimal-floor(0.333, 1) => 0.3
|
103
|
+
// decimal-floor(0.333, 2) => 0.33
|
104
|
+
// decimal-floor(0.666) => 0
|
105
|
+
// decimal-floor(0.666, 1) => 0.6
|
106
|
+
// decimal-floor(0.666, 2) => 0.66
|
107
|
+
//
|
108
|
+
@function _decimal-floor($number, $digits: 0) {
|
109
|
+
@return _decimal-round($number, $digits, floor);
|
110
|
+
}
|
@@ -0,0 +1,258 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Global SASS mixin declarations
|
3
|
+
// ========================================================================== */
|
4
|
+
|
5
|
+
// ---
|
6
|
+
// MQ
|
7
|
+
// Media queries
|
8
|
+
// ---
|
9
|
+
|
10
|
+
@mixin _mq($point, $IE9: false, $query1: min, $query2: width)
|
11
|
+
{
|
12
|
+
@if $IE9 == true
|
13
|
+
{
|
14
|
+
.lt-ie9 &
|
15
|
+
{
|
16
|
+
@content;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@if $point == 0px
|
21
|
+
{
|
22
|
+
@content;
|
23
|
+
}
|
24
|
+
@else
|
25
|
+
{
|
26
|
+
@media (#{$query1}-#{$query2}: $point / $base-font-size + em)
|
27
|
+
{
|
28
|
+
@content;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// ---
|
34
|
+
// BREAKPOINT PREFIXER
|
35
|
+
// Prefix content with breakpoint ref and nest inside MQs
|
36
|
+
// ---
|
37
|
+
|
38
|
+
@mixin _bp-prefixer($class-suffix: null)
|
39
|
+
{
|
40
|
+
@each $bp-name, $bp-val in $breakpoints
|
41
|
+
{
|
42
|
+
@if $bp-name == none
|
43
|
+
{
|
44
|
+
.#{$class-suffix}
|
45
|
+
{
|
46
|
+
@content;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
@else
|
50
|
+
{
|
51
|
+
@include _mq($bp-val)
|
52
|
+
{
|
53
|
+
.#{$bp-name}-#{$class-suffix}
|
54
|
+
{
|
55
|
+
@content;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// ---
|
63
|
+
// BREAKPOINT PREFIXER
|
64
|
+
// Simply prefix content with breakpoint ref
|
65
|
+
// ---
|
66
|
+
|
67
|
+
@mixin _bp-prefixer-basic
|
68
|
+
{
|
69
|
+
@each $bp-name, $bp-val in $breakpoints
|
70
|
+
{
|
71
|
+
@if $bp-name != none
|
72
|
+
{
|
73
|
+
@include _mq($bp-val)
|
74
|
+
{
|
75
|
+
.#{$bp-name}-
|
76
|
+
{
|
77
|
+
@content;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// ---
|
85
|
+
// INTRINSIC RATIO
|
86
|
+
// Creates intrinsic ratio container for stretched inner element
|
87
|
+
// ---
|
88
|
+
|
89
|
+
@mixin _intrinsic-ratio
|
90
|
+
{
|
91
|
+
height: 0;
|
92
|
+
padding-bottom: 100%; // default
|
93
|
+
position: relative;
|
94
|
+
|
95
|
+
> *:first-child
|
96
|
+
{
|
97
|
+
display: block;
|
98
|
+
height: 100%;
|
99
|
+
left: 0;
|
100
|
+
position: absolute;
|
101
|
+
top: 0;
|
102
|
+
width: 100%;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// ---
|
107
|
+
// PSEUDO ELEM
|
108
|
+
// Basic pseudo element setup for position, dimensions, etc
|
109
|
+
// ---
|
110
|
+
|
111
|
+
@mixin _pseudo-elem($height, $width)
|
112
|
+
{
|
113
|
+
content: '';
|
114
|
+
display: block;
|
115
|
+
height: $height;
|
116
|
+
left: 50%;
|
117
|
+
position: absolute;
|
118
|
+
top: 50%;
|
119
|
+
@include transform(translate3d(-50%, -50%, 0));
|
120
|
+
width: $width;
|
121
|
+
}
|
122
|
+
|
123
|
+
// ---
|
124
|
+
// GENERIC PSEUDO PREFIXER
|
125
|
+
// Style input placeholder text w/prefixes
|
126
|
+
// ---
|
127
|
+
|
128
|
+
@mixin _pseudo-prefix($selector, $prefixes)
|
129
|
+
{
|
130
|
+
@each $prefix in $prefixes
|
131
|
+
{
|
132
|
+
::-#{$prefix}-#{$selector}
|
133
|
+
{
|
134
|
+
@content;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
// ---
|
140
|
+
// PLACEHOLDER PSEUDO PREFIXER
|
141
|
+
// Style input placeholder text w/prefixes
|
142
|
+
// Retain browser syntax ':' vs '::'
|
143
|
+
// ---
|
144
|
+
@mixin _placeholder-prefix()
|
145
|
+
{
|
146
|
+
&::-webkit-input-placeholder { /* Chrome */
|
147
|
+
@content;
|
148
|
+
}
|
149
|
+
&:-ms-input-placeholder { /* IE 10+ */
|
150
|
+
@content;
|
151
|
+
}
|
152
|
+
&::-moz-placeholder { /* Firefox 19+ */
|
153
|
+
@content;
|
154
|
+
opacity: 1;
|
155
|
+
}
|
156
|
+
&:-moz-placeholder { /* Firefox 4 - 18 */
|
157
|
+
@content;
|
158
|
+
opacity: 1;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
// ---
|
163
|
+
// WILL CHANGE
|
164
|
+
// Kick the GPU
|
165
|
+
// ---
|
166
|
+
|
167
|
+
@mixin _will-change
|
168
|
+
{
|
169
|
+
@include prefixer(backface-visibility, hidden, webkit moz ms o spec);
|
170
|
+
@include transform(translate3d(0, 0, 0));
|
171
|
+
}
|
172
|
+
|
173
|
+
// ---
|
174
|
+
// BOX SHADOW HELPER
|
175
|
+
// https://medium.com/@Florian/freebie-google-material-design-shadow-helper-2a0501295a2d
|
176
|
+
// ---
|
177
|
+
|
178
|
+
@mixin _box-shadow($level: 2)
|
179
|
+
{
|
180
|
+
@if ($level == 1)
|
181
|
+
{
|
182
|
+
box-shadow: 0 1px 3px -1px rgba(0,0,0,0.12), 0 1px 2px -1px rgba(0,0,0,0.24);
|
183
|
+
}
|
184
|
+
@else if ($level == 2)
|
185
|
+
{
|
186
|
+
box-shadow: 0 3px 6px -3px rgba(0,0,0,0.16), 0 3px 6px -3px rgba(0,0,0,0.23);
|
187
|
+
}
|
188
|
+
@else if ($level == 3)
|
189
|
+
{
|
190
|
+
box-shadow: 0 10px 20px -10px rgba(0,0,0,0.19), 0 6px 6px -6px rgba(0,0,0,0.23);
|
191
|
+
}
|
192
|
+
@else if ($level == 4)
|
193
|
+
{
|
194
|
+
box-shadow: 0 14px 28px -14px rgba(0,0,0,0.25), 0 10px 10px -10px rgba(0,0,0,0.22);
|
195
|
+
}
|
196
|
+
@else if ($level == 5)
|
197
|
+
{
|
198
|
+
box-shadow: 0 19px 38px -19px rgba(0,0,0,0.30), 0 15px 12px -15px rgba(0,0,0,0.22);
|
199
|
+
}
|
200
|
+
@else if ($level == 6)
|
201
|
+
{
|
202
|
+
box-shadow: 0 0 38px rgba(0,0,0,0.30), 0 15px 12px -15px rgba(0,0,0,0.22);
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
// Monkey Patched from bourbon to brute force allow for !important declarations
|
207
|
+
// CSS3 Flexible Box Model and property defaults
|
208
|
+
// Unified attributes for 2009, 2011, and 2012 flavours.
|
209
|
+
|
210
|
+
// 2009 - display (box | inline-box)
|
211
|
+
// 2011 - display (flexbox | inline-flexbox)
|
212
|
+
// 2012 - display (flex | inline-flex)
|
213
|
+
@mixin display($value) {
|
214
|
+
// flex | inline-flex
|
215
|
+
@if inspect($value) == "flex" {
|
216
|
+
// 2009
|
217
|
+
display: -webkit-box;
|
218
|
+
display: -moz-box;
|
219
|
+
display: box;
|
220
|
+
|
221
|
+
// 2012
|
222
|
+
display: -webkit-flex;
|
223
|
+
display: -moz-flex;
|
224
|
+
display: -ms-flexbox; // 2011 (IE 10)
|
225
|
+
display: flex;
|
226
|
+
} @else if inspect($value) == "flex !important" {
|
227
|
+
// 2009
|
228
|
+
display: -webkit-box !important;
|
229
|
+
display: -moz-box !important;
|
230
|
+
display: box !important;
|
231
|
+
|
232
|
+
// 2012
|
233
|
+
display: -webkit-flex !important;
|
234
|
+
display: -moz-flex !important;
|
235
|
+
display: -ms-flexbox !important; // 2011 (IE 10)
|
236
|
+
display: flex !important;
|
237
|
+
} @else if $value == "inline-flex" {
|
238
|
+
display: -webkit-inline-box;
|
239
|
+
display: -moz-inline-box;
|
240
|
+
display: inline-box;
|
241
|
+
|
242
|
+
display: -webkit-inline-flex;
|
243
|
+
display: -moz-inline-flex;
|
244
|
+
display: -ms-inline-flexbox;
|
245
|
+
display: inline-flex;
|
246
|
+
} @else if inspect($value) == "inline-flex !important" {
|
247
|
+
display: -webkit-inline-box !important;
|
248
|
+
display: -moz-inline-box !important;
|
249
|
+
display: inline-box !important;
|
250
|
+
|
251
|
+
display: -webkit-inline-flex !important;
|
252
|
+
display: -moz-inline-flex !important;
|
253
|
+
display: -ms-inline-flexbox !important;
|
254
|
+
display: inline-flex !important;
|
255
|
+
} @else {
|
256
|
+
display: $value;
|
257
|
+
}
|
258
|
+
}
|