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,303 @@
1
+ // ==========================================================================
2
+ // Job Post (UJB) patterns & modules
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // INLINE JOB POST
7
+ // Styling of contracted and expanded job posts
8
+ // on job posts index page
9
+ // ---
10
+
11
+ .job-post-inline
12
+ {
13
+ .job-post-headline
14
+ {
15
+ @include transition(all $transition-timing-button $transition-easing-button);
16
+
17
+ // Only transition the BG if signed in as nested anchors
18
+ // will be controlling text transitions
19
+ &.job-post-signed-in
20
+ {
21
+ @include transition(background-color $transition-timing-button $transition-easing-button);
22
+ }
23
+
24
+ &.shown,
25
+ &:active,
26
+ &:focus,
27
+ &:hover
28
+ {
29
+ color: rgba(map-get($colors, 1), 0.75) !important;
30
+
31
+ mark
32
+ {
33
+ color: map-get($colors, 1) !important;
34
+ font-weight: $type-weight-normal !important;
35
+ }
36
+
37
+ .job-post-favorite
38
+ {
39
+ border-color: transparent !important;
40
+ color: inherit !important;
41
+ }
42
+ }
43
+
44
+ &.shown:after
45
+ {
46
+ @include _box-shadow(3);
47
+ bottom: 0;
48
+ content: '';
49
+ display: block;
50
+ left: 0;
51
+ position: absolute;
52
+ right: 0;
53
+ top: 0;
54
+ z-index: 0;
55
+ }
56
+
57
+ @each $key, $val in $colors-job-types
58
+ {
59
+ &.job-post-type-#{$key}
60
+ {
61
+ &.shown,
62
+ &:active,
63
+ &:focus,
64
+ &:hover
65
+ {
66
+ background-color: map-get($val, 2) !important;
67
+ color: map-get($val, 1) !important;
68
+ }
69
+
70
+ mark
71
+ {
72
+ color: map-get($val, 2);
73
+ font-weight: $type-weight-normal !important;
74
+ }
75
+
76
+ .job-post-favorite
77
+ {
78
+ &:active,
79
+ &:focus,
80
+ &:hover
81
+ {
82
+ background-color: map-get($val, 3) !important;
83
+ }
84
+ }
85
+ }
86
+ }
87
+
88
+ // Counter the global link hover style as we don't need it here
89
+ &:hover,
90
+ a:hover
91
+ {
92
+ opacity: 1;
93
+ }
94
+ }
95
+ }
96
+
97
+ // ---
98
+ // JOB POST
99
+ // Basic standalone job post styling
100
+ // ---
101
+
102
+ .job-post
103
+ {
104
+ @include _box-shadow(6);
105
+
106
+ .job-post-headline
107
+ {
108
+ color: #4a78ff !important; // see above color notes
109
+
110
+ mark
111
+ {
112
+ color: map-get($colors, 1) !important;
113
+ font-weight: $type-weight-normal !important;
114
+ }
115
+
116
+ &.job-post-type-freelance
117
+ {
118
+ color: #ffccc7 !important; // see above color notes
119
+ }
120
+ }
121
+
122
+ }
123
+
124
+ // ---
125
+ // JOB POST HEADLINES
126
+ // Carousel styling for madlib-style carousel
127
+ // ---
128
+
129
+ .job-post-templates
130
+ {
131
+ // Main carousel item container base styling
132
+ .snapper_pane_crop
133
+ {
134
+ position: relative;
135
+ z-index: map-get($layer-scale, 2);
136
+ }
137
+
138
+ // Headline highlighted words base coloring and behavior
139
+ .marked
140
+ {
141
+ border-bottom: 1px solid map-get($colors, 2);
142
+ color: map-get($colors, 3);
143
+ font-weight: $type-weight-normal;
144
+
145
+ @include transition(all $transition-timing-text $transition-easing-text);
146
+
147
+ &:empty:before
148
+ {
149
+ content: attr(data-job-post-default);
150
+ }
151
+
152
+ &:empty:focus
153
+ {
154
+ color: transparent;
155
+ cursor: text;
156
+
157
+ @include transition(border-color $transition-timing-text $transition-easing-text);
158
+ }
159
+
160
+ &:not(:empty):active,
161
+ &:not(:empty):focus,
162
+ &:hover,
163
+ {
164
+ border-color: map-get(map-get($colors-job-types, fulltime), 2);
165
+ color: map-get(map-get($colors-job-types, fulltime), 2);
166
+ }
167
+ }
168
+
169
+ .snapper_nextprev
170
+ {
171
+ display: none;
172
+
173
+ @include _mq(map-get($breakpoints, bps))
174
+ {
175
+ display: block;
176
+ }
177
+ }
178
+
179
+ // Base prev/next styling
180
+ .snapper_nextprev_prev,
181
+ .snapper_nextprev_next
182
+ {
183
+ background: transparent url('data:image/svg+xml,#{$icon-prev}') no-repeat center center;
184
+ background-size: 125%;
185
+ display: block;
186
+ height: _rem($base-rhythm * 3);
187
+ text-indent: -999em;
188
+ width: _rem($base-rhythm * 3);
189
+ }
190
+
191
+ .snapper_nextprev_next
192
+ {
193
+ background-image: url('data:image/svg+xml,#{$icon-next}');
194
+ }
195
+
196
+ // Within prev/next wrapper container: for non-form pages
197
+ .snapper_nextprev_contain
198
+ {
199
+ > .snapper_nextprev
200
+ {
201
+ bottom: 0;
202
+ left: 0;
203
+ position: absolute;
204
+ right: 0;
205
+ z-index: 0;
206
+
207
+ @include _mq(map-get($breakpoints, bpl))
208
+ {
209
+ bottom: auto;
210
+ top: 50%;
211
+ @include transform(translate3d(0, -50%, 0));
212
+ }
213
+ }
214
+
215
+ .snapper_nextprev_prev,
216
+ .snapper_nextprev_next
217
+ {
218
+ bottom: _rem(-($base-rhythm * 5) - $base-rhythm-half);
219
+ height: _rem($base-rhythm * 4);
220
+ left: 0;
221
+ position: absolute;
222
+ width: _rem($base-rhythm * 4);
223
+
224
+ @include _mq(map-get($breakpoints, bpl))
225
+ {
226
+ bottom: auto;
227
+ left: _rem(-($base-rhythm * 8));
228
+ top: 50%;
229
+ @include transform(translate3d(0, -50%, 0));
230
+ }
231
+ }
232
+
233
+ .snapper_nextprev_next
234
+ {
235
+ left: auto;
236
+ right: 0;
237
+
238
+ @include _mq(map-get($breakpoints, bpl))
239
+ {
240
+ right: _rem(-($base-rhythm * 8));
241
+ }
242
+ }
243
+ }
244
+
245
+ // Dots navigation to move between items
246
+ .snapper_nav
247
+ {
248
+ label
249
+ {
250
+ height: _rem(7px);
251
+ width: _rem(7px);
252
+ }
253
+
254
+ > a:not(.snapper_nav_item-selected)
255
+ {
256
+ opacity: 0.125;
257
+ }
258
+ }
259
+
260
+ // Adjust styling for compact on form pages
261
+ &.job-post-templates-compact
262
+ {
263
+ .snapper
264
+ {
265
+ // overflow: hidden;
266
+
267
+ &:before,
268
+ &:after
269
+ {
270
+ content: none;
271
+ display: none;
272
+ }
273
+ }
274
+
275
+ .snapper_nextprev_item
276
+ {
277
+ display: inline-block;
278
+ }
279
+ }
280
+
281
+ // Adjust styling for fullsize on non-form pages
282
+ &.job-post-templates-fullsize
283
+ {
284
+ .snapper_pane_crop
285
+ {
286
+ @include _box-shadow(3);
287
+ }
288
+
289
+ .snapper_nav
290
+ {
291
+ label
292
+ {
293
+ height: _rem($base-rhythm);
294
+ width: _rem($base-rhythm);
295
+ }
296
+ }
297
+ }
298
+ }
299
+ // +/- 30px from vendor css still showing scrollbar in safari
300
+ .enhanced .job-post-templates .snapper_pane_crop .snapper_pane {
301
+ padding-bottom: 40px;
302
+ margin-bottom: -40px;
303
+ }
@@ -0,0 +1,32 @@
1
+ // ==========================================================================
2
+ // Listings module
3
+ // ==========================================================================
4
+
5
+ .listing
6
+ {
7
+
8
+ > a
9
+ {
10
+ @include transition(border-color $transition-timing-base $transition-easing-base);
11
+
12
+ &:active,
13
+ &:focus,
14
+ &:hover
15
+ {
16
+ border-color: map-get($colors, 10);
17
+ opacity: 1;
18
+
19
+ .listing-location,
20
+ .listing-updated
21
+ {
22
+ display: none;
23
+ }
24
+
25
+ .listing-experience,
26
+ .listing-ctas
27
+ {
28
+ display: block !important;
29
+ }
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,57 @@
1
+ // ==========================================================================
2
+ // Overlaid menus with dropdowns
3
+ // ==========================================================================
4
+
5
+ .menu
6
+ {
7
+ .menu-dropdown
8
+ {
9
+ @include _box-shadow(2);
10
+ display: none;
11
+ }
12
+ }
13
+
14
+ // Click-based menu dropdowns
15
+ .menu-open
16
+ {
17
+ > .menu-dropdown
18
+ {
19
+ display: block;
20
+ }
21
+
22
+ .has-subnav
23
+ {
24
+ &:active,
25
+ &:focus,
26
+ &:hover
27
+ {
28
+ .menu-dropdown
29
+ {
30
+ display: block;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ // Hover-based menu dropdowns
37
+ .menu-quicklook
38
+ {
39
+ &:active,
40
+ &:focus,
41
+ &:hover
42
+ {
43
+ .menu-dropdown-trigger
44
+ {
45
+ background-color: map-get($colors, 1) !important;
46
+ border-bottom-color: map-get($colors, 1) !important;
47
+ z-index: map-get($layer-scale, 5) !important;
48
+ }
49
+
50
+ .menu-dropdown
51
+ {
52
+ display: block;
53
+ top: calc(100% - 1px);
54
+ width: auto;
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,37 @@
1
+ // ==========================================================================
2
+ // Page modals, used for quick actions, confirmations, etc
3
+ // ==========================================================================
4
+
5
+ .modal
6
+ {
7
+ background-color: map-get($colors, 1);
8
+
9
+ @include _mq(map-get($breakpoints, bps))
10
+ {
11
+ background-color: rgba(map-get($colors, 10), 0.625);
12
+ }
13
+
14
+ .modal-content
15
+ {
16
+ @include _box-shadow(5);
17
+
18
+ @include _mq(map-get($breakpoints, bps))
19
+ {
20
+ max-width: _rem(650px);
21
+ }
22
+
23
+ @include _mq(map-get($breakpoints, bpm))
24
+ {
25
+ width: 45%;
26
+ }
27
+ }
28
+
29
+ @include _mq(map-get($breakpoints, bps))
30
+ {
31
+ .modal-scrollable
32
+ {
33
+ min-height: 50vh;
34
+ max-height: 65vh;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,94 @@
1
+ // ==========================================================================
2
+ // Navigation modules and patterns
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // GLOBAL SITE NAVIGATION
7
+ // For horizontally oriented navigation
8
+ // ---
9
+
10
+ .site-header
11
+ {
12
+ height: _rem($base-rhythm * 7);
13
+
14
+ .site-branding
15
+ {
16
+ width: 155px;
17
+ }
18
+
19
+ .site-navigation
20
+ {
21
+ li
22
+ {
23
+ position: relative;
24
+
25
+ &:after
26
+ {
27
+ border-top: 0 $border-style map-get($colors, 3);
28
+ bottom: 0;
29
+ content: '';
30
+ display: block;
31
+ font-size: 0;
32
+ height: 0;
33
+ left: 0;
34
+ line-height: 0;
35
+ position: absolute;
36
+ width: 100%;
37
+
38
+ opacity: 0;
39
+ @include transition(all $transition-timing-base $transition-easing-base);
40
+ }
41
+
42
+ &.active,
43
+ &:hover
44
+ {
45
+ &:after
46
+ {
47
+ border-top-width: _rem(3px);
48
+ opacity: 1;
49
+ }
50
+ }
51
+
52
+ &.active
53
+ {
54
+ &:after
55
+ {
56
+ border-color: map-get($colors, 10);
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ // ---
64
+ // SIDEBAR NAVIGATION LIST
65
+ // For vertically oriented navigation
66
+ // ---
67
+
68
+ .nav
69
+ {
70
+ .active
71
+ {
72
+ background-color: map-get($colors, 2);
73
+ padding-left: _rem($base-gutter);
74
+ position: relative;
75
+
76
+ @include _mq(map-get($breakpoints, bps))
77
+ {
78
+ margin-left: _rem(-$base-gutter-large);
79
+ padding-left: _rem($base-gutter-large);
80
+ }
81
+
82
+ &:after
83
+ {
84
+ border-left: 3px $border-style map-get($colors, 10);
85
+ content: '';
86
+ display: block;
87
+ height: 100%;
88
+ left: 0;
89
+ position: absolute;
90
+ top: 0;
91
+ width: 0;
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,8 @@
1
+ // ==========================================================================
2
+ // Page notifications, used to provide success/failure/info feedback
3
+ // ==========================================================================
4
+
5
+ .notification > ul
6
+ {
7
+ @include _box-shadow(5);
8
+ }
@@ -0,0 +1,18 @@
1
+ // ==========================================================================
2
+ // Notifications Stream patterns & modules
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // HERO & WINDOW SECTIONS
7
+ // Page hero section and cover image "peek-thru" window
8
+ // ---
9
+
10
+ .notifications-stream-hero
11
+ {
12
+ height: 50vmin;
13
+
14
+ @include _mq(map-get($breakpoints, bps))
15
+ {
16
+ height: 30vmin;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
1
+ // ==========================================================================
2
+ // Page overlay, used for mini-profiles etc
3
+ // ==========================================================================
4
+
5
+ .overlay
6
+ {
7
+ // TODO: Is there a better way of managing this?
8
+ $_overlay-gutter: _rem($base-rhythm * 7);
9
+
10
+ .stick-top
11
+ {
12
+ position: fixed;
13
+
14
+ top: 0;
15
+ right: $_overlay-gutter;
16
+ bottom: auto;
17
+ left: auto;
18
+ }
19
+
20
+ .stick-bottom
21
+ {
22
+ position: fixed;
23
+
24
+ top: auto;
25
+ right: $_overlay-gutter;
26
+ bottom: 0;
27
+ left: auto;
28
+ }
29
+
30
+ .anchor-top
31
+ {
32
+ position: absolute;
33
+
34
+ top: 0;
35
+ right: 0;
36
+ bottom: auto;
37
+ left: auto;
38
+ }
39
+
40
+ .anchor-bottom
41
+ {
42
+ position: absolute;
43
+
44
+ top: auto;
45
+ right: 0;
46
+ bottom: 0;
47
+ left: auto;
48
+ }
49
+ }