@castlabs/ui 7.0.7 → 7.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "7.0.7",
3
+ "version": "7.0.9",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -60,6 +60,7 @@
60
60
 
61
61
  background-color: $color-ci-clay;
62
62
  height: 100%;
63
+ line-height: inherit;
63
64
  white-space: nowrap;
64
65
  width: auto;
65
66
  }
@@ -54,6 +54,7 @@
54
54
  &::placeholder {
55
55
  color: $color-ci-clay;
56
56
  opacity: 1;
57
+ overflow: visible;
57
58
  }
58
59
  }
59
60
 
@@ -74,6 +75,7 @@
74
75
 
75
76
  &::placeholder {
76
77
  letter-spacing: 0;
78
+ overflow: visible;
77
79
  }
78
80
  }
79
81
 
@@ -15,8 +15,6 @@
15
15
  }
16
16
 
17
17
  .cl-td-links {
18
- @extend %cl-font-condensed;
19
-
20
18
  overflow-wrap: unset;
21
19
  position: sticky;
22
20
  right: 0;
@@ -1,5 +1,10 @@
1
+ $non-natural-ascent-override: 100%;
2
+ $non-natural-descent-override: 40%;
3
+
1
4
  @mixin NonNaturalGroteskInktrap {
2
5
  @font-face {
6
+ ascent-override: $non-natural-ascent-override;
7
+ descent-override: $non-natural-descent-override;
3
8
  font-family: NonNaturalGroteskInktrap;
4
9
  font-style: normal;
5
10
  font-weight: 400;
@@ -7,6 +12,8 @@
7
12
  format('woff2');
8
13
  }
9
14
  @font-face {
15
+ ascent-override: $non-natural-ascent-override;
16
+ descent-override: $non-natural-descent-override;
10
17
  font-family: NonNaturalGroteskInktrap;
11
18
  font-style: normal;
12
19
  font-weight: 500;
@@ -14,6 +21,8 @@
14
21
  format('woff2');
15
22
  }
16
23
  @font-face {
24
+ ascent-override: $non-natural-ascent-override;
25
+ descent-override: $non-natural-descent-override;
17
26
  font-family: NonNaturalGroteskInktrap;
18
27
  font-style: normal;
19
28
  font-weight: 700;
@@ -5,17 +5,19 @@
5
5
 
6
6
  // This file defines form/input field variables
7
7
 
8
+ $form-field-fontsize: px(16);
9
+ $form-field-line-height: px(22);
10
+ $form-field-min-height: px(36);
8
11
  $form-field-border-color: $color-ci-ash;
9
12
  $form-field-border: $brand-line-width solid $form-field-border-color;
10
13
  $form-spacing-label-input: px(2);
11
14
 
12
15
  %form-field-box {
13
- @extend %cl-p-medium;
14
-
15
16
  background-color: $color-ci-white;
16
17
  border: $form-field-border;
17
18
  border-radius: $brand-border-radius;
18
19
  color: $color-text;
20
+ min-height: $form-field-min-height;
19
21
  padding: $spacing-micro - 0.0625rem $spacing-tiny + $spacing-micro; // remove .0625rem=1px border each
20
22
  width: 100%;
21
23
 
@@ -26,11 +28,23 @@ $form-spacing-label-input: px(2);
26
28
  }
27
29
 
28
30
  %form-field-typography-sans {
29
- @include typography-font($typography-sans-font-list, 400, px(16), 1.5em);
31
+ @include typography-font(
32
+ $typography-sans-font-list,
33
+ 400,
34
+ $form-field-fontsize,
35
+ $form-field-line-height
36
+ );
30
37
  }
31
38
 
32
39
  %form-field-typography-monospace {
33
- @include typography-font($typography-monospace-font-list, 400, px(17), 1.59em, 0.025em, 80%);
40
+ @include typography-font(
41
+ $typography-monospace-font-list,
42
+ 400,
43
+ $form-field-fontsize,
44
+ $form-field-line-height,
45
+ 0.025em,
46
+ 80%
47
+ );
34
48
  }
35
49
 
36
50
  @mixin cl-form-focus-embed {
@@ -74,10 +74,6 @@ body {
74
74
  @extend %cl-p-nav;
75
75
  }
76
76
 
77
- .cl-font-condensed {
78
- @extend %cl-font-condensed;
79
- }
80
-
81
77
  .cl-h0 {
82
78
  @extend %cl-h0;
83
79
 
@@ -161,11 +161,6 @@ $typography-monospace-line-height: 1.375;
161
161
  padding-top: 0;
162
162
  }
163
163
 
164
- %cl-font-condensed {
165
- font-stretch: 80%;
166
- letter-spacing: 0.025em;
167
- }
168
-
169
164
  // body md: 20 400/700
170
165
  // body sm: 14 400/700
171
166