english_tea 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +37 -0
  6. data/Rakefile +10 -0
  7. data/app/assets/stylesheets/english_tea/all.scss +154 -0
  8. data/app/assets/stylesheets/english_tea/border/_index.scss +77 -0
  9. data/app/assets/stylesheets/english_tea/buttons/_index.scss +44 -0
  10. data/app/assets/stylesheets/english_tea/color/_border.scss +32 -0
  11. data/app/assets/stylesheets/english_tea/color/_buttons.scss +182 -0
  12. data/app/assets/stylesheets/english_tea/color/_index.scss +57 -0
  13. data/app/assets/stylesheets/english_tea/color/_jobs.scss +46 -0
  14. data/app/assets/stylesheets/english_tea/color/_social.scss +21 -0
  15. data/app/assets/stylesheets/english_tea/color/_status.scss +25 -0
  16. data/app/assets/stylesheets/english_tea/dimension/_margin.scss +196 -0
  17. data/app/assets/stylesheets/english_tea/dimension/_padding.scss +166 -0
  18. data/app/assets/stylesheets/english_tea/dimension/_position.scss +80 -0
  19. data/app/assets/stylesheets/english_tea/forms/_autocomplete.scss +67 -0
  20. data/app/assets/stylesheets/english_tea/forms/_choices.scss +204 -0
  21. data/app/assets/stylesheets/english_tea/forms/_datepicker.scss +142 -0
  22. data/app/assets/stylesheets/english_tea/forms/_index.scss +246 -0
  23. data/app/assets/stylesheets/english_tea/forms/_media.scss +61 -0
  24. data/app/assets/stylesheets/english_tea/forms/_numeric.scss +47 -0
  25. data/app/assets/stylesheets/english_tea/forms/_range.scss +124 -0
  26. data/app/assets/stylesheets/english_tea/forms/_select.scss +398 -0
  27. data/app/assets/stylesheets/english_tea/forms/_text.scss +51 -0
  28. data/app/assets/stylesheets/english_tea/forms/_uploader.scss +51 -0
  29. data/app/assets/stylesheets/english_tea/layout/_alignment.scss +89 -0
  30. data/app/assets/stylesheets/english_tea/layout/_clearfix.scss +15 -0
  31. data/app/assets/stylesheets/english_tea/layout/_display.scss +93 -0
  32. data/app/assets/stylesheets/english_tea/layout/_flex.scss +266 -0
  33. data/app/assets/stylesheets/english_tea/layout/_float.scss +33 -0
  34. data/app/assets/stylesheets/english_tea/layout/_grid.scss +210 -0
  35. data/app/assets/stylesheets/english_tea/layout/_layers.scss +11 -0
  36. data/app/assets/stylesheets/english_tea/layout/_position.scss +36 -0
  37. data/app/assets/stylesheets/english_tea/layout/_sizing.scss +264 -0
  38. data/app/assets/stylesheets/english_tea/layout/_visibility.scss +121 -0
  39. data/app/assets/stylesheets/english_tea/marketing/_double_login.scss +10 -0
  40. data/app/assets/stylesheets/english_tea/marketing/_index.scss +1350 -0
  41. data/app/assets/stylesheets/english_tea/media/_icons.scss +61 -0
  42. data/app/assets/stylesheets/english_tea/modules/_avatars.scss +40 -0
  43. data/app/assets/stylesheets/english_tea/modules/_billing.scss +60 -0
  44. data/app/assets/stylesheets/english_tea/modules/_box-shadow.scss +11 -0
  45. data/app/assets/stylesheets/english_tea/modules/_bubbles.scss +36 -0
  46. data/app/assets/stylesheets/english_tea/modules/_celebrate.scss +27 -0
  47. data/app/assets/stylesheets/english_tea/modules/_cursors.scss +51 -0
  48. data/app/assets/stylesheets/english_tea/modules/_fadein.scss +38 -0
  49. data/app/assets/stylesheets/english_tea/modules/_index.scss +224 -0
  50. data/app/assets/stylesheets/english_tea/modules/_job_posts.scss +303 -0
  51. data/app/assets/stylesheets/english_tea/modules/_listings.scss +32 -0
  52. data/app/assets/stylesheets/english_tea/modules/_menu.scss +57 -0
  53. data/app/assets/stylesheets/english_tea/modules/_modal.scss +37 -0
  54. data/app/assets/stylesheets/english_tea/modules/_navigation.scss +94 -0
  55. data/app/assets/stylesheets/english_tea/modules/_notification.scss +8 -0
  56. data/app/assets/stylesheets/english_tea/modules/_notifications_stream.scss +18 -0
  57. data/app/assets/stylesheets/english_tea/modules/_overlay.scss +49 -0
  58. data/app/assets/stylesheets/english_tea/modules/_profile.scss +239 -0
  59. data/app/assets/stylesheets/english_tea/modules/_projects.scss +55 -0
  60. data/app/assets/stylesheets/english_tea/modules/_stickybanner.scss +46 -0
  61. data/app/assets/stylesheets/english_tea/modules/_tabs.scss +14 -0
  62. data/app/assets/stylesheets/english_tea/modules/_tiles.scss +401 -0
  63. data/app/assets/stylesheets/english_tea/modules/_tooltips.scss +53 -0
  64. data/app/assets/stylesheets/english_tea/setup/_config.scss +515 -0
  65. data/app/assets/stylesheets/english_tea/setup/_default.scss +286 -0
  66. data/app/assets/stylesheets/english_tea/setup/_functions.scss +110 -0
  67. data/app/assets/stylesheets/english_tea/setup/_mixins.scss +258 -0
  68. data/app/assets/stylesheets/english_tea/setup/_normalize.scss +427 -0
  69. data/app/assets/stylesheets/english_tea/transition/_index.scss +97 -0
  70. data/app/assets/stylesheets/english_tea/typography/_fonts.scss +41 -0
  71. data/app/assets/stylesheets/english_tea/typography/_hierarchy.scss +40 -0
  72. data/app/assets/stylesheets/english_tea/typography/_style.scss +126 -0
  73. data/bin/console +14 -0
  74. data/bin/setup +8 -0
  75. data/english_tea.gemspec +28 -0
  76. data/lib/english_tea/rails/engine.rb +6 -0
  77. data/lib/english_tea/version.rb +3 -0
  78. data/lib/english_tea.rb +5 -0
  79. data/vendor/assets/stylesheets/snapper.scss +83 -0
  80. metadata +179 -0
@@ -0,0 +1,401 @@
1
+ // ==========================================================================
2
+ // Gridded tiles module
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // TILE-SPECIFIC MIXINS
7
+ // ---
8
+
9
+ @mixin _size-tiles($tile-layout)
10
+ {
11
+ @each $key, $val in $tiles-scale
12
+ {
13
+ $_gutter: map-get($val, gutter);
14
+ $_tiles: map-get($val, #{$tile-layout});
15
+
16
+ @include _mq(map-get($breakpoints, map-get($val, bp)))
17
+ {
18
+ @if $_tiles == 1
19
+ {
20
+ max-width: 100%;
21
+ }
22
+ @else
23
+ {
24
+ max-width: calc((100% - #{_rem($_gutter * ($_tiles - 1))}) / #{$_tiles});
25
+ }
26
+ }
27
+ }
28
+ }
29
+
30
+ // ---
31
+ // BASE TILES CONTAINER STYLING
32
+ // ---
33
+
34
+ .tiles
35
+ {
36
+ opacity: 0;
37
+ @include transition(opacity $transition-timing-base $transition-easing-base);
38
+ }
39
+
40
+ .tiles-loaded
41
+ {
42
+ opacity: 1;
43
+ }
44
+
45
+ // ---
46
+ // BASE TILE STYLING
47
+ // ---
48
+
49
+ .tile
50
+ {
51
+ //@include _will-change(); // Stop dat flickering
52
+
53
+ // Vertical gutters
54
+ margin-bottom: _rem($base-gutter);
55
+ @include transition(box-shadow $transition-timing-base $transition-easing-base);
56
+
57
+ @include _mq(map-get($breakpoints, bps))
58
+ {
59
+ margin-bottom: _rem($base-gutter-large);
60
+ }
61
+
62
+ &:hover
63
+ {
64
+ @include _box-shadow(2);
65
+ }
66
+
67
+ // Note: Uses intrinsic ratio set via inline style
68
+ .tile-thumbnail
69
+ {
70
+ // Tinted color overlay
71
+ &:before
72
+ {
73
+ background-color: map-get($colors, 4); // For Contenders
74
+ content: '';
75
+ display: block;
76
+ mix-blend-mode: multiply;
77
+ z-index: 1;
78
+ }
79
+
80
+ // Tinted color overlay background status color
81
+ // Note: Contenders don't get tint color
82
+ @each $key, $val in $colors-status
83
+ {
84
+ &.tint-#{$key}:before
85
+ {
86
+ background-color: map-get($val, 2);
87
+ }
88
+ }
89
+
90
+ &:hover
91
+ {
92
+ opacity: 1;
93
+ }
94
+
95
+ .tile-thumbnail-asset
96
+ {
97
+ opacity: 1;
98
+ @include transition(all $transition-timing-base $transition-easing-base);
99
+ }
100
+ }
101
+
102
+ // Place the color & status overlays on top of the thumbnail
103
+ .tile-thumbnail:before,
104
+ .tile-status
105
+ {
106
+ height: 100%;
107
+ left: 0;
108
+ opacity: 0;
109
+ position: absolute;
110
+ top: 0;
111
+ @include transition(opacity $transition-timing-base $transition-easing-base);
112
+ width: 100%;
113
+ }
114
+
115
+ &:active .tile-thumbnail-asset,
116
+ &:focus .tile-thumbnail-asset,
117
+ &:hover .tile-thumbnail-asset
118
+ {
119
+ opacity: map-get($opacity-scale, 5);
120
+ @include prefixer(filter, grayscale(100%), webkit spec);
121
+ }
122
+
123
+ &:active .tile-thumbnail:before,
124
+ &:active .tile-status,
125
+ &:focus .tile-thumbnail:before,
126
+ &:focus .tile-status,
127
+ &:hover .tile-thumbnail:before,
128
+ &:hover .tile-status
129
+ {
130
+ opacity: 1;
131
+ }
132
+
133
+ // Available soon date & contender indicator badges
134
+ .tile-badge
135
+ {
136
+ @include transition(all $transition-timing-base $transition-easing-base);
137
+ }
138
+
139
+ &:active .tile-badge,
140
+ &:focus .tile-badge,
141
+ &:hover .tile-badge
142
+ {
143
+ opacity: 0;
144
+ visibility: hidden;
145
+ }
146
+
147
+ // Don't show these elements for base layout
148
+ .tile-avatar,
149
+ .tile-info,
150
+ .tile-rate,
151
+ .tile-contender,
152
+ .tile-hygiene
153
+ {
154
+ display: none;
155
+ }
156
+
157
+ // Prep the more button for being shown on hover
158
+ .tile-more
159
+ {
160
+ opacity: 0;
161
+ @include transition(all $transition-timing-base $transition-easing-base);
162
+ visibility: hidden;
163
+ }
164
+
165
+ // Prep the standalone MB icon for being hidden on hover
166
+ .tile-mb
167
+ {
168
+ opacity: 1;
169
+ @include transition(all $transition-timing-base $transition-easing-base);
170
+ visibility: visible;
171
+ }
172
+
173
+ @include _mq(map-get($breakpoints, bpm))
174
+ {
175
+ // Show hygiene element on larger screens
176
+ .tile-hygiene
177
+ {
178
+ @include display(flex);
179
+ }
180
+
181
+ // Swap MB and more elements on hover on larger screens
182
+ &:active,
183
+ &:focus,
184
+ &:hover
185
+ {
186
+ .tile-more
187
+ {
188
+ opacity: 1;
189
+ visibility: visible;
190
+ }
191
+
192
+ .tile-mb
193
+ {
194
+ opacity: 0;
195
+ visibility: hidden;
196
+ }
197
+ }
198
+ }
199
+
200
+ // For touch devices, always show the more button (on larger screens
201
+ // as parent element tile-hygiene hidden on smallest screens)
202
+ .touchevents &
203
+ {
204
+ .tile-more
205
+ {
206
+ display: block;
207
+ opacity: 1;
208
+ visibility: visible;
209
+ }
210
+ }
211
+ }
212
+
213
+ // ---
214
+ // MASONRY ELEM SIZING
215
+ // ---
216
+
217
+ // Default tile sizing
218
+ .tile,
219
+ .tile-sizer
220
+ {
221
+ width: 100%;
222
+ }
223
+
224
+ // Set gutter sizes depending on breakpoint
225
+ .tile-gutter-sizer
226
+ {
227
+ width: _rem($base-gutter);
228
+
229
+ @include _mq(map-get($breakpoints, bps))
230
+ {
231
+ width: _rem($base-gutter-large);
232
+ }
233
+ }
234
+
235
+ // ---
236
+ // BASE MASONRY LAYOUT
237
+ // ---
238
+
239
+ // Only apply to base layouts
240
+ .tiles-grid
241
+ {
242
+ // Set base layout tile sizes across breakpoints
243
+ .tile,
244
+ .tile-sizer
245
+ {
246
+ .section:not(.section-full) &
247
+ {
248
+ @include _size-tiles(tiles);
249
+ }
250
+
251
+ .section-full &
252
+ {
253
+ @include _size-tiles(tiles-full);
254
+ }
255
+ }
256
+ }
257
+
258
+ // ---
259
+ // LARGE MASONRY LAYOUT
260
+ // ---
261
+
262
+ .tiles-grid-large
263
+ {
264
+ // Set alt layout tile sizes across breakpoints
265
+ .tile,
266
+ .tile-sizer
267
+ {
268
+ @include _size-tiles(tiles-alt);
269
+ }
270
+
271
+ // Set alt layout tile styling
272
+ .tile
273
+ {
274
+ // View miniprofile hint "button"
275
+ .tile-status-hint
276
+ {
277
+ bottom: _rem($base-rhythm * 2) !important;
278
+
279
+ > .tile-status-hint-text
280
+ {
281
+ border: $border-width $border-style map-get($colors, 1);
282
+ }
283
+ }
284
+
285
+ .tile-caption
286
+ {
287
+ padding-top: _rem($base-gutter) !important;
288
+ padding-bottom: _rem($base-gutter) !important;
289
+ }
290
+
291
+ @include _mq(map-get($breakpoints, bpm))
292
+ {
293
+ .tile-title-heading
294
+ {
295
+ $_type: map-get($type-scale, 2);
296
+
297
+ font-size: _rem(map-get($_type, size)) !important;
298
+ line-height: _rem($base-rhythm *2) !important;
299
+ }
300
+ }
301
+
302
+ .tile-avatar
303
+ {
304
+ display: block;
305
+ }
306
+
307
+ // Always show hygiene element for this layout
308
+ .tile-hygiene
309
+ {
310
+ @include display(flex);
311
+ }
312
+
313
+ // Never show the standalone MB element for this layout
314
+ .tile-mb
315
+ {
316
+ display: none;
317
+ }
318
+ }
319
+ }
320
+
321
+ // ---
322
+ // LIST MASONRY LAYOUT
323
+ // ---
324
+
325
+ .tiles-grid-list
326
+ {
327
+ // Set list layout tile styling
328
+ .tile
329
+ {
330
+ margin-bottom: _rem($base-gutter);
331
+ @include transition(border-color $transition-timing-base $transition-easing-base);
332
+
333
+ .tile-thumbnail
334
+ {
335
+ display: none !important;
336
+ }
337
+
338
+ .tile-caption
339
+ {
340
+ padding-top: _rem($base-gutter) !important;
341
+ padding-bottom: _rem($base-gutter) !important;
342
+ }
343
+
344
+ .tile-avatar
345
+ {
346
+ display: block;
347
+ }
348
+
349
+ .tile-avatar-asset
350
+ {
351
+ height: _rem($base-rhythm * 7) !important;
352
+ width: _rem($base-rhythm * 7) !important;
353
+ }
354
+
355
+ .tile-title
356
+ {
357
+ width: 25%;
358
+
359
+ @include _mq(map-get($breakpoints, bpm))
360
+ {
361
+ .tile-title-heading
362
+ {
363
+ $_type: map-get($type-scale, 2);
364
+
365
+ font-size: _rem(map-get($_type, size)) !important;
366
+ line-height: _rem($base-rhythm *2) !important;
367
+ }
368
+ }
369
+ }
370
+
371
+ .tile-info
372
+ {
373
+ @include _mq(map-get($breakpoints, bpm))
374
+ {
375
+ display: block;
376
+ width: 40%;
377
+ }
378
+ }
379
+
380
+ .tile-rate,
381
+ .tile-contender
382
+ {
383
+ @include _mq(map-get($breakpoints, bps))
384
+ {
385
+ display: block;
386
+ }
387
+ }
388
+
389
+ // Show hygiene element for this layout
390
+ .tile-hygiene
391
+ {
392
+ @include display(flex);
393
+ }
394
+
395
+ // Don't show MB element for this layout
396
+ .tile-mb
397
+ {
398
+ display: none;
399
+ }
400
+ }
401
+ }
@@ -0,0 +1,53 @@
1
+ // ==========================================================================
2
+ // Pattern for a tooltip container and the tooltip itself
3
+ // ==========================================================================
4
+
5
+ .has-tooltip
6
+ {
7
+ cursor: help;
8
+ position: relative;
9
+
10
+ .tooltip
11
+ {
12
+ bottom: 100%;
13
+ display: none;
14
+ right: 50%;
15
+ padding-bottom: _rem($base-rhythm);
16
+ position: absolute;
17
+ @include transform(translate3d(50%, 0, 0));
18
+ z-index: map-get($layer-scale, 4);
19
+ }
20
+
21
+ .tooltip-content
22
+ {
23
+ background-color: map-get($colors, 10);
24
+ @include _box-shadow(2);
25
+ color: map-get($colors, 1);
26
+ position: relative;
27
+
28
+ &:after
29
+ {
30
+ border-top: _rem($base-rhythm) solid map-get($colors, 10);
31
+ border-right: _rem($base-rhythm) solid transparent;
32
+ border-left: _rem($base-rhythm) solid transparent;
33
+ content: '';
34
+ display: block;
35
+ height: 0;
36
+ left: 50%;
37
+ position: absolute;
38
+ top: 100%;
39
+ @include transform(translate3d(-50%, 0, 0));
40
+ width: 0;
41
+ }
42
+ }
43
+
44
+ &:active,
45
+ &:focus,
46
+ &:hover
47
+ {
48
+ .tooltip
49
+ {
50
+ display: block;
51
+ }
52
+ }
53
+ }