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,239 @@
1
+ // ==========================================================================
2
+ // Profiles & Mini Profile patterns & modules
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // MINI PROFILES
7
+ // Housed within overlay
8
+ // ---
9
+
10
+ .profile-mini
11
+ {
12
+ $info-width: 380px;
13
+
14
+ .profile-mini-projects
15
+ {
16
+ @include _will-change;
17
+
18
+ width: calc(100% - #{_rem($info-width)});
19
+ }
20
+
21
+ .profile-mini-info
22
+ {
23
+ width: 100%;
24
+
25
+ @include _mq(map-get($breakpoints, bpm))
26
+ {
27
+ width: _rem($info-width);
28
+ }
29
+ }
30
+ }
31
+
32
+ // ---
33
+ // FULL PROFILES
34
+ // Own-page, full user profile pages
35
+ // ---
36
+
37
+ // ---
38
+ // HERO & WINDOW SECTIONS
39
+ // Page hero section and cover image "peek-thru" window
40
+ // ---
41
+
42
+ .profile-hero
43
+ {
44
+ // Ensure a new stacking context is created so that any
45
+ // `position: fixed` child elem is relative to this elem
46
+ @include _will-change();
47
+
48
+ height: 50vmin;
49
+
50
+ @include _mq(map-get($breakpoints, bps))
51
+ {
52
+ height: 60vmin;
53
+ }
54
+ }
55
+
56
+ // ---
57
+ // TOOLBOX SECTION
58
+ // Includes sticky toolbox "navbar"
59
+ // ---
60
+
61
+ .profile-toolbox-navbar
62
+ {
63
+ @include display(flex);
64
+ @include flex-wrap(wrap);
65
+ @include justify-content(center);
66
+
67
+ @include _mq(map-get($breakpoints, bps))
68
+ {
69
+ @include flex-wrap(nowrap);
70
+ }
71
+
72
+ @include _mq(map-get($breakpoints, bpm))
73
+ {
74
+ @include justify-content(flex-end);
75
+ }
76
+
77
+ > li
78
+ {
79
+ @include flex-grow(1);
80
+ @include flex-shrink(0);
81
+
82
+ @include _mq(map-get($breakpoints, bps))
83
+ {
84
+ @include flex-grow(0);
85
+ }
86
+
87
+ &.profile-toolbox-info
88
+ {
89
+ @include flex-grow(1);
90
+ }
91
+
92
+ &.profile-toolbox-message
93
+ {
94
+ @include order(-1);
95
+
96
+ @include _mq(map-get($breakpoints, bps))
97
+ {
98
+ @include order(0);
99
+ }
100
+ }
101
+ }
102
+
103
+ // Increase normal large avatar by 1px to compensate for
104
+ // lack of top border & align with other toolbox item borders
105
+ .avatar-large
106
+ {
107
+ $avatar-size: _rem(($base-rhythm * 6) + 1px);
108
+
109
+ height: $avatar-size;
110
+ width: $avatar-size;
111
+ }
112
+ }
113
+
114
+ .profile-toolbox-avatar,
115
+ .profile-toolbox-info,
116
+ .profile-toolbox-rate
117
+ {
118
+ display: none;
119
+ }
120
+
121
+ .profile-toolbox.stick-top
122
+ {
123
+ .profile-toolbox-avatar
124
+ {
125
+ display: block;
126
+ }
127
+
128
+ .profile-toolbox-info
129
+ {
130
+ @include display(flex);
131
+ @include flex-direction(column);
132
+ @include justify-content(center);
133
+ }
134
+
135
+ @include _mq(map-get($breakpoints, bpm))
136
+ {
137
+ .profile-toolbox-rate
138
+ {
139
+ @include display(flex);
140
+ @include align-items(center);
141
+ }
142
+ }
143
+ }
144
+
145
+ // ---
146
+ // PROFILE SIDEBAR LAYOUT
147
+ // Sidebar containing core user data
148
+ // ---
149
+
150
+ .profile-avatar
151
+ {
152
+ max-width: _rem($base-rhythm * 13);
153
+
154
+ @include _mq(map-get($breakpoints, bps))
155
+ {
156
+ max-width: 100%;
157
+ }
158
+ }
159
+
160
+ .profile-action-item
161
+ {
162
+ width: calc(50% - #{_rem($base-gutter / 2)});
163
+
164
+ @include _mq(map-get($breakpoints, bps))
165
+ {
166
+ width: 100%;
167
+ }
168
+ }
169
+
170
+ .profile-social-item
171
+ {
172
+ width: percentage(1 / 6);
173
+
174
+ @include _mq(map-get($breakpoints, bps))
175
+ {
176
+ width: percentage(1 / 4);
177
+ }
178
+ }
179
+
180
+ // ---
181
+ // STATUS UPDATING
182
+ // Styling for the pikaday datepicker
183
+ // ---
184
+
185
+ .status-update
186
+ {
187
+ .status-update-choice
188
+ {
189
+ @include transition(color $transition-timing-text $transition-easing-text);
190
+
191
+ &:checked + .status-update-choice-label
192
+ {
193
+ display: none;
194
+ }
195
+ }
196
+
197
+ @each $key, $val in $colors-status
198
+ {
199
+ .status-update-current[data-status="#{$key}"]
200
+ {
201
+ color: map-get($val, 2);
202
+ }
203
+
204
+ // Hover states for items with `data-status` attributes
205
+ .status-update-choice-label[data-status="#{$key}"]
206
+ {
207
+ &:active,
208
+ &:focus,
209
+ &:hover
210
+ {
211
+ color: map-get($val, 2);
212
+ }
213
+ }
214
+ }
215
+
216
+ .status-update-date
217
+ {
218
+ $_datepicker-header-type: map-get($type-scale, 7);
219
+ $_datepicker-table-type: map-get($type-scale, 3);
220
+
221
+ .pika-title
222
+ {
223
+ .pika-label
224
+ {
225
+ font-size: #{_rem(map-get($_datepicker-header-type, size))};
226
+ line-height: #{_rem(map-get($_datepicker-header-type, line-height))};
227
+ }
228
+ }
229
+
230
+ .pika-table
231
+ {
232
+ td, th
233
+ {
234
+ font-size: #{_rem(map-get($_datepicker-table-type, size))};
235
+ line-height: #{_rem(map-get($_datepicker-table-type, line-height))};
236
+ }
237
+ }
238
+ }
239
+ }
@@ -0,0 +1,55 @@
1
+ // ==========================================================================
2
+ // Portfolios for Profiles and Mini Profiles
3
+ // ==========================================================================
4
+
5
+ .project,
6
+ .project-sizer
7
+ {
8
+ max-width: calc((100% - #{_rem($base-gutter)}) / 2);
9
+ width: 100%;
10
+
11
+ @include _mq(map-get($breakpoints, bps))
12
+ {
13
+ max-width: calc((100% - #{_rem($base-gutter-large)}) / 2);
14
+ }
15
+
16
+ .projects-fullsize &
17
+ {
18
+ @include _mq(map-get($breakpoints, bps))
19
+ {
20
+ max-width: calc((100% - #{_rem($base-gutter-large * 2)}) / 3);
21
+ }
22
+ }
23
+ }
24
+
25
+ .project
26
+ {
27
+ margin-bottom: _rem($base-gutter);
28
+
29
+ @include _mq(map-get($breakpoints, bps))
30
+ {
31
+ margin-bottom: _rem($base-gutter-large);
32
+ }
33
+
34
+ // Don't need global <a> opacity change on hover here
35
+ .project-action
36
+ {
37
+ &:active,
38
+ &:focus,
39
+ &:hover
40
+ {
41
+ opacity: 1;
42
+ }
43
+ }
44
+ }
45
+
46
+ // Set gutter sizes depending on breakpoint
47
+ .project-gutter-sizer
48
+ {
49
+ width: $base-gutter;
50
+
51
+ @include _mq(map-get($breakpoints, bps))
52
+ {
53
+ width: $base-gutter-large;
54
+ }
55
+ }
@@ -0,0 +1,46 @@
1
+ // ==========================================================================
2
+ // StickyBanner used on marketing homepage
3
+ // ==========================================================================
4
+
5
+ .stickybanner {
6
+ bottom: 100%;
7
+ left: 0;
8
+ width: 100%;
9
+ min-height: 40px;
10
+ transition: transform 500ms cubic-bezier(0.57, 0.07, 0.25, 0.98);
11
+ box-sizing: content-box;
12
+
13
+ .site-branding {
14
+ width: 155px;
15
+ margin-top: -7px;
16
+ }
17
+ }
18
+
19
+ .stickybanner--js {
20
+ position: fixed;
21
+ transform: translate3d(0, 0, 0);
22
+
23
+ &.stickybanner--open {
24
+ transform: translate3d(0, 100%, 0);
25
+ }
26
+ }
27
+
28
+ // Custom work for homepage specific stickybanner+tabs associations
29
+ .homepage-content .stickybanner--js {
30
+ &.stickybanner--open {
31
+ opacity: 0;
32
+ display: none !important;
33
+ }
34
+
35
+ &.stickybanner--open.-ontab {
36
+ opacity: 1;
37
+ display: flex !important;
38
+ }
39
+
40
+ a span { // shorten button so it doesn't wrap
41
+ display: none;
42
+ @media (min-width: 450px) {
43
+ display: inline;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,14 @@
1
+ // ==========================================================================
2
+ // Complex Tabs / Tabset & Tab Panels
3
+ // ==========================================================================
4
+
5
+ .tabSet--js {
6
+ .tabPanelWrap {
7
+ position: relative;
8
+ overflow: auto;
9
+ }
10
+ .tab,
11
+ .tabPanel {
12
+ transition: all 500ms cubic-bezier(0.57, 0.07, 0.25, 0.98);
13
+ }
14
+ }