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,204 @@
1
+ // ==========================================================================
2
+ // Shorthand choice field styling classes
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // CHOICE W/BUTTON
7
+ // ---
8
+
9
+ .btn-choice
10
+ {
11
+ background-color: map-get($colors, 2);
12
+ border: $border-width $border-style map-get($colors, 2);
13
+ color: map-get($colors, 4);
14
+
15
+ &:active,
16
+ &:focus,
17
+ &:hover
18
+ {
19
+ background-color: map-get($colors, 3);
20
+ border-color: map-get($colors, 3);
21
+ color: map-get($colors, 6);
22
+ }
23
+
24
+ input:checked + &,
25
+ input:checked + &:active,
26
+ input:checked + &:hover
27
+ {
28
+ background-color: map-get($colors, 10);
29
+ border-color: map-get($colors, 10);
30
+ color: map-get($colors, 1);
31
+ cursor: not-allowed;
32
+ }
33
+
34
+ // Show/hide 1..8 panels related to the choice buttons
35
+
36
+ ~ .pnl-choice
37
+ {
38
+ display: none;
39
+ }
40
+
41
+ @for $i from 1 through 8
42
+ {
43
+ input:nth-of-type(#{$i}):checked ~ & ~ .pnl-choice:nth-of-type(#{$i})
44
+ {
45
+ display: block;
46
+ }
47
+ }
48
+ }
49
+
50
+ // ---
51
+ // CHOICE W/LABEL + CHECKBOX
52
+ // ---
53
+
54
+ .lbl-choice
55
+ {
56
+ background-color: map-get($colors, 1);
57
+ border-color: map-get($colors, 10);
58
+ color: map-get($colors, 10);
59
+ @include display(inline-flex);
60
+ @include align-items(center);
61
+ position: relative;
62
+ @include prefixer(user-select, none, webkit moz ms spec);
63
+
64
+ &:before
65
+ {
66
+ background: transparent;
67
+ border: 2px solid;
68
+ border-color: inherit;
69
+ border-radius: $border-radius-rounded;
70
+ color: inherit;
71
+ content: '';
72
+ display: inline-block;
73
+ height: _rem($base-font-size);
74
+ left: 0;
75
+ position: absolute;
76
+ top: 0;
77
+ width: _rem($base-font-size);
78
+
79
+ input[type="radio"] + &
80
+ {
81
+ border-radius: $border-radius-circle;
82
+ }
83
+
84
+ input:checked + &
85
+ {
86
+ background-color: inherit;
87
+ content: url('data:image/svg+xml,#{$icon-check-simple}');
88
+ }
89
+ }
90
+
91
+ > *
92
+ {
93
+ background-color: map-get($colors, 1);
94
+ display: block;
95
+ @include flex-grow(1);
96
+ font-weight: $type-weight-normal;
97
+ padding-left: _rem($base-font-size + $base-gutter);
98
+ }
99
+ }
100
+
101
+ // ---
102
+ // CHOICE W/IMAGE
103
+ // ---
104
+
105
+ .img-choice
106
+ {
107
+ opacity: map-get($opacity-scale, 1);
108
+ @include transition(opacity $transition-timing-base $transition-easing-base);
109
+
110
+ input:checked + &
111
+ {
112
+ opacity: 1;
113
+ }
114
+
115
+ img {
116
+ pointer-events: none; // Avoid svg gobbling click events - same fix as .icon
117
+ }
118
+ }
119
+
120
+ // ---
121
+ // ON/OFF TOGGLES
122
+ // .btn-toggle used to style text-only button
123
+ // .toggle-on/off used to show hide icons
124
+ // data-toggle-on/off attribute values used to show text labels
125
+ // ---
126
+
127
+ .toggle
128
+ {
129
+ @include transition(all $transition-timing-button $transition-easing-button);
130
+
131
+ &.btn-toggle
132
+ {
133
+ background-color: map-get($colors, 10);
134
+ border: $border-width $border-style map-get($colors, 10);
135
+ color: map-get($colors, 1);
136
+
137
+ &:active,
138
+ &:focus,
139
+ &:hover
140
+ {
141
+ background-color: map-get($colors, 8);
142
+ border-color: map-get($colors, 8);
143
+ }
144
+ }
145
+
146
+ // Either add the toggled off text to the element
147
+ // or the direct child element
148
+ &[data-toggle-off],
149
+ > [data-toggle-off]
150
+ {
151
+ &:after
152
+ {
153
+ content: attr(data-toggle-off);
154
+ }
155
+ }
156
+
157
+ .toggle-off
158
+ {
159
+ display: block;
160
+ }
161
+
162
+ .toggle-on
163
+ {
164
+ display: none;
165
+ }
166
+
167
+ input:checked + &
168
+ {
169
+ &.btn-toggle
170
+ {
171
+ background-color: map-get($colors, 1);
172
+ border: $border-width $border-style map-get($colors, 10);
173
+ color: map-get($colors, 10);
174
+
175
+ &:active,
176
+ &:focus,
177
+ &:hover
178
+ {
179
+ background-color: map-get($colors, 2);
180
+ }
181
+ }
182
+
183
+ // Either add the toggled on text to the element
184
+ // or the direct child element
185
+ &[data-toggle-on],
186
+ > [data-toggle-on]
187
+ {
188
+ &:after
189
+ {
190
+ content: attr(data-toggle-on);
191
+ }
192
+ }
193
+
194
+ .toggle-off
195
+ {
196
+ display: none;
197
+ }
198
+
199
+ .toggle-on
200
+ {
201
+ display: block;
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,142 @@
1
+ // ==========================================================================
2
+ // Shorthand datepicker styling classes
3
+ // ==========================================================================
4
+
5
+ $datepicker-header-type: map-get($type-scale, 6);
6
+ $datepicker-table-type: map-get($type-scale, 1);
7
+
8
+ .pika-single
9
+ {
10
+ background-color: map-get($colors, 1);
11
+ color: map-get($colors, 10);
12
+ display: block;
13
+ position: relative;
14
+ z-index: map-get($layer-scale, 5);
15
+
16
+ &.is-hidden
17
+ {
18
+ display: none;
19
+ }
20
+
21
+ &.is-bound
22
+ {
23
+ position: absolute;
24
+ @include _box-shadow(2);
25
+ }
26
+
27
+ .is-disabled
28
+ {
29
+ > input[type="button"],
30
+ > input[type="submit"],
31
+ > button[type="button"]
32
+ {
33
+ cursor: default;
34
+ }
35
+ }
36
+ }
37
+
38
+ .pika-title
39
+ {
40
+ background-color: map-get($colors, 9);
41
+ color: map-get($colors, 1);
42
+ padding: _rem($base-rhythm);
43
+ position: relative;
44
+ text-align: center;
45
+ }
46
+
47
+ .pika-label
48
+ {
49
+ display: inline-block;
50
+ font-family: $type-font-title;
51
+ font-size: #{_rem(map-get($datepicker-header-type, size))};
52
+ font-weight: $type-weight-normal;
53
+ letter-spacing: $type-kerning-title;
54
+ line-height: #{_rem(map-get($datepicker-header-type, line-height))};
55
+ text-transform: uppercase;
56
+
57
+ &:nth-child(2)
58
+ {
59
+ color: map-get($colors, 6);
60
+ margin-left: 2px;
61
+ }
62
+ }
63
+
64
+ .pika-select
65
+ {
66
+ display: none;
67
+ }
68
+
69
+ .pika-prev,
70
+ .pika-next
71
+ {
72
+ background: transparent url('data:image/svg+xml,#{$icon-prev-rev}') no-repeat center center;
73
+ display: block;
74
+ height: _rem(map-get($icon-scale, base));
75
+ left: _rem($base-rhythm);
76
+ position: absolute;
77
+ text-indent: -999em;
78
+ top: 50%;
79
+ @include transform(translate3d(0, -50%, 0));
80
+ width: _rem(map-get($icon-scale, base));
81
+ }
82
+
83
+ .pika-next
84
+ {
85
+ background-image: url('data:image/svg+xml,#{$icon-next-rev}');
86
+ left: auto;
87
+ right: _rem($base-rhythm);
88
+ }
89
+
90
+ .pika-table
91
+ {
92
+ border: $border-width $border-style $color-border-base;
93
+ width: 100%;
94
+
95
+ td, th
96
+ {
97
+ font-size: #{_rem(map-get($datepicker-table-type, size))};
98
+ line-height: #{_rem(map-get($datepicker-table-type, line-height))};
99
+ padding: _rem($base-rhythm);
100
+ text-align: center;
101
+ }
102
+
103
+ abbr
104
+ {
105
+ border: none;
106
+ display: inline-block;
107
+ font-weight: $type-weight-medium;
108
+ margin: _rem($base-rhythm-half) 0;
109
+ }
110
+
111
+ .is-outside-current-month
112
+ {
113
+ color: map-get($colors, 3);
114
+ }
115
+
116
+ .is-today
117
+ {
118
+ position: relative;
119
+ z-index: 0;
120
+
121
+ &:after
122
+ {
123
+ background-color: map-get($colors, 2);
124
+ border-radius: 100%;
125
+ content: '';
126
+ display: block;
127
+ height: 75%;
128
+ left: 50%;
129
+ position: absolute;
130
+ top: 50%;
131
+ @include transform(translate3d(-50%, -50%, 0));
132
+ width: 75%;
133
+ z-index: 1;
134
+ }
135
+
136
+ .pika-day
137
+ {
138
+ position: relative;
139
+ z-index: 2;
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,246 @@
1
+ // ==========================================================================
2
+ // Shorthand basic field styling classes
3
+ // ==========================================================================
4
+
5
+ .field
6
+ {
7
+ @include display(flex);
8
+ @include flex-wrap(wrap);
9
+ @include justify-content(space-between);
10
+ @include align-items(flex-end);
11
+ min-width: 0; // fixes flexbox+select2 issues: https://css-tricks.com/flexbox-truncated-text/
12
+
13
+ .field-header
14
+ {
15
+ @include flex(1 0 auto);
16
+ margin-bottom: _rem($base-rhythm);
17
+ max-width: 100%; // Don't let this flex child overflow its parent
18
+ padding-right: _rem($base-gutter);
19
+ }
20
+
21
+ .field-label
22
+ {
23
+ $_font: map-get($type-scale, 2);
24
+
25
+ @include align-items(center);
26
+ @include display(flex);
27
+ @include flex(1 0 auto);
28
+ font-size: _rem(map-get($_font, size));
29
+ font-weight: $type-weight-medium;
30
+ line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
31
+
32
+ > small
33
+ {
34
+ // TODO: Put this back when we have client side validation
35
+ //$_font-small: map-get($type-scale, 1);
36
+ //font-size: _rem(map-get($_font-small, size));
37
+
38
+ margin-left: _rem($base-rhythm-half);
39
+ }
40
+ }
41
+
42
+ .field-tooltip
43
+ {
44
+ @include align-items(center);
45
+ @include display(inline-flex);
46
+ }
47
+
48
+ .field-description
49
+ {
50
+ color: map-get($colors, 4);
51
+ }
52
+
53
+ .field-feedback
54
+ {
55
+ display: none;
56
+ margin-bottom: _rem($base-rhythm);
57
+ }
58
+
59
+ .field-control,
60
+ .field-custom-control,
61
+ .awesomplete,
62
+ .select2-container--wnw
63
+ {
64
+ @include flex-basis(100%);
65
+ }
66
+
67
+ // ---
68
+ // FIELD ELEMENT SUBCLASSING
69
+ // ---
70
+
71
+ &.field-horizontal
72
+ {
73
+ @include display(flex);
74
+ @include justify-content(space-between);
75
+ @include align-items(center);
76
+
77
+ .field-header
78
+ {
79
+ @include flex-basis(auto);
80
+ margin-bottom: 0;
81
+ padding-right: 0;
82
+ }
83
+
84
+ .field-feedback
85
+ {
86
+ margin-bottom: 0;
87
+ padding-right: _rem($base-gutter);
88
+ }
89
+
90
+ .field-control,
91
+ .field-custom-control,
92
+ .awesomplete,
93
+ .select2-container--wnw
94
+ {
95
+ @include flex-basis(auto);
96
+ }
97
+
98
+ .field-choices
99
+ {
100
+ @include display(flex);
101
+ @include flex-grow(1);
102
+ }
103
+ }
104
+
105
+ &.error,
106
+ &.success,
107
+ &.warning
108
+ {
109
+ > .field-feedback
110
+ {
111
+ display: block;
112
+ }
113
+ }
114
+
115
+ &.error
116
+ {
117
+ > .field-control,
118
+ > .field-custom-control > .field-control
119
+ {
120
+ border-color: $color-validation-error;
121
+ }
122
+
123
+ > .field-feedback
124
+ {
125
+ .field-errors
126
+ {
127
+ display: block;
128
+ color: $color-validation-error;
129
+ }
130
+
131
+ .field-success,
132
+ .field-warning
133
+ {
134
+ display: none;
135
+ }
136
+ }
137
+ }
138
+
139
+ &.success
140
+ {
141
+ > .field-control,
142
+ > .field-custom-control > .field-control
143
+ {
144
+ border-color: $color-validation-success;
145
+ }
146
+
147
+ > .field-feedback
148
+ {
149
+ .field-success
150
+ {
151
+ display: block;
152
+ color: $color-validation-success;
153
+ }
154
+
155
+ .field-errors,
156
+ .field-warning
157
+ {
158
+ display: none;
159
+ }
160
+ }
161
+ }
162
+
163
+ &.warning
164
+ {
165
+ > .field-control,
166
+ > .field-custom-control > .field-control
167
+ {
168
+ border-color: orange;
169
+ }
170
+
171
+ > .field-feedback
172
+ {
173
+ .field-warning
174
+ {
175
+ display: block;
176
+ color: orange;
177
+ }
178
+
179
+ .field-success,
180
+ .field-errors
181
+ {
182
+ display: none;
183
+ }
184
+ }
185
+ }
186
+ }
187
+
188
+ .field-control
189
+ {
190
+ @include prefixer(appearance, none, webkit moz);
191
+
192
+ $_font: map-get($type-scale, 3);
193
+ $_font_bpm: map-get($type-scale, 2);
194
+
195
+ background-color: map-get($colors, 1);
196
+ border: 1px solid map-get($colors, 2);
197
+ border-radius: 0;
198
+ color: $color-text-base;
199
+ font-size: _rem(map-get($_font, size));
200
+ font-weight: normal;
201
+ line-height: _decimal-ceil(map-get($_font, line-height) / map-get($_font, size), 3);
202
+ min-width: 0; // fixes flexbox overflow issue
203
+ padding: _rem($base-gutter);
204
+ @include transition(border-color $transition-timing-border $transition-easing-border);
205
+
206
+ @include _mq(map-get($breakpoints, bpm))
207
+ {
208
+ padding-right: _rem($base-rhythm * 2);
209
+ padding-left: _rem($base-rhythm * 2);
210
+ font-size: _rem(map-get($_font_bpm, size));
211
+ line-height: _decimal-ceil(map-get($_font_bpm, line-height) / map-get($_font_bpm, size), 3);
212
+ }
213
+
214
+ @include _placeholder-prefix()
215
+ {
216
+ color: map-get($colors, 3);
217
+ }
218
+
219
+ &:focus
220
+ {
221
+ border-color: map-get($colors, 3) !important;
222
+ }
223
+
224
+ // Add an icon to the start of the field and adjust dropdown
225
+ // content padding and (optional) heading to reflect this
226
+ [data-has-icon] &
227
+ {
228
+ &[data-icon]
229
+ {
230
+ background-repeat: no-repeat;
231
+ background-position: _rem($base-gutter) center;
232
+ background-size: _rem(map-get($icon-scale, base));
233
+ padding-left: _rem($base-gutter-large + $base-gutter) !important;
234
+
235
+ &[data-icon="search"]
236
+ {
237
+ background-image: url('data:image/svg+xml,#{$icon-search-light}');
238
+ }
239
+
240
+ &[data-icon="location"]
241
+ {
242
+ background-image: url('data:image/svg+xml,#{$icon-location-light}');
243
+ }
244
+ }
245
+ }
246
+ }
@@ -0,0 +1,61 @@
1
+ // ==========================================================================
2
+ // Shorthand media editor control styling classes
3
+ // ==========================================================================
4
+
5
+ .media-editor
6
+ {
7
+ counter-reset: editor;
8
+
9
+ .media-item-asset
10
+ {
11
+ // &:before
12
+ // {
13
+ // $icon-size-massive: map-get($icon-scale, massive);
14
+
15
+ // @include _pseudo-elem(_rem($icon-size-massive * 2), _rem($icon-size-massive * 2));
16
+
17
+ // background: transparent url('data:image/svg+xml,#{$icon-upload}') no-repeat center center;
18
+ // opacity: 0.125;
19
+ // z-index: 0;
20
+ // }
21
+ }
22
+
23
+ // .media-editor-item-thumbnail
24
+ // {
25
+ // height: 0;
26
+ // padding-bottom: 100%;
27
+ // }
28
+
29
+ .embed-type .image-type
30
+ {
31
+ display: none !important;
32
+ }
33
+
34
+ .image-type .embed-type
35
+ {
36
+ display: none !important;
37
+ }
38
+
39
+ .media-editor-item-meta:before
40
+ {
41
+ content: counter(editor);
42
+ counter-increment: editor;
43
+ display: block;
44
+ }
45
+
46
+ .media-editor-item:first-child
47
+ {
48
+ [data-behavior="project-image-position-up"]
49
+ {
50
+ display: none !important;
51
+ }
52
+ }
53
+
54
+ .media-editor-item:last-child
55
+ {
56
+ [data-behavior="project-image-position-down"]
57
+ {
58
+ display: none !important;
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,47 @@
1
+ // ==========================================================================
2
+ // Shorthand form numerical field styling classes
3
+ // ==========================================================================
4
+
5
+ // ---
6
+ // SIMPLE NUMBER FIELDS
7
+ // ---
8
+
9
+ .field-num
10
+ {
11
+ width: _rem($base-rhythm * 10);
12
+ }
13
+
14
+ // ---
15
+ // CREDIT CARD EXPIRY DATE FIELDS
16
+ // ---
17
+
18
+ .field-cc-date
19
+ {
20
+ width: _rem($base-rhythm * 6);
21
+ }
22
+
23
+ // ---
24
+ // LENGTH MEASURING FIELD
25
+ // ---
26
+
27
+ .field-length
28
+ {
29
+ $_font: map-get($type-scale, 0);
30
+
31
+ color: map-get($colors, 4);
32
+ display: block;
33
+ font-size: map-get($_font, size);
34
+ line-height: map-get($_font, line-height) / map-get($_font, size);
35
+ margin-top: _rem($base-rhythm-half);
36
+ margin-right: _rem($base-rhythm-half);
37
+ text-align: right;
38
+ width: 100%;
39
+
40
+ .field-length-value
41
+ {
42
+ display: inline-block;
43
+ text-align: left;
44
+ margin-left: _rem($base-rhythm-half);
45
+ width: 2em;
46
+ }
47
+ }