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,124 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Shorthand input range styling classes
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
.field-range
|
6
|
+
{
|
7
|
+
&-input
|
8
|
+
{
|
9
|
+
@include appearance(none);
|
10
|
+
|
11
|
+
vertical-align: middle;
|
12
|
+
width: 100%;
|
13
|
+
|
14
|
+
@include _pseudo-prefix(track, ('webkit-slider-runnable', 'moz-range', 'ms'))
|
15
|
+
{
|
16
|
+
@include appearance(none);
|
17
|
+
|
18
|
+
background: map-get($colors, 10);
|
19
|
+
border: none;
|
20
|
+
height: 2px;
|
21
|
+
vertical-align: middle;
|
22
|
+
width: 100%;
|
23
|
+
}
|
24
|
+
|
25
|
+
@include _pseudo-prefix(thumb, ('webkit-slider', 'moz-range', 'ms'))
|
26
|
+
{
|
27
|
+
@include appearance(none);
|
28
|
+
|
29
|
+
background: map-get($colors, 10);
|
30
|
+
border: none;
|
31
|
+
border-radius: 100%;
|
32
|
+
cursor: move;
|
33
|
+
height: _rem($base-rhythm * 2);
|
34
|
+
margin-top: _rem(-$base-rhythm);
|
35
|
+
@include transition(box-shadow $transition-timing-base $transition-easing-base);
|
36
|
+
width: _rem($base-rhythm * 2);
|
37
|
+
|
38
|
+
&:active,
|
39
|
+
&:focus
|
40
|
+
{
|
41
|
+
@include _box-shadow(2);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&-output
|
47
|
+
{
|
48
|
+
top: _rem(-($base-rhythm * 2.5));
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
// Alternative single slider control
|
53
|
+
.weighted-selector
|
54
|
+
{
|
55
|
+
// &-status
|
56
|
+
// {
|
57
|
+
// text-align: center;
|
58
|
+
|
59
|
+
// &:first-child
|
60
|
+
// {
|
61
|
+
// text-align: left;
|
62
|
+
// }
|
63
|
+
|
64
|
+
// &:last-child,
|
65
|
+
|
66
|
+
// {
|
67
|
+
// text-align: right;
|
68
|
+
// }
|
69
|
+
// }
|
70
|
+
|
71
|
+
.noUi-target,
|
72
|
+
.noUi-target *
|
73
|
+
{
|
74
|
+
@include prefixer(touch-action, base, webkit moz ms);
|
75
|
+
@include prefixer(user-select, none, moz ms);
|
76
|
+
}
|
77
|
+
|
78
|
+
.noUi-horizontal
|
79
|
+
{
|
80
|
+
height: 2px;
|
81
|
+
}
|
82
|
+
|
83
|
+
.noUi-background
|
84
|
+
{
|
85
|
+
background-color: map-get($colors, 3);
|
86
|
+
}
|
87
|
+
|
88
|
+
.noUi-base
|
89
|
+
{
|
90
|
+
height: 100%;
|
91
|
+
position: relative;
|
92
|
+
width: 100%;
|
93
|
+
z-index: 1;
|
94
|
+
}
|
95
|
+
|
96
|
+
.noUi-origin
|
97
|
+
{
|
98
|
+
bottom: 0;
|
99
|
+
left: 0;
|
100
|
+
position: absolute;
|
101
|
+
right: 0;
|
102
|
+
top: 0;
|
103
|
+
}
|
104
|
+
|
105
|
+
// @each $index in (1, 2)
|
106
|
+
// {
|
107
|
+
// .noUi-origin:nth-child(#{$index})
|
108
|
+
// {
|
109
|
+
// background-color: map-get($colors-weight, $index + 1);
|
110
|
+
// }
|
111
|
+
// }
|
112
|
+
|
113
|
+
.noUi-handle
|
114
|
+
{
|
115
|
+
background-color: map-get($colors, 10);
|
116
|
+
border-radius: 100%;
|
117
|
+
height: _rem($base-rhythm * 2);
|
118
|
+
cursor: default;
|
119
|
+
left: _rem(-$base-rhythm + 1px);
|
120
|
+
position: relative;
|
121
|
+
top: _rem(-$base-rhythm + 1px);
|
122
|
+
width: _rem($base-rhythm * 2);
|
123
|
+
}
|
124
|
+
}
|
@@ -0,0 +1,398 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Shorthand form select dropdown field styling classes
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
.field-select
|
6
|
+
{
|
7
|
+
@include prefixer(appearance, none, webkit moz);
|
8
|
+
|
9
|
+
background: map-get($colors, 1) url('data:image/svg+xml,#{$icon-caret}') no-repeat calc(100% - #{_rem($base-rhythm * 2)}) center;
|
10
|
+
background-size: _rem(map-get($icon-scale, large));
|
11
|
+
border-radius: 0;
|
12
|
+
color: map-get($colors, 10);
|
13
|
+
min-height: _rem($base-rhythm * 5); // Otherwise text gets clipped as line-height can be ignored
|
14
|
+
padding-right: _rem($base-rhythm * 5) !important;
|
15
|
+
position: relative;
|
16
|
+
|
17
|
+
&:focus
|
18
|
+
{
|
19
|
+
color: $color-text-base;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// Wrapper element for select2s that are within position fixed,
|
24
|
+
// overlaid or scrollable container elements. Prevents scroll-jumping
|
25
|
+
// that can occur when select2 dropdown is appended to body element.
|
26
|
+
.field-select2-container
|
27
|
+
{
|
28
|
+
position: relative;
|
29
|
+
}
|
30
|
+
|
31
|
+
// ---
|
32
|
+
// SELECT2 POWERED DROPDOWN LISTS
|
33
|
+
// These are custom versions of the built-in Select2 styles
|
34
|
+
// ---
|
35
|
+
|
36
|
+
.select2-container--wnw
|
37
|
+
{
|
38
|
+
$_font: map-get($type-scale, 3);
|
39
|
+
$_font_bpm: map-get($type-scale, 2);
|
40
|
+
|
41
|
+
background-color: map-get($colors, 1);
|
42
|
+
border: $border-width $border-style $color-border-base;
|
43
|
+
color: $color-text-base;
|
44
|
+
display: block;
|
45
|
+
font-size: _rem(map-get($_font, size));
|
46
|
+
font-weight: normal;
|
47
|
+
line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
|
48
|
+
@include prefixer(outline, none, webkit moz spec);
|
49
|
+
position: relative;
|
50
|
+
vertical-align: middle;
|
51
|
+
|
52
|
+
@include _mq(map-get($breakpoints, bpm))
|
53
|
+
{
|
54
|
+
font-size: _rem(map-get($_font_bpm, size));
|
55
|
+
line-height: _decimal-ceil(map-get($_font_bpm, line-height) / map-get($_font_bpm, size), 3);
|
56
|
+
}
|
57
|
+
|
58
|
+
.selection
|
59
|
+
{
|
60
|
+
@include prefixer(outline, none, webkit moz spec);
|
61
|
+
}
|
62
|
+
|
63
|
+
// ---
|
64
|
+
// SINGLE/MULTIPLE ITEM DROPDOWN LISTS
|
65
|
+
// ---
|
66
|
+
|
67
|
+
.select2-selection--single,
|
68
|
+
.select2-selection--multiple
|
69
|
+
{
|
70
|
+
cursor: pointer;
|
71
|
+
@include display(flex);
|
72
|
+
@include align-items(center);
|
73
|
+
@include justify-content(space-between !important);
|
74
|
+
padding: _rem($base-gutter);
|
75
|
+
@include prefixer(outline, none, webkit moz spec);
|
76
|
+
@include prefixer(user-select, none, webkit moz spec);
|
77
|
+
|
78
|
+
@include _mq(map-get($breakpoints, bpm))
|
79
|
+
{
|
80
|
+
padding-right: _rem($base-rhythm * 2);
|
81
|
+
padding-left: _rem($base-rhythm * 2);
|
82
|
+
}
|
83
|
+
|
84
|
+
.select2-selection__rendered,
|
85
|
+
.select2-selection__choice
|
86
|
+
{
|
87
|
+
@include display(flex);
|
88
|
+
@include align-items(center !important);
|
89
|
+
overflow: hidden;
|
90
|
+
text-overflow: ellipsis;
|
91
|
+
white-space: nowrap;
|
92
|
+
}
|
93
|
+
|
94
|
+
&.select2-selection--multiple .select2-selection__rendered
|
95
|
+
{
|
96
|
+
@include flex-wrap(wrap !important);
|
97
|
+
}
|
98
|
+
|
99
|
+
.select2-selection__placeholder
|
100
|
+
{
|
101
|
+
color: map-get($colors, 3);
|
102
|
+
}
|
103
|
+
|
104
|
+
.select2-selection__clear,
|
105
|
+
.select2-selection__choice__remove
|
106
|
+
{
|
107
|
+
$_icon-size: map-get($icon-scale, base);
|
108
|
+
|
109
|
+
background: transparent url('data:image/svg+xml,#{$icon-delete}') no-repeat center center;
|
110
|
+
background-size: _rem($_icon-size);
|
111
|
+
display: block;
|
112
|
+
@include flex-shrink(0 !important);
|
113
|
+
height: _rem($_icon-size);
|
114
|
+
margin-right: $base-rhythm-half;
|
115
|
+
text-indent: -999em; // ¯\_(ツ)_/¯
|
116
|
+
width: _rem($_icon-size);
|
117
|
+
@include transition(opacity $transition-timing-border $transition-easing-border);
|
118
|
+
|
119
|
+
&:active,
|
120
|
+
&:focus,
|
121
|
+
&:hover
|
122
|
+
{
|
123
|
+
opacity: map-get($opacity-scale, 4);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.select2-selection__choice
|
128
|
+
{
|
129
|
+
margin-right: _rem($base-gutter);
|
130
|
+
}
|
131
|
+
|
132
|
+
// ---
|
133
|
+
// INLINE SEARCH FOR MULTIPLE
|
134
|
+
// ---
|
135
|
+
|
136
|
+
.select2-search--inline
|
137
|
+
{
|
138
|
+
display: block;
|
139
|
+
|
140
|
+
.select2-search__field
|
141
|
+
{
|
142
|
+
$_font: map-get($type-scale, 3);
|
143
|
+
$_font_bpm: map-get($type-scale, 2);
|
144
|
+
|
145
|
+
border: none;
|
146
|
+
box-sizing: border-box;
|
147
|
+
font-size: _rem(map-get($_font, size));
|
148
|
+
line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
|
149
|
+
|
150
|
+
@include _mq(map-get($breakpoints, bpm))
|
151
|
+
{
|
152
|
+
font-size: _rem(map-get($_font_bpm, size));
|
153
|
+
line-height: _decimal-ceil(map-get($_font_bpm, line-height) / map-get($_font_bpm, size), 3);
|
154
|
+
}
|
155
|
+
|
156
|
+
@include _placeholder-prefix()
|
157
|
+
{
|
158
|
+
color: map-get($colors, 3);
|
159
|
+
}
|
160
|
+
|
161
|
+
&::-webkit-search-cancel-button
|
162
|
+
{
|
163
|
+
@include prefixer(appearance, none, webkit moz);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
&:first-child
|
168
|
+
{
|
169
|
+
.select2-search__field
|
170
|
+
{
|
171
|
+
width: auto !important; // Not sure why select2 gives this a (tiny) inline fixed width?
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
// ---
|
177
|
+
// UP/DOWN ARROW
|
178
|
+
// ---
|
179
|
+
|
180
|
+
.select2-selection__arrow
|
181
|
+
{
|
182
|
+
@include display(flex);
|
183
|
+
padding-left: _rem($base-gutter-large);
|
184
|
+
|
185
|
+
b
|
186
|
+
{
|
187
|
+
border-color: $color-text-base transparent transparent transparent;
|
188
|
+
border-style: solid;
|
189
|
+
border-width: _rem($base-rhythm-half) _rem($base-rhythm-half) 0 _rem($base-rhythm-half);
|
190
|
+
height: 0;
|
191
|
+
width: 0;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
// ---
|
197
|
+
// DROPDOWN
|
198
|
+
// ---
|
199
|
+
|
200
|
+
.select2-dropdown
|
201
|
+
{
|
202
|
+
$_font: map-get($type-scale, 1);
|
203
|
+
|
204
|
+
background-color: map-get($colors, 1);
|
205
|
+
border: $border-width $border-style $color-border-base;
|
206
|
+
border-bottom: none;
|
207
|
+
@include _box-shadow(2);
|
208
|
+
display: block;
|
209
|
+
font-size: _rem(map-get($_font, size));
|
210
|
+
line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
|
211
|
+
position: absolute;
|
212
|
+
left: -999em;
|
213
|
+
width: 100%;
|
214
|
+
z-index: 2051; //map-get($layer-scale, 4);
|
215
|
+
|
216
|
+
&.select2-dropdown--below
|
217
|
+
{
|
218
|
+
border-top: none;
|
219
|
+
}
|
220
|
+
|
221
|
+
// ---
|
222
|
+
// SEARCH WITHIN DROPDOWN
|
223
|
+
// ---
|
224
|
+
|
225
|
+
.select2-search--dropdown
|
226
|
+
{
|
227
|
+
display: block;
|
228
|
+
}
|
229
|
+
|
230
|
+
.select2-search--dropdown .select2-search__field
|
231
|
+
{
|
232
|
+
$_font: map-get($type-scale, 3);
|
233
|
+
$_font_bpm: map-get($type-scale, 1);
|
234
|
+
|
235
|
+
border: none;
|
236
|
+
border-bottom: $border-width $border-style $color-border-base;
|
237
|
+
box-sizing: border-box;
|
238
|
+
font-size: _rem(map-get($_font, size));
|
239
|
+
line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
|
240
|
+
padding: _rem($base-gutter) _rem($base-rhythm * 2);
|
241
|
+
width: 100%;
|
242
|
+
|
243
|
+
@include _mq(map-get($breakpoints, bpm))
|
244
|
+
{
|
245
|
+
font-size: _rem(map-get($_font_bpm, size));
|
246
|
+
line-height: #{map-get($_font_bpm, line-height) / map-get($_font_bpm, size)};
|
247
|
+
}
|
248
|
+
|
249
|
+
&::-webkit-search-cancel-button
|
250
|
+
{
|
251
|
+
@include prefixer(appearance, none, webkit moz);
|
252
|
+
}
|
253
|
+
}
|
254
|
+
|
255
|
+
.select2-search--dropdown.select2-search--hide
|
256
|
+
{
|
257
|
+
display: none;
|
258
|
+
}
|
259
|
+
|
260
|
+
// ---
|
261
|
+
// DROPDOWN OPTIONS
|
262
|
+
// ---
|
263
|
+
|
264
|
+
.select2-results
|
265
|
+
{
|
266
|
+
color: map-get($colors, 6);
|
267
|
+
display: block;
|
268
|
+
}
|
269
|
+
|
270
|
+
.select2-results__group + .select2-results__options
|
271
|
+
{
|
272
|
+
margin-top: _rem($base-gutter);
|
273
|
+
|
274
|
+
.select2-results__option {
|
275
|
+
border-bottom: none;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
.select2-results__options
|
280
|
+
{
|
281
|
+
max-height: _rem(275px);
|
282
|
+
overflow-y: scroll;
|
283
|
+
}
|
284
|
+
|
285
|
+
.select2-results__option
|
286
|
+
{
|
287
|
+
border-bottom: $border-width $border-style $color-border-base;
|
288
|
+
display: block;
|
289
|
+
padding: _rem($base-gutter) _rem($base-rhythm * 2);
|
290
|
+
@include prefixer(user-select, none, webkit moz spec);
|
291
|
+
|
292
|
+
// Make sure we use hand pointer cursor
|
293
|
+
&[aria-selected]
|
294
|
+
{
|
295
|
+
cursor: pointer;
|
296
|
+
}
|
297
|
+
|
298
|
+
// Selected item should be shaded darker
|
299
|
+
// And make sure we use default arrow cursor
|
300
|
+
&[aria-selected="true"]
|
301
|
+
{
|
302
|
+
background-color: map-get($colors, 2);
|
303
|
+
cursor: default;
|
304
|
+
}
|
305
|
+
|
306
|
+
// Disabled items get darkest color
|
307
|
+
&[aria-disabled]
|
308
|
+
{
|
309
|
+
color: map-get($colors, 3);
|
310
|
+
}
|
311
|
+
|
312
|
+
// Items not select get shaded on hover etc
|
313
|
+
&[aria-selected="false"].select2-results__option--highlighted:active,
|
314
|
+
&[aria-selected="false"].select2-results__option--highlighted:focus,
|
315
|
+
&[aria-selected="false"].select2-results__option--highlighted:hover
|
316
|
+
{
|
317
|
+
background-color: $color-fill-shade;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
.select2-results__message
|
322
|
+
{
|
323
|
+
color: $color-text-base;
|
324
|
+
font-weight: $type-weight-medium;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
// ---
|
329
|
+
// WHEN DROPDOWN IS OPEN
|
330
|
+
// ---
|
331
|
+
|
332
|
+
&.select2-container--open
|
333
|
+
{
|
334
|
+
// Upend arrow icon
|
335
|
+
.select2-selection__arrow b
|
336
|
+
{
|
337
|
+
border-color: transparent transparent $color-text-base transparent;
|
338
|
+
border-width: 0 _rem($base-rhythm-half) _rem($base-rhythm-half) _rem($base-rhythm-half);
|
339
|
+
}
|
340
|
+
|
341
|
+
// Move dropdown into view
|
342
|
+
.select2-dropdown
|
343
|
+
{
|
344
|
+
left: 0;
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
// ---
|
349
|
+
// WHEN CONTROL IS DISABLED
|
350
|
+
// ---
|
351
|
+
|
352
|
+
&.select2-container--disabled
|
353
|
+
{
|
354
|
+
color: map-get($colors, 5);
|
355
|
+
cursor: default;
|
356
|
+
|
357
|
+
.select2-selection__clear
|
358
|
+
{
|
359
|
+
display: none;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
// ---
|
365
|
+
// SELECT2 UTILITY CLASSES
|
366
|
+
// ---
|
367
|
+
|
368
|
+
.select2-close-mask
|
369
|
+
{
|
370
|
+
border: 0;
|
371
|
+
margin: 0;
|
372
|
+
padding: 0;
|
373
|
+
display: block;
|
374
|
+
position: fixed;
|
375
|
+
left: 0;
|
376
|
+
top: 0;
|
377
|
+
min-height: 100%;
|
378
|
+
min-width: 100%;
|
379
|
+
height: auto;
|
380
|
+
width: auto;
|
381
|
+
opacity: 0;
|
382
|
+
z-index: 299;//map-get($layer-scale, 4);
|
383
|
+
background-color: $color-fill-base;
|
384
|
+
filter: alpha(opacity=0);
|
385
|
+
}
|
386
|
+
|
387
|
+
// Hides actual <select> element
|
388
|
+
.select2-hidden-accessible
|
389
|
+
{
|
390
|
+
border: 0 !important;
|
391
|
+
clip: rect(0 0 0 0) !important;
|
392
|
+
height: 1px !important;
|
393
|
+
margin: -1px !important;
|
394
|
+
overflow: hidden !important;
|
395
|
+
padding: 0 !important;
|
396
|
+
position: absolute !important;
|
397
|
+
width: 1px !important;
|
398
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Shorthand form text field styling classes
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
// ---
|
6
|
+
// TEXT FIELDS
|
7
|
+
// ---
|
8
|
+
|
9
|
+
.field-text
|
10
|
+
{
|
11
|
+
width: 100%;
|
12
|
+
|
13
|
+
&.minimal
|
14
|
+
{
|
15
|
+
background-clip: padding-box;
|
16
|
+
background-color: transparent;
|
17
|
+
border-width: 2px;
|
18
|
+
border-top: none;
|
19
|
+
border-right: none;
|
20
|
+
border-left: none;
|
21
|
+
padding-right: 0 !important;
|
22
|
+
padding-left: 0 !important;
|
23
|
+
|
24
|
+
@include _placeholder-prefix()
|
25
|
+
{
|
26
|
+
color: map-get($colors, 6);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
&.error {
|
31
|
+
border-color: #ef4d4d !important;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.field-jumbo-text
|
36
|
+
{
|
37
|
+
$_font: map-get($type-scale, 7);
|
38
|
+
|
39
|
+
border-bottom: 1px solid map-get($colors, 10);
|
40
|
+
color: $color-text-base;
|
41
|
+
font-size: _rem(map-get($_font, size));
|
42
|
+
line-height: _rem(map-get($_font, line-height));
|
43
|
+
padding: _rem($base-rhythm * 2) 0 !important;
|
44
|
+
|
45
|
+
> input[type="text"]
|
46
|
+
{
|
47
|
+
border: none;
|
48
|
+
letter-spacing: -0.025em;
|
49
|
+
vertical-align: middle;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Shorthand file uploader control styling classes
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
.upload-item
|
6
|
+
{
|
7
|
+
.upload-delete
|
8
|
+
{
|
9
|
+
display: none;
|
10
|
+
}
|
11
|
+
|
12
|
+
.upload-item-thumbnail
|
13
|
+
{
|
14
|
+
height: 0;
|
15
|
+
padding-bottom: 100%;
|
16
|
+
|
17
|
+
&:after
|
18
|
+
{
|
19
|
+
$icon-size: map-get($icon-scale, enormous);
|
20
|
+
|
21
|
+
@include _pseudo-elem(_rem($icon-size * 2), _rem($icon-size * 2));
|
22
|
+
|
23
|
+
background: transparent url('data:image/svg+xml,#{$icon-upload}') no-repeat center center;
|
24
|
+
opacity: 0.125;
|
25
|
+
}
|
26
|
+
|
27
|
+
&.has-media
|
28
|
+
{
|
29
|
+
&:after
|
30
|
+
{
|
31
|
+
display: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
&:active,
|
35
|
+
&:focus,
|
36
|
+
&:hover
|
37
|
+
{
|
38
|
+
.upload-delete
|
39
|
+
{
|
40
|
+
display: block;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.upload-item-media
|
47
|
+
{
|
48
|
+
min-height: 100%;
|
49
|
+
width: 100%;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Element alignment classes
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
.left
|
6
|
+
{
|
7
|
+
text-align: left !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.right
|
11
|
+
{
|
12
|
+
text-align: right !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
.center
|
16
|
+
{
|
17
|
+
text-align: center !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
@include _bp-prefixer-basic
|
21
|
+
{
|
22
|
+
&left
|
23
|
+
{
|
24
|
+
text-align: left !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
&right
|
28
|
+
{
|
29
|
+
text-align: right !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
¢er
|
33
|
+
{
|
34
|
+
text-align: center !important;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// ---
|
39
|
+
// VERTICAL
|
40
|
+
// ---
|
41
|
+
|
42
|
+
.v-top
|
43
|
+
{
|
44
|
+
vertical-align: top !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
.v-bottom
|
48
|
+
{
|
49
|
+
vertical-align: bottom !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
.v-middle
|
53
|
+
{
|
54
|
+
vertical-align: middle !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
.v-baseline
|
58
|
+
{
|
59
|
+
vertical-align: baseline !important;
|
60
|
+
}
|
61
|
+
|
62
|
+
// ---
|
63
|
+
// FLEX HELPERS
|
64
|
+
// ---
|
65
|
+
|
66
|
+
.snap-top
|
67
|
+
{
|
68
|
+
@include align-self(flex-start !important);
|
69
|
+
}
|
70
|
+
|
71
|
+
.snap-center
|
72
|
+
{
|
73
|
+
@include align-self(center !important);
|
74
|
+
}
|
75
|
+
|
76
|
+
.snap-baseline
|
77
|
+
{
|
78
|
+
@include align-self(baseline !important);
|
79
|
+
}
|
80
|
+
|
81
|
+
.snap-stretch
|
82
|
+
{
|
83
|
+
@include align-self(stretch !important);
|
84
|
+
}
|
85
|
+
|
86
|
+
.snap-bottom
|
87
|
+
{
|
88
|
+
@include align-self(flex-end !important);
|
89
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// ==========================================================================
|
2
|
+
// Clearfix for non-overflow:hidden containers with floats
|
3
|
+
// ==========================================================================
|
4
|
+
|
5
|
+
.clearfix:before,
|
6
|
+
.clearfix:after
|
7
|
+
{
|
8
|
+
content: " ";
|
9
|
+
display: table;
|
10
|
+
}
|
11
|
+
|
12
|
+
.clearfix:after
|
13
|
+
{
|
14
|
+
clear: both;
|
15
|
+
}
|