@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/dist/castlabs-ui.common.js +1 -1
- package/dist/castlabs-ui.css +2 -2
- package/dist/castlabs-ui.umd.js +6 -6
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/ClFieldGroup/style.scss +1 -0
- package/src/components/form/ClFieldInput/style.scss +2 -0
- package/src/components/table/ClTableCel/Links/style.scss +0 -2
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +9 -0
- package/src/styles/components/form.variables.scss +18 -4
- package/src/styles/layout/typography.scss +0 -4
- package/src/styles/layout/typography.variables.scss +0 -5
package/package.json
CHANGED
|
@@ -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(
|
|
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(
|
|
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 {
|