@castlabs/ui 7.0.6 → 7.0.8
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-editor.css +1 -1
- package/dist/castlabs-ui-editor.umd.js +1 -1
- package/dist/castlabs-ui.common.js +2 -2
- package/dist/castlabs-ui.common.js.map +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/ClTooltip/style.scss +1 -1
- package/src/components/form/ClFieldGroup/style.scss +1 -0
- package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +0 -1
- package/src/components/table/ClTableCel/Links/style.scss +0 -2
- package/src/fonts/DMMono/DMMono.scss +43 -38
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +22 -20
- package/src/styles/abstracts/color.scss +3 -4
- package/src/styles/components/form.variables.scss +18 -4
- package/src/styles/layout/typography.scss +8 -6
- package/src/styles/layout/typography.variables.scss +0 -5
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
.tooltip-inner {
|
|
19
19
|
// Bootstrap class
|
|
20
|
-
border-radius: $brand-border-radius;
|
|
20
|
+
border-radius: $brand-border-radius * 0.5;
|
|
21
21
|
color: var(--cl-color-text);
|
|
22
22
|
max-width: none !important; // sass-lint:disable-line no-important
|
|
23
23
|
padding-left: $spacing-tiny;
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
@
|
|
2
|
-
font-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
font-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
font-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
font-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
font-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
@mixin DMMono {
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'DM Mono';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 300;
|
|
6
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_300.woff2?no-inline')
|
|
7
|
+
format('woff2');
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'DM Mono';
|
|
11
|
+
font-style: italic;
|
|
12
|
+
font-weight: 300;
|
|
13
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_300italic.woff2?no-inline')
|
|
14
|
+
format('woff2');
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'DM Mono';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_400.woff2?no-inline')
|
|
21
|
+
format('woff2');
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'DM Mono';
|
|
25
|
+
font-style: italic;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_400italic.woff2?no-inline')
|
|
28
|
+
format('woff2');
|
|
29
|
+
}
|
|
30
|
+
@font-face {
|
|
31
|
+
font-family: 'DM Mono';
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_500.woff2?no-inline')
|
|
35
|
+
format('woff2');
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'DM Mono';
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/DMMono/DM_Mono_500italic.woff2?no-inline')
|
|
42
|
+
format('woff2');
|
|
43
|
+
}
|
|
39
44
|
}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
@
|
|
2
|
-
font-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
font-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
font-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
@mixin NonNaturalGroteskInktrap {
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: NonNaturalGroteskInktrap;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2?no-inline')
|
|
7
|
+
format('woff2');
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: NonNaturalGroteskInktrap;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2?no-inline')
|
|
14
|
+
format('woff2');
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: NonNaturalGroteskInktrap;
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
src: url('#{$castlabs-ui-asset-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2?no-inline')
|
|
21
|
+
format('woff2');
|
|
22
|
+
}
|
|
21
23
|
}
|
|
@@ -34,10 +34,9 @@ $color-ci-smoke: $color-ci-clay;
|
|
|
34
34
|
$color-ci-haze: $color-ci-eggshell;
|
|
35
35
|
$color-dark: $color-ci-ash;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
$color-ci-
|
|
39
|
-
|
|
40
|
-
// $color-ci-violet: #805d93; // not used
|
|
37
|
+
// additional non-official colors
|
|
38
|
+
$color-ci-green: #338450;
|
|
39
|
+
$color-ci-orange: #eca72c; // fec671; //f18f01;
|
|
41
40
|
|
|
42
41
|
$color-hover-opacity: 0.75;
|
|
43
42
|
|
|
@@ -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 {
|
|
@@ -5,10 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines our basic typography rules.
|
|
7
7
|
|
|
8
|
+
@import 'typography.variables';
|
|
9
|
+
|
|
10
|
+
// conditionally import fonts so themes can omit them
|
|
8
11
|
@import '../../fonts/DMMono/DMMono';
|
|
9
12
|
@import '../../fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap';
|
|
10
|
-
|
|
11
|
-
@
|
|
13
|
+
$castlabs-ui-fonts: true !default;
|
|
14
|
+
@if $castlabs-ui-fonts {
|
|
15
|
+
@include NonNaturalGroteskInktrap;
|
|
16
|
+
@include DMMono;
|
|
17
|
+
}
|
|
12
18
|
|
|
13
19
|
// --- text --------------------------------------------------------------------
|
|
14
20
|
|
|
@@ -68,10 +74,6 @@ body {
|
|
|
68
74
|
@extend %cl-p-nav;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
.cl-font-condensed {
|
|
72
|
-
@extend %cl-font-condensed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
77
|
.cl-h0 {
|
|
76
78
|
@extend %cl-h0;
|
|
77
79
|
|