@koobiq/components 17.5.0 → 17.6.1
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/button/button-tokens.scss +2 -3
- package/code-block/_code-block-theme.scss +124 -143
- package/code-block/code-block-tokens.scss +400 -0
- package/code-block/code-block.scss +4 -2
- package/core/services/theme.service.d.ts +16 -0
- package/core/styles/_koobiq-theme.scss +3 -58
- package/divider/_divider-theme.scss +2 -4
- package/divider/divider-tokens.scss +14 -0
- package/divider/divider.scss +4 -0
- package/dl/_dl-theme.scss +4 -6
- package/dl/dl-tokens.scss +32 -0
- package/dl/dl.scss +5 -0
- package/dropdown/dropdown-tokens.scss +0 -1
- package/empty-state/_empty-state-theme.scss +6 -9
- package/empty-state/empty-state-tokens.scss +68 -0
- package/empty-state/empty-state.scss +5 -0
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +20 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/divider/divider.component.mjs +3 -3
- package/esm2022/dl/dl.component.mjs +3 -3
- package/esm2022/empty-state/empty-state.component.mjs +3 -3
- package/esm2022/file-upload/multiple-file-upload.component.mjs +3 -3
- package/esm2022/file-upload/single-file-upload.component.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +8 -5
- package/esm2022/list/list-selection.component.mjs +3 -3
- package/esm2022/list/list.component.mjs +3 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
- package/esm2022/markdown/markdown.component.mjs +3 -3
- package/esm2022/modal/modal.component.mjs +3 -3
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +3 -3
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tree/toggle.mjs +3 -3
- package/esm2022/tree/tree-option.component.mjs +3 -3
- package/esm2022/tree/tree-selection.component.mjs +3 -3
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-code-block.mjs +2 -2
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +21 -4
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +2 -2
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +2 -2
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +9 -6
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +4 -4
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +4 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +8 -8
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +29 -112
- package/file-upload/file-upload-tokens.scss +159 -0
- package/file-upload/file-upload.scss +4 -2
- package/form-field/form-field-tokens.scss +1 -1
- package/icon/icon-button-tokens.scss +0 -1
- package/link/link-tokens.scss +1 -1
- package/list/_list-theme.scss +14 -25
- package/list/list-tokens.scss +100 -0
- package/list/list.scss +5 -0
- package/loader-overlay/_loader-overlay-theme.scss +8 -23
- package/loader-overlay/loader-overlay-tokens.scss +58 -0
- package/loader-overlay/loader-overlay.scss +4 -5
- package/markdown/_markdown-theme.scss +29 -43
- package/markdown/markdown-tokens.scss +252 -0
- package/markdown/markdown.scss +0 -6
- package/modal/_modal-confirm.scss +0 -3
- package/modal/_modal-theme.scss +10 -12
- package/modal/modal-tokens.scss +53 -0
- package/modal/modal.scss +5 -0
- package/navbar/_navbar-theme.scss +15 -25
- package/navbar/navbar-divider.scss +0 -3
- package/navbar/navbar-item.scss +0 -3
- package/navbar/navbar-tokens.scss +83 -0
- package/navbar/navbar.scss +5 -3
- package/navbar/vertical-navbar.scss +0 -3
- package/package.json +6 -6
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover-tokens.scss +60 -0
- package/popover/popover.scss +4 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/table/_table-theme.scss +7 -15
- package/table/table-tokens.scss +37 -0
- package/table/table.scss +4 -1
- package/textarea/_textarea-theme.scss +1 -1
- package/textarea/textarea-tokens.scss +14 -0
- package/textarea/textarea.scss +1 -0
- package/timezone/_timezone-option-theme.scss +5 -7
- package/timezone/timezone-option-tokens.scss +51 -0
- package/timezone/timezone-option.component.scss +5 -0
- package/timezone/timezone-select.component.scss +5 -0
- package/toast/_toast-theme.scss +11 -15
- package/toast/toast-tokens.scss +75 -0
- package/toast/toast.component.scss +4 -1
- package/toggle/_toggle-theme.scss +21 -41
- package/toggle/toggle-tokens.scss +142 -0
- package/toggle/toggle.scss +4 -1
- package/tooltip/_tooltip-theme.scss +13 -23
- package/tooltip/tooltip-tokens.scss +63 -0
- package/tooltip/tooltip.scss +5 -0
- package/tree/_tree-theme.scss +14 -21
- package/tree/toggle.scss +5 -0
- package/tree/tree-option.scss +0 -5
- package/tree/tree-selection.scss +5 -0
- package/tree/tree-tokens.scss +94 -0
- package/tree/tree.scss +5 -0
- package/tree-select/_tree-select-theme.scss +9 -16
- package/tree-select/tree-select-tokens.scss +59 -0
- package/tree-select/tree-select.scss +5 -0
|
@@ -1,52 +1,37 @@
|
|
|
1
|
-
@use 'sass:meta';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@use '../core/styles/typography/typography-utils' as *;
|
|
5
1
|
@use '../core/styles/common/tokens' as *;
|
|
6
2
|
|
|
7
|
-
@mixin kbq-loader-overlay-theme(
|
|
8
|
-
$loader-overlay: map.get(map.get($theme, components), loader-overlay);
|
|
9
|
-
|
|
3
|
+
@mixin kbq-loader-overlay-theme() {
|
|
10
4
|
// FIXME: move to unified mixin if necessary
|
|
11
5
|
.kbq-loader-overlay_filled {
|
|
12
6
|
&.kbq-loader-overlay {
|
|
13
|
-
background: kbq-css-variable(
|
|
14
|
-
loader-overlay-filled-overlay-background,
|
|
15
|
-
map.get($loader-overlay, filled, background)
|
|
16
|
-
);
|
|
7
|
+
background: kbq-css-variable(loader-overlay-filled-overlay-background);
|
|
17
8
|
}
|
|
18
9
|
|
|
19
10
|
& .kbq-loader-overlay-text {
|
|
20
|
-
color: kbq-css-variable(loader-overlay-filled-text-color
|
|
11
|
+
color: kbq-css-variable(loader-overlay-filled-text-color);
|
|
21
12
|
}
|
|
22
13
|
|
|
23
14
|
& .kbq-loader-overlay-caption {
|
|
24
|
-
color: kbq-css-variable(loader-overlay-filled-caption-color
|
|
15
|
+
color: kbq-css-variable(loader-overlay-filled-caption-color);
|
|
25
16
|
}
|
|
26
17
|
}
|
|
27
18
|
|
|
28
19
|
.kbq-loader-overlay_transparent {
|
|
29
20
|
&.kbq-loader-overlay {
|
|
30
|
-
background: kbq-css-variable(
|
|
31
|
-
loader-overlay-transparent-overlay-background,
|
|
32
|
-
map.get($loader-overlay, transparent, background)
|
|
33
|
-
);
|
|
21
|
+
background: kbq-css-variable(loader-overlay-transparent-overlay-background);
|
|
34
22
|
}
|
|
35
23
|
|
|
36
24
|
& .kbq-loader-overlay-text {
|
|
37
|
-
color: kbq-css-variable(loader-overlay-transparent-text-color
|
|
25
|
+
color: kbq-css-variable(loader-overlay-transparent-text-color);
|
|
38
26
|
}
|
|
39
27
|
|
|
40
28
|
& .kbq-loader-overlay-caption {
|
|
41
|
-
color: kbq-css-variable(
|
|
42
|
-
loader-overlay-transparent-caption-color,
|
|
43
|
-
map.get($loader-overlay, transparent, caption)
|
|
44
|
-
);
|
|
29
|
+
color: kbq-css-variable(loader-overlay-transparent-caption-color);
|
|
45
30
|
}
|
|
46
31
|
}
|
|
47
32
|
}
|
|
48
33
|
|
|
49
|
-
@mixin kbq-loader-overlay-typography(
|
|
34
|
+
@mixin kbq-loader-overlay-typography() {
|
|
50
35
|
.kbq-loader-overlay_big {
|
|
51
36
|
& .kbq-loader-overlay-text {
|
|
52
37
|
@include kbq-typography-css-variables(loader-overlay, big-text);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.kbq-loader-overlay {
|
|
2
|
+
--kbq-loader-overlay-size-big-overlay-padding-horizontal: 32px;
|
|
3
|
+
--kbq-loader-overlay-size-big-loader-margin-bottom: 24px;
|
|
4
|
+
--kbq-loader-overlay-size-big-content-content-gap-vertical: 4px;
|
|
5
|
+
--kbq-loader-overlay-size-compact-overlay-padding-horizontal: 32px;
|
|
6
|
+
--kbq-loader-overlay-size-compact-loader-margin-bottom: 8px;
|
|
7
|
+
--kbq-loader-overlay-size-compact-content-content-gap-vertical: 2px;
|
|
8
|
+
--kbq-loader-overlay-font-big-text-font-size: 18px;
|
|
9
|
+
--kbq-loader-overlay-font-big-text-line-height: 26px;
|
|
10
|
+
--kbq-loader-overlay-font-big-text-letter-spacing: normal;
|
|
11
|
+
--kbq-loader-overlay-font-big-text-font-weight: 600;
|
|
12
|
+
--kbq-loader-overlay-font-big-text-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
13
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
14
|
+
--kbq-loader-overlay-font-big-text-text-transform: null;
|
|
15
|
+
--kbq-loader-overlay-font-big-text-font-feature-settings: 'calt', 'kern', 'liga';
|
|
16
|
+
--kbq-loader-overlay-font-big-caption-font-size: 14px;
|
|
17
|
+
--kbq-loader-overlay-font-big-caption-line-height: 20px;
|
|
18
|
+
--kbq-loader-overlay-font-big-caption-letter-spacing: -0.006em;
|
|
19
|
+
--kbq-loader-overlay-font-big-caption-font-weight: normal;
|
|
20
|
+
--kbq-loader-overlay-font-big-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
21
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
22
|
+
--kbq-loader-overlay-font-big-caption-text-transform: null;
|
|
23
|
+
--kbq-loader-overlay-font-big-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
24
|
+
--kbq-loader-overlay-font-compact-text-font-size: 14px;
|
|
25
|
+
--kbq-loader-overlay-font-compact-text-line-height: 20px;
|
|
26
|
+
--kbq-loader-overlay-font-compact-text-letter-spacing: -0.006em;
|
|
27
|
+
--kbq-loader-overlay-font-compact-text-font-weight: normal;
|
|
28
|
+
--kbq-loader-overlay-font-compact-text-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
29
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
30
|
+
--kbq-loader-overlay-font-compact-text-text-transform: null;
|
|
31
|
+
--kbq-loader-overlay-font-compact-text-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
32
|
+
--kbq-loader-overlay-font-compact-caption-font-size: 12px;
|
|
33
|
+
--kbq-loader-overlay-font-compact-caption-line-height: 16px;
|
|
34
|
+
--kbq-loader-overlay-font-compact-caption-letter-spacing: normal;
|
|
35
|
+
--kbq-loader-overlay-font-compact-caption-font-weight: normal;
|
|
36
|
+
--kbq-loader-overlay-font-compact-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
37
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
38
|
+
--kbq-loader-overlay-font-compact-caption-text-transform: null;
|
|
39
|
+
--kbq-loader-overlay-font-compact-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
43
|
+
--kbq-loader-overlay-transparent-overlay-background: hsla(229, 15%, 99%, 88%);
|
|
44
|
+
--kbq-loader-overlay-transparent-text-color: hsla(229, 15%, 15%, 100%);
|
|
45
|
+
--kbq-loader-overlay-transparent-caption-color: hsla(229, 15%, 50%, 100%);
|
|
46
|
+
--kbq-loader-overlay-filled-overlay-background: hsla(0, 0%, 100%, 100%);
|
|
47
|
+
--kbq-loader-overlay-filled-text-color: hsla(229, 15%, 15%, 100%);
|
|
48
|
+
--kbq-loader-overlay-filled-caption-color: hsla(229, 15%, 50%, 100%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
52
|
+
--kbq-loader-overlay-transparent-overlay-background: hsla(229, 15%, 12%, 80%);
|
|
53
|
+
--kbq-loader-overlay-transparent-text-color: hsla(229, 15%, 80%, 100%);
|
|
54
|
+
--kbq-loader-overlay-transparent-caption-color: hsla(229, 15%, 60%, 100%);
|
|
55
|
+
--kbq-loader-overlay-filled-overlay-background: hsla(229, 15%, 12%, 100%);
|
|
56
|
+
--kbq-loader-overlay-filled-text-color: hsla(229, 15%, 80%, 100%);
|
|
57
|
+
--kbq-loader-overlay-filled-caption-color: hsla(229, 15%, 60%, 100%);
|
|
58
|
+
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
@use 'sass:meta';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@use '../core/styles/tokens';
|
|
5
1
|
@use '../core/styles/common/tokens' as *;
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
@use './loader-overlay-theme' as *;
|
|
8
4
|
|
|
9
5
|
.kbq-loader-overlay_parent {
|
|
10
6
|
position: relative;
|
|
@@ -72,3 +68,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
72
68
|
}
|
|
73
69
|
}
|
|
74
70
|
}
|
|
71
|
+
|
|
72
|
+
@include kbq-loader-overlay-theme();
|
|
73
|
+
@include kbq-loader-overlay-typography();
|
|
@@ -1,103 +1,89 @@
|
|
|
1
|
-
@use 'sass:meta';
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@use '../core/styles/theming/theming' as *;
|
|
5
|
-
@use '../core/styles/typography/typography-utils' as *;
|
|
6
1
|
@use '../core/styles/common/tokens' as *;
|
|
7
2
|
|
|
8
|
-
@
|
|
9
|
-
$markdown: map.get($theme, components, markdown);
|
|
3
|
+
@use './markdown-tokens';
|
|
10
4
|
|
|
5
|
+
@mixin kbq-markdown-theme() {
|
|
11
6
|
.kbq-markdown {
|
|
12
|
-
color: kbq-css-variable(foreground-contrast
|
|
13
|
-
background: kbq-css-variable(background-bg
|
|
7
|
+
color: kbq-css-variable(foreground-contrast);
|
|
8
|
+
background: kbq-css-variable(background-bg);
|
|
14
9
|
|
|
15
10
|
// h1, h2, h3, h4, h5, h6
|
|
16
11
|
@for $i from 1 through 6 {
|
|
17
12
|
.kbq-markdown__h#{$i} {
|
|
18
|
-
color: kbq-css-variable(markdown-h#{$i}-color
|
|
13
|
+
color: kbq-css-variable(markdown-h#{$i}-color);
|
|
19
14
|
}
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
.kbq-markdown__p {
|
|
23
|
-
color: kbq-css-variable(markdown-p-color
|
|
18
|
+
color: kbq-css-variable(markdown-p-color);
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
.kbq-markdown__ul,
|
|
27
22
|
.kbq-markdown__ol {
|
|
28
|
-
color: kbq-css-variable(markdown-list-color
|
|
23
|
+
color: kbq-css-variable(markdown-list-color);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
.kbq-markdown__blockquote {
|
|
32
|
-
color: kbq-css-variable(markdown-blockquote-text
|
|
33
|
-
background: kbq-css-variable(markdown-blockquote-background
|
|
34
|
-
border-color: kbq-css-variable(markdown-blockquote-border
|
|
35
|
-
border-left-color: kbq-css-variable(markdown-blockquote-line
|
|
27
|
+
color: kbq-css-variable(markdown-blockquote-text);
|
|
28
|
+
background: kbq-css-variable(markdown-blockquote-background);
|
|
29
|
+
border-color: kbq-css-variable(markdown-blockquote-border);
|
|
30
|
+
border-left-color: kbq-css-variable(markdown-blockquote-line);
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
.kbq-markdown__pre,
|
|
39
34
|
.kbq-markdown__p > .kbq-markdown__code {
|
|
40
|
-
color: kbq-css-variable(markdown-code-text
|
|
41
|
-
background-color: kbq-css-variable(markdown-code-background
|
|
42
|
-
border-color: kbq-css-variable(markdown-code-border
|
|
35
|
+
color: kbq-css-variable(markdown-code-text);
|
|
36
|
+
background-color: kbq-css-variable(markdown-code-background);
|
|
37
|
+
border-color: kbq-css-variable(markdown-code-border);
|
|
43
38
|
}
|
|
44
39
|
|
|
45
40
|
.kbq-markdown__a {
|
|
46
|
-
color: kbq-css-variable(markdown-link-text
|
|
47
|
-
border-bottom-color: kbq-css-variable(markdown-link-border-bottom
|
|
41
|
+
color: kbq-css-variable(markdown-link-text);
|
|
42
|
+
border-bottom-color: kbq-css-variable(markdown-link-border-bottom);
|
|
48
43
|
|
|
49
44
|
&:visited {
|
|
50
|
-
color: kbq-css-variable(markdown-link-state-visited-text
|
|
51
|
-
border-bottom-color: kbq-css-variable(
|
|
52
|
-
markdown-link-state-visited-border-bottom,
|
|
53
|
-
map.get($markdown, link-state-visited-border-bottom)
|
|
54
|
-
);
|
|
45
|
+
color: kbq-css-variable(markdown-link-state-visited-text);
|
|
46
|
+
border-bottom-color: kbq-css-variable(markdown-link-state-visited-border-bottom);
|
|
55
47
|
}
|
|
56
48
|
|
|
57
49
|
&:hover {
|
|
58
|
-
color: kbq-css-variable(markdown-link-state-hover-text
|
|
50
|
+
color: kbq-css-variable(markdown-link-state-hover-text);
|
|
59
51
|
transition: color 0ms;
|
|
60
|
-
border-bottom-color: kbq-css-variable(
|
|
61
|
-
markdown-link-state-hover-border-bottom,
|
|
62
|
-
map.get($markdown, link-state-hover-border-bottom)
|
|
63
|
-
);
|
|
52
|
+
border-bottom-color: kbq-css-variable(markdown-link-state-hover-border-bottom);
|
|
64
53
|
}
|
|
65
54
|
|
|
66
55
|
&:active {
|
|
67
|
-
color: kbq-css-variable(markdown-link-state-active
|
|
56
|
+
color: kbq-css-variable(markdown-link-state-active);
|
|
68
57
|
}
|
|
69
58
|
|
|
70
59
|
&:focus {
|
|
71
|
-
outline: kbq-css-variable(
|
|
72
|
-
|
|
73
|
-
map.get($markdown, link-state-focused-outline)
|
|
74
|
-
)
|
|
75
|
-
solid kbq-css-variable(markdown-link-size-state-focused-outline-width);
|
|
60
|
+
outline: kbq-css-variable(markdown-link-state-focused-outline) solid
|
|
61
|
+
kbq-css-variable(markdown-link-size-state-focused-outline-width);
|
|
76
62
|
|
|
77
63
|
outline-offset: kbq-css-variable(markdown-link-size-state-focused-outline-offset);
|
|
78
64
|
}
|
|
79
65
|
}
|
|
80
66
|
|
|
81
67
|
.kbq-markdown__img + em {
|
|
82
|
-
color: kbq-css-variable(markdown-image-caption-text
|
|
68
|
+
color: kbq-css-variable(markdown-image-caption-text);
|
|
83
69
|
}
|
|
84
70
|
|
|
85
71
|
.kbq-markdown__hr {
|
|
86
|
-
border-bottom-color: kbq-css-variable(markdown-hr-color
|
|
72
|
+
border-bottom-color: kbq-css-variable(markdown-hr-color);
|
|
87
73
|
}
|
|
88
74
|
|
|
89
75
|
.kbq-markdown__table > .kbq-markdown__thead {
|
|
90
|
-
color: kbq-css-variable(markdown-table-header
|
|
91
|
-
border-bottom-color: kbq-css-variable(markdown-table-border
|
|
76
|
+
color: kbq-css-variable(markdown-table-header);
|
|
77
|
+
border-bottom-color: kbq-css-variable(markdown-table-border);
|
|
92
78
|
}
|
|
93
79
|
|
|
94
80
|
.kbq-markdown__table > .kbq-markdown__tbody {
|
|
95
|
-
color: kbq-css-variable(markdown-table-body
|
|
81
|
+
color: kbq-css-variable(markdown-table-body);
|
|
96
82
|
}
|
|
97
83
|
}
|
|
98
84
|
}
|
|
99
85
|
|
|
100
|
-
@mixin kbq-markdown-typography(
|
|
86
|
+
@mixin kbq-markdown-typography() {
|
|
101
87
|
.kbq-markdown {
|
|
102
88
|
// h1, h2, h3, h4, h5, h6
|
|
103
89
|
@for $i from 1 through 6 {
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
.kbq-markdown {
|
|
2
|
+
--kbq-markdown-h1-size-max-width: 650px;
|
|
3
|
+
--kbq-markdown-h1-size-margin-top: 0;
|
|
4
|
+
--kbq-markdown-h1-size-margin-bottom: 16px;
|
|
5
|
+
--kbq-markdown-h1-font-default-font-size: 36px;
|
|
6
|
+
--kbq-markdown-h1-font-default-line-height: 44px;
|
|
7
|
+
--kbq-markdown-h1-font-default-letter-spacing: normal;
|
|
8
|
+
--kbq-markdown-h1-font-default-font-weight: 400;
|
|
9
|
+
--kbq-markdown-h1-font-default-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
10
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
11
|
+
--kbq-markdown-h1-font-default-text-transform: null;
|
|
12
|
+
--kbq-markdown-h1-font-default-font-feature-settings: 'calt', 'kern', 'liga';
|
|
13
|
+
--kbq-markdown-h2-size-max-width: 650px;
|
|
14
|
+
--kbq-markdown-h2-size-margin-top: 24px;
|
|
15
|
+
--kbq-markdown-h2-size-margin-bottom: 12px;
|
|
16
|
+
--kbq-markdown-h2-font-default-font-size: 24px;
|
|
17
|
+
--kbq-markdown-h2-font-default-line-height: 32px;
|
|
18
|
+
--kbq-markdown-h2-font-default-letter-spacing: normal;
|
|
19
|
+
--kbq-markdown-h2-font-default-font-weight: 700;
|
|
20
|
+
--kbq-markdown-h2-font-default-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
21
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
22
|
+
--kbq-markdown-h2-font-default-text-transform: null;
|
|
23
|
+
--kbq-markdown-h2-font-default-font-feature-settings: 'calt', 'kern', 'liga';
|
|
24
|
+
--kbq-markdown-h3-size-max-width: 650px;
|
|
25
|
+
--kbq-markdown-h3-size-margin-top: 24px;
|
|
26
|
+
--kbq-markdown-h3-size-margin-bottom: 12px;
|
|
27
|
+
--kbq-markdown-h3-font-default-font-size: 20px;
|
|
28
|
+
--kbq-markdown-h3-font-default-line-height: 28px;
|
|
29
|
+
--kbq-markdown-h3-font-default-letter-spacing: normal;
|
|
30
|
+
--kbq-markdown-h3-font-default-font-weight: 700;
|
|
31
|
+
--kbq-markdown-h3-font-default-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
32
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
33
|
+
--kbq-markdown-h3-font-default-text-transform: null;
|
|
34
|
+
--kbq-markdown-h3-font-default-font-feature-settings: 'calt', 'kern', 'liga';
|
|
35
|
+
--kbq-markdown-h4-size-max-width: 650px;
|
|
36
|
+
--kbq-markdown-h4-size-margin-top: 24px;
|
|
37
|
+
--kbq-markdown-h4-size-margin-bottom: 12px;
|
|
38
|
+
--kbq-markdown-h4-font-default-font-size: 18px;
|
|
39
|
+
--kbq-markdown-h4-font-default-line-height: 26px;
|
|
40
|
+
--kbq-markdown-h4-font-default-letter-spacing: normal;
|
|
41
|
+
--kbq-markdown-h4-font-default-font-weight: 700;
|
|
42
|
+
--kbq-markdown-h4-font-default-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
43
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
44
|
+
--kbq-markdown-h4-font-default-text-transform: null;
|
|
45
|
+
--kbq-markdown-h4-font-default-font-feature-settings: 'calt', 'kern', 'liga';
|
|
46
|
+
--kbq-markdown-h5-size-max-width: 650px;
|
|
47
|
+
--kbq-markdown-h5-size-margin-top: 24px;
|
|
48
|
+
--kbq-markdown-h5-size-margin-bottom: 8px;
|
|
49
|
+
--kbq-markdown-h5-font-default-font-size: 16px;
|
|
50
|
+
--kbq-markdown-h5-font-default-line-height: 24px;
|
|
51
|
+
--kbq-markdown-h5-font-default-letter-spacing: -0.011em;
|
|
52
|
+
--kbq-markdown-h5-font-default-font-weight: 700;
|
|
53
|
+
--kbq-markdown-h5-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
54
|
+
Arial, sans-serif;
|
|
55
|
+
--kbq-markdown-h5-font-default-text-transform: null;
|
|
56
|
+
--kbq-markdown-h5-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
57
|
+
--kbq-markdown-h6-size-max-width: 650px;
|
|
58
|
+
--kbq-markdown-h6-size-margin-top: 24px;
|
|
59
|
+
--kbq-markdown-h6-size-margin-bottom: 8px;
|
|
60
|
+
--kbq-markdown-h6-font-default-font-size: 14px;
|
|
61
|
+
--kbq-markdown-h6-font-default-line-height: 20px;
|
|
62
|
+
--kbq-markdown-h6-font-default-letter-spacing: 0.08em;
|
|
63
|
+
--kbq-markdown-h6-font-default-font-weight: 500;
|
|
64
|
+
--kbq-markdown-h6-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
65
|
+
Arial, sans-serif;
|
|
66
|
+
--kbq-markdown-h6-font-default-text-transform: uppercase;
|
|
67
|
+
--kbq-markdown-h6-font-default-font-feature-settings: 'calt', 'case', 'kern', 'liga', 'ss01', 'ss04';
|
|
68
|
+
--kbq-markdown-p-size-max-width: 650px;
|
|
69
|
+
--kbq-markdown-p-size-margin-top: 12px;
|
|
70
|
+
--kbq-markdown-p-size-margin-bottom: 12px;
|
|
71
|
+
--kbq-markdown-p-font-default-font-size: 16px;
|
|
72
|
+
--kbq-markdown-p-font-default-line-height: 24px;
|
|
73
|
+
--kbq-markdown-p-font-default-letter-spacing: -0.011em;
|
|
74
|
+
--kbq-markdown-p-font-default-font-weight: normal;
|
|
75
|
+
--kbq-markdown-p-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
76
|
+
Arial, sans-serif;
|
|
77
|
+
--kbq-markdown-p-font-default-text-transform: null;
|
|
78
|
+
--kbq-markdown-p-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
79
|
+
--kbq-markdown-list-size-max-width: 650px;
|
|
80
|
+
--kbq-markdown-list-size-margin-top: 12px;
|
|
81
|
+
--kbq-markdown-list-size-margin-bottom: 12px;
|
|
82
|
+
--kbq-markdown-list-size-margin-top-after-paragraph: -8px;
|
|
83
|
+
--kbq-markdown-list-size-ol-number-padding-right: 4px;
|
|
84
|
+
--kbq-markdown-list-size-ul-padding: 0 0 0 24px;
|
|
85
|
+
--kbq-markdown-list-size-item-margin-bottom: 4px;
|
|
86
|
+
--kbq-markdown-list-font-default-font-size: 16px;
|
|
87
|
+
--kbq-markdown-list-font-default-line-height: 24px;
|
|
88
|
+
--kbq-markdown-list-font-default-letter-spacing: -0.011em;
|
|
89
|
+
--kbq-markdown-list-font-default-font-weight: normal;
|
|
90
|
+
--kbq-markdown-list-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
91
|
+
Arial, sans-serif;
|
|
92
|
+
--kbq-markdown-list-font-default-text-transform: null;
|
|
93
|
+
--kbq-markdown-list-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
94
|
+
--kbq-markdown-blockquote-size-max-width: 650px;
|
|
95
|
+
--kbq-markdown-blockquote-size-margin-top: 12px;
|
|
96
|
+
--kbq-markdown-blockquote-size-margin-bottom: 12px;
|
|
97
|
+
--kbq-markdown-blockquote-size-padding: 2px 12px;
|
|
98
|
+
--kbq-markdown-blockquote-size-line-width: 4px;
|
|
99
|
+
--kbq-markdown-blockquote-size-border-radius: 0;
|
|
100
|
+
--kbq-markdown-blockquote-size-border-width: 0;
|
|
101
|
+
--kbq-markdown-blockquote-font-default-font-size: 16px;
|
|
102
|
+
--kbq-markdown-blockquote-font-default-line-height: 24px;
|
|
103
|
+
--kbq-markdown-blockquote-font-default-letter-spacing: -0.011em;
|
|
104
|
+
--kbq-markdown-blockquote-font-default-font-weight: normal;
|
|
105
|
+
--kbq-markdown-blockquote-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
106
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
107
|
+
--kbq-markdown-blockquote-font-default-text-transform: null;
|
|
108
|
+
--kbq-markdown-blockquote-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
109
|
+
--kbq-markdown-code-size-max-width: 650px;
|
|
110
|
+
--kbq-markdown-code-size-multiline-margin-top: 12px;
|
|
111
|
+
--kbq-markdown-code-size-multiline-margin-bottom: 24px;
|
|
112
|
+
--kbq-markdown-code-size-inline-padding: 0 4px;
|
|
113
|
+
--kbq-markdown-code-size-multiline-padding: 12px 16px;
|
|
114
|
+
--kbq-markdown-code-size-border-radius: 8px;
|
|
115
|
+
--kbq-markdown-code-size-border-width: 1px;
|
|
116
|
+
--kbq-markdown-code-font-default-font-size: 16px;
|
|
117
|
+
--kbq-markdown-code-font-default-line-height: 24px;
|
|
118
|
+
--kbq-markdown-code-font-default-letter-spacing: normal;
|
|
119
|
+
--kbq-markdown-code-font-default-font-weight: normal;
|
|
120
|
+
--kbq-markdown-code-font-default-font-family: 'JetBrains Mono', 'Roboto Mono', 'Consolas', 'Menlo', 'Monaco',
|
|
121
|
+
monospace;
|
|
122
|
+
--kbq-markdown-code-font-default-text-transform: null;
|
|
123
|
+
--kbq-markdown-code-font-default-font-feature-settings: initial;
|
|
124
|
+
--kbq-markdown-link-size-icon-margin: 2px;
|
|
125
|
+
--kbq-markdown-link-size-state-focused-outline-offset: 0px;
|
|
126
|
+
--kbq-markdown-link-size-state-focused-outline-width: 2px;
|
|
127
|
+
--kbq-markdown-link-font-default-font-size: 16px;
|
|
128
|
+
--kbq-markdown-link-font-default-line-height: 24px;
|
|
129
|
+
--kbq-markdown-link-font-default-letter-spacing: -0.011em;
|
|
130
|
+
--kbq-markdown-link-font-default-font-weight: normal;
|
|
131
|
+
--kbq-markdown-link-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
132
|
+
Arial, sans-serif;
|
|
133
|
+
--kbq-markdown-link-font-default-text-transform: null;
|
|
134
|
+
--kbq-markdown-link-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
135
|
+
--kbq-markdown-image-size-max-width: 650px;
|
|
136
|
+
--kbq-markdown-image-size-margin-top: 12px;
|
|
137
|
+
--kbq-markdown-image-size-margin-bottom: 12px;
|
|
138
|
+
--kbq-markdown-image-size-caption-margin-top: -8px;
|
|
139
|
+
--kbq-markdown-image-size-caption-margin-bottom: 24px;
|
|
140
|
+
--kbq-markdown-image-font-caption-font-size: 14px;
|
|
141
|
+
--kbq-markdown-image-font-caption-line-height: 20px;
|
|
142
|
+
--kbq-markdown-image-font-caption-letter-spacing: -0.006em;
|
|
143
|
+
--kbq-markdown-image-font-caption-font-weight: normal;
|
|
144
|
+
--kbq-markdown-image-font-caption-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
145
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
146
|
+
--kbq-markdown-image-font-caption-text-transform: null;
|
|
147
|
+
--kbq-markdown-image-font-caption-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
148
|
+
--kbq-markdown-hr-size-width: 1px;
|
|
149
|
+
--kbq-markdown-hr-size-margin-vertical: 24px;
|
|
150
|
+
--kbq-markdown-table-size-border-width: 1px;
|
|
151
|
+
--kbq-markdown-table-size-padding: 8px;
|
|
152
|
+
--kbq-markdown-table-size-margin-bottom: 12px;
|
|
153
|
+
--kbq-markdown-table-font-header-font-size: 14px;
|
|
154
|
+
--kbq-markdown-table-font-header-line-height: 20px;
|
|
155
|
+
--kbq-markdown-table-font-header-letter-spacing: -0.006em;
|
|
156
|
+
--kbq-markdown-table-font-header-font-weight: normal;
|
|
157
|
+
--kbq-markdown-table-font-header-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
158
|
+
Arial, sans-serif;
|
|
159
|
+
--kbq-markdown-table-font-header-text-transform: null;
|
|
160
|
+
--kbq-markdown-table-font-header-font-feature-settings: 'calt', 'ss01', 'ss04', 'tnum';
|
|
161
|
+
--kbq-markdown-table-font-body-font-size: 16px;
|
|
162
|
+
--kbq-markdown-table-font-body-line-height: 24px;
|
|
163
|
+
--kbq-markdown-table-font-body-letter-spacing: normal;
|
|
164
|
+
--kbq-markdown-table-font-body-font-weight: normal;
|
|
165
|
+
--kbq-markdown-table-font-body-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
166
|
+
Arial, sans-serif;
|
|
167
|
+
--kbq-markdown-table-font-body-text-transform: null;
|
|
168
|
+
--kbq-markdown-table-font-body-font-feature-settings: 'calt', 'ss01', 'ss04', 'tnum';
|
|
169
|
+
--kbq-markdown-size-max-width: 650px;
|
|
170
|
+
--kbq-markdown-font-default-font-size: 16px;
|
|
171
|
+
--kbq-markdown-font-default-line-height: 24px;
|
|
172
|
+
--kbq-markdown-font-default-letter-spacing: -0.011em;
|
|
173
|
+
--kbq-markdown-font-default-font-weight: normal;
|
|
174
|
+
--kbq-markdown-font-default-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
|
|
175
|
+
Arial, sans-serif;
|
|
176
|
+
--kbq-markdown-font-default-text-transform: null;
|
|
177
|
+
--kbq-markdown-font-default-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
181
|
+
--kbq-background-bg: hsla(0, 0%, 100%, 100%);
|
|
182
|
+
--kbq-background-bg-secondary: hsla(229, 15%, 95%, 100%);
|
|
183
|
+
--kbq-background-bg-tertiary: hsla(229, 15%, 97%, 100%);
|
|
184
|
+
--kbq-foreground-contrast: hsla(229, 15%, 15%, 100%);
|
|
185
|
+
--kbq-foreground-contrast-secondary: hsla(229, 15%, 50%, 100%);
|
|
186
|
+
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 60%, 100%);
|
|
187
|
+
--kbq-markdown-h1-color: hsla(229, 15%, 15%, 100%);
|
|
188
|
+
--kbq-markdown-h2-color: hsla(229, 15%, 15%, 100%);
|
|
189
|
+
--kbq-markdown-h3-color: hsla(229, 15%, 15%, 100%);
|
|
190
|
+
--kbq-markdown-h4-color: hsla(229, 15%, 15%, 100%);
|
|
191
|
+
--kbq-markdown-h5-color: hsla(229, 15%, 15%, 100%);
|
|
192
|
+
--kbq-markdown-h6-color: hsla(229, 15%, 15%, 100%);
|
|
193
|
+
--kbq-markdown-p-color: hsla(229, 15%, 15%, 100%);
|
|
194
|
+
--kbq-markdown-list-color: hsla(229, 15%, 15%, 100%);
|
|
195
|
+
--kbq-markdown-blockquote-text: hsla(229, 15%, 15%, 100%);
|
|
196
|
+
--kbq-markdown-blockquote-line: hsla(229, 15%, 80%, 100%);
|
|
197
|
+
--kbq-markdown-blockquote-background: transparent;
|
|
198
|
+
--kbq-markdown-blockquote-border: transparent;
|
|
199
|
+
--kbq-markdown-code-text: hsla(229, 15%, 15%, 100%);
|
|
200
|
+
--kbq-markdown-code-background: hsla(229, 15%, 95%, 100%);
|
|
201
|
+
--kbq-markdown-code-border: hsla(229, 15%, 6%, 12%);
|
|
202
|
+
--kbq-markdown-link-text: hsla(216, 100%, 50%, 100%);
|
|
203
|
+
--kbq-markdown-link-border-bottom: hsla(216, 100%, 85%, 100%);
|
|
204
|
+
--kbq-markdown-link-state-visited-text: hsla(277, 72%, 45%, 100%);
|
|
205
|
+
--kbq-markdown-link-state-visited-border-bottom: hsla(277, 72%, 80%, 100%);
|
|
206
|
+
--kbq-markdown-link-state-hover-text: hsla(216, 100%, 45%, 100%);
|
|
207
|
+
--kbq-markdown-link-state-hover-border-bottom: hsla(216, 100%, 85%, 100%);
|
|
208
|
+
--kbq-markdown-link-state-active: hsla(216, 100%, 40%, 100%);
|
|
209
|
+
--kbq-markdown-link-state-focused-outline: hsla(216, 100%, 60%, 100%);
|
|
210
|
+
--kbq-markdown-image-caption-text: hsla(229, 15%, 50%, 100%);
|
|
211
|
+
--kbq-markdown-hr-color: hsla(229, 15%, 6%, 12%);
|
|
212
|
+
--kbq-markdown-table-header: hsla(229, 15%, 50%, 100%);
|
|
213
|
+
--kbq-markdown-table-body: hsla(229, 15%, 15%, 100%);
|
|
214
|
+
--kbq-markdown-table-border: hsla(229, 15%, 6%, 12%);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
218
|
+
--kbq-background-bg: hsla(229, 15%, 12%, 100%);
|
|
219
|
+
--kbq-background-bg-secondary: hsla(229, 15%, 16%, 100%);
|
|
220
|
+
--kbq-background-bg-tertiary: hsla(229, 15%, 14%, 100%);
|
|
221
|
+
--kbq-foreground-contrast: hsla(229, 15%, 80%, 100%);
|
|
222
|
+
--kbq-foreground-contrast-secondary: hsla(229, 15%, 60%, 100%);
|
|
223
|
+
--kbq-foreground-contrast-tertiary: hsla(229, 15%, 45%, 100%);
|
|
224
|
+
--kbq-markdown-h1-color: hsla(229, 15%, 80%, 100%);
|
|
225
|
+
--kbq-markdown-h2-color: hsla(229, 15%, 80%, 100%);
|
|
226
|
+
--kbq-markdown-h3-color: hsla(229, 15%, 80%, 100%);
|
|
227
|
+
--kbq-markdown-h4-color: hsla(229, 15%, 80%, 100%);
|
|
228
|
+
--kbq-markdown-h5-color: hsla(229, 15%, 80%, 100%);
|
|
229
|
+
--kbq-markdown-h6-color: hsla(229, 15%, 80%, 100%);
|
|
230
|
+
--kbq-markdown-p-color: hsla(229, 15%, 80%, 100%);
|
|
231
|
+
--kbq-markdown-list-color: hsla(229, 15%, 80%, 100%);
|
|
232
|
+
--kbq-markdown-blockquote-text: hsla(229, 15%, 80%, 100%);
|
|
233
|
+
--kbq-markdown-blockquote-line: hsla(229, 15%, 30%, 100%);
|
|
234
|
+
--kbq-markdown-blockquote-background: transparent;
|
|
235
|
+
--kbq-markdown-blockquote-border: transparent;
|
|
236
|
+
--kbq-markdown-code-text: hsla(229, 15%, 80%, 100%);
|
|
237
|
+
--kbq-markdown-code-background: hsla(229, 15%, 95%, 100%);
|
|
238
|
+
--kbq-markdown-code-border: hsla(229, 15%, 22%, 100%);
|
|
239
|
+
--kbq-markdown-link-text: hsla(216, 100%, 65%, 100%);
|
|
240
|
+
--kbq-markdown-link-border-bottom: hsla(216, 100%, 27%, 100%);
|
|
241
|
+
--kbq-markdown-link-state-visited-text: hsla(277, 72%, 50%, 100%);
|
|
242
|
+
--kbq-markdown-link-state-visited-border-bottom: hsla(277, 72%, 30%, 100%);
|
|
243
|
+
--kbq-markdown-link-state-hover-text: hsla(216, 100%, 65%, 100%);
|
|
244
|
+
--kbq-markdown-link-state-hover-border-bottom: hsla(216, 100%, 27%, 100%);
|
|
245
|
+
--kbq-markdown-link-state-active: hsla(216, 100%, 70%, 100%);
|
|
246
|
+
--kbq-markdown-link-state-focused-outline: hsla(216, 100%, 60%, 100%);
|
|
247
|
+
--kbq-markdown-image-caption-text: hsla(229, 15%, 50%, 100%);
|
|
248
|
+
--kbq-markdown-hr-color: hsla(229, 15%, 22%, 100%);
|
|
249
|
+
--kbq-markdown-table-header: hsla(229, 15%, 50%, 100%);
|
|
250
|
+
--kbq-markdown-table-body: hsla(229, 15%, 80%, 100%);
|
|
251
|
+
--kbq-markdown-table-border: hsla(229, 15%, 22%, 100%);
|
|
252
|
+
}
|
package/markdown/markdown.scss
CHANGED
package/modal/_modal-theme.scss
CHANGED
|
@@ -4,43 +4,41 @@
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
5
|
@use '../core/styles/common/tokens' as *;
|
|
6
6
|
|
|
7
|
-
@mixin kbq-modal-theme(
|
|
8
|
-
$modal: map.get(map.get($theme, components), modal);
|
|
9
|
-
|
|
7
|
+
@mixin kbq-modal-theme() {
|
|
10
8
|
.kbq-modal {
|
|
11
|
-
background: kbq-css-variable(modal-container-background
|
|
12
|
-
box-shadow: kbq-css-variable(modal-container-box-shadow
|
|
9
|
+
background: kbq-css-variable(modal-container-background);
|
|
10
|
+
box-shadow: kbq-css-variable(modal-container-box-shadow);
|
|
13
11
|
|
|
14
12
|
.kbq-modal-header {
|
|
15
13
|
& .kbq-modal-title {
|
|
16
|
-
color: kbq-css-variable(modal-header-text-color
|
|
14
|
+
color: kbq-css-variable(modal-header-text-color);
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
& .kbq-modal-close {
|
|
20
|
-
color: kbq-css-variable(modal-close-button-color
|
|
18
|
+
color: kbq-css-variable(modal-close-button-color);
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.kbq-modal-content {
|
|
25
|
-
color: kbq-css-variable(modal-content-text-color
|
|
23
|
+
color: kbq-css-variable(modal-content-text-color);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
// FIXME: default token doesn't exist
|
|
29
27
|
.kbq-modal-header.kbq-modal-body_top-overflow {
|
|
30
|
-
box-shadow: kbq-css-variable(modal-body-top-shadow
|
|
28
|
+
box-shadow: kbq-css-variable(modal-body-top-shadow);
|
|
31
29
|
}
|
|
32
30
|
// FIXME: default token doesn't exist
|
|
33
31
|
.kbq-modal-footer.kbq-modal-body_bottom-overflow {
|
|
34
|
-
box-shadow: kbq-css-variable(modal-body-bottom-shadow
|
|
32
|
+
box-shadow: kbq-css-variable(modal-body-bottom-shadow);
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.kbq-modal-mask {
|
|
39
|
-
background-color: kbq-css-variable(modal-overlay-background
|
|
37
|
+
background-color: kbq-css-variable(modal-overlay-background);
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
|
|
43
|
-
@mixin kbq-modal-typography(
|
|
41
|
+
@mixin kbq-modal-typography() {
|
|
44
42
|
.kbq-modal-title {
|
|
45
43
|
@include kbq-typography-css-variables(modal, header);
|
|
46
44
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.kbq-modal {
|
|
2
|
+
--kbq-modal-size-small-width: 400px;
|
|
3
|
+
--kbq-modal-size-medium-width: 640px;
|
|
4
|
+
--kbq-modal-size-large-width: 960px;
|
|
5
|
+
--kbq-modal-size-border-radius: 8px;
|
|
6
|
+
--kbq-modal-size-header-padding-vertical: 16px;
|
|
7
|
+
--kbq-modal-size-header-padding-left: 24px;
|
|
8
|
+
--kbq-modal-size-header-padding-right: 48px;
|
|
9
|
+
--kbq-modal-size-close-button-margin-left: 8px;
|
|
10
|
+
--kbq-modal-size-content-padding-horizontal: 24px;
|
|
11
|
+
--kbq-modal-size-content-padding-top: 0;
|
|
12
|
+
--kbq-modal-size-content-padding-bottom: 8px;
|
|
13
|
+
--kbq-modal-size-content-padding-top-without-header: 24px;
|
|
14
|
+
--kbq-modal-size-content-padding-bottom-without-footer: 40px;
|
|
15
|
+
--kbq-modal-size-footer-padding-horizontal: 24px;
|
|
16
|
+
--kbq-modal-size-footer-padding-vertical: 20px;
|
|
17
|
+
--kbq-modal-size-footer-content-gap-horizontal: 16px;
|
|
18
|
+
--kbq-modal-font-header-font-size: 20px;
|
|
19
|
+
--kbq-modal-font-header-line-height: 28px;
|
|
20
|
+
--kbq-modal-font-header-letter-spacing: normal;
|
|
21
|
+
--kbq-modal-font-header-font-weight: 700;
|
|
22
|
+
--kbq-modal-font-header-font-family: 'TT-Positive', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
|
|
23
|
+
'Helvetica Neue', Arial, sans-serif;
|
|
24
|
+
--kbq-modal-font-header-text-transform: null;
|
|
25
|
+
--kbq-modal-font-header-font-feature-settings: 'calt', 'kern', 'liga';
|
|
26
|
+
--kbq-modal-font-content-font-size: 14px;
|
|
27
|
+
--kbq-modal-font-content-line-height: 20px;
|
|
28
|
+
--kbq-modal-font-content-letter-spacing: -0.006em;
|
|
29
|
+
--kbq-modal-font-content-font-weight: normal;
|
|
30
|
+
--kbq-modal-font-content-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
31
|
+
sans-serif;
|
|
32
|
+
--kbq-modal-font-content-text-transform: null;
|
|
33
|
+
--kbq-modal-font-content-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
37
|
+
--kbq-modal-overlay-background: hsla(229, 15%, 20%, 32%);
|
|
38
|
+
--kbq-modal-container-background: hsla(229, 15%, 100%, 100%);
|
|
39
|
+
--kbq-modal-container-box-shadow: 0 0 0 1px hsla(229, 15%, 6%, 3%), 0 3px 16px hsla(229, 15%, 6%, 6%),
|
|
40
|
+
0 4px 32px hsla(229, 15%, 6%, 12%);
|
|
41
|
+
--kbq-modal-close-button-color: hsla(229, 15%, 15%, 100%);
|
|
42
|
+
--kbq-modal-header-text-color: hsla(229, 15%, 15%, 100%);
|
|
43
|
+
--kbq-modal-content-text-color: hsla(229, 15%, 15%, 100%);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
47
|
+
--kbq-modal-overlay-background: hsla(229, 15%, 6%, 64%);
|
|
48
|
+
--kbq-modal-container-background: hsla(229, 15%, 15%, 100%);
|
|
49
|
+
--kbq-modal-container-box-shadow: 0 0 0 1px hsla(229, 100%, 85%, 15%);
|
|
50
|
+
--kbq-modal-close-button-color: hsla(229, 15%, 80%, 100%);
|
|
51
|
+
--kbq-modal-header-text-color: hsla(229, 15%, 80%, 100%);
|
|
52
|
+
--kbq-modal-content-text-color: hsla(229, 15%, 80%, 100%);
|
|
53
|
+
}
|