@hkdigital/lib-sveltekit 0.1.12 → 0.1.14
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/README.md +7 -5
- package/dist/components/boxes/virtual-viewport/VirtualViewport.svelte +1 -1
- package/dist/components/icons/SteezeIcon.svelte +2 -1
- package/dist/design/design-config.js +8 -8
- package/dist/design/tailwind-theme-extend.js +1 -1
- package/dist/themes/hkdev/components/boxes/{game-box.postcss → game-box.css} +2 -3
- package/dist/themes/hkdev/components/buttons/{button-text.postcss → button-text.css} +6 -9
- package/dist/themes/hkdev/components/buttons/{button.postcss → button.css} +15 -16
- package/dist/themes/hkdev/components/buttons/skip-button.css +6 -0
- package/dist/themes/hkdev/components/inputs/{text-input.postcss → text-input.css} +19 -23
- package/dist/themes/hkdev/components/panels/{plain-panel.postcss → plain-panel.css} +4 -6
- package/dist/themes/hkdev/components/panels/{speech-bubble.postcss → speech-bubble.css} +6 -12
- package/dist/themes/hkdev/components/rows/panel-grid-row.css +6 -0
- package/dist/themes/hkdev/components/rows/panel-row-2.css +7 -0
- package/dist/themes/hkdev/components.css +59 -0
- package/dist/themes/hkdev/globals.css +11 -0
- package/dist/util/design-system/skeleton.js +1 -1
- package/package.json +1 -1
- package/dist/css/tw-prose.postcss__ +0 -259
- package/dist/themes/hkdev/components/buttons/button.postcss__ +0 -40
- package/dist/themes/hkdev/components/buttons/button.postcss___ +0 -91
- package/dist/themes/hkdev/components/buttons/skip-button.postcss +0 -8
- package/dist/themes/hkdev/components/rows/panel-grid-row.postcss +0 -7
- package/dist/themes/hkdev/components/rows/panel-row-2.postcss +0 -9
- package/dist/themes/hkdev/components.postcss +0 -61
- package/dist/themes/hkdev/global/text.postcss__ +0 -35
- package/dist/themes/hkdev/global/vars.postcss__ +0 -7
- package/dist/themes/hkdev/globals.postcss +0 -11
- /package/dist/css/{utilities.postcss → utilities.css} +0 -0
- /package/dist/themes/hkdev/components/blocks/{text-block.postcss → text-block.css} +0 -0
- /package/dist/themes/hkdev/components/buttons/{button-icon-steeze.postcss → button-icon-steeze.css} +0 -0
- /package/dist/themes/hkdev/components/icons/{icon-steeze.postcss → icon-steeze.css} +0 -0
- /package/dist/themes/hkdev/{debug.postcss → debug.css} +0 -0
- /package/dist/themes/hkdev/global/{layout.postcss → layout.css} +0 -0
- /package/dist/themes/hkdev/global/{on-colors.postcss → on-colors.css} +0 -0
- /package/dist/themes/hkdev/{responsive.postcss → responsive.css} +0 -0
package/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Base library that we use to power up our Sveltekit projects
|
4
4
|
|
5
|
-
This is a library for [SvelteKit](https://svelte.dev/) projects.
|
6
|
-
It contains common code and components that we use to create our projects.
|
5
|
+
This is a library for [SvelteKit](https://svelte.dev/) projects.
|
6
|
+
It contains common code and components that we use to create our projects.
|
7
7
|
|
8
8
|
## Status
|
9
9
|
|
@@ -40,6 +40,7 @@ Upgrading works as follows:
|
|
40
40
|
```bash
|
41
41
|
ncu "@hkdigital/*" -u && pnpm install
|
42
42
|
```
|
43
|
+
|
43
44
|
We use a wildcard to upgrade all installed `node_modules` in the scope `@hkdigital`.
|
44
45
|
|
45
46
|
You can also add this command to your project. To do so, add the lines to the bottom of the `scripts` section of your `package.json`.
|
@@ -66,8 +67,8 @@ Vite should include postcss-import, but the only solution to get it working for
|
|
66
67
|
For example:
|
67
68
|
|
68
69
|
```css
|
69
|
-
/* src/app.
|
70
|
-
@import '../node_modules/@hkdigital/lib-sveltekit/dist/css/utilities.
|
70
|
+
/* src/app.css */
|
71
|
+
@import '../node_modules/@hkdigital/lib-sveltekit/dist/css/utilities.css';
|
71
72
|
```
|
72
73
|
|
73
74
|
### Enable tailwind processing
|
@@ -108,7 +109,7 @@ Everything inside `src/lib` is part of the library, everything inside `src/route
|
|
108
109
|
|
109
110
|
## Publishing
|
110
111
|
|
111
|
-
The name of this library is `@hkdigital/lib-sveltekit` and it is published on [NPM](https://npmjs.com). You need NPM credentials to publish in the scope `@hkdigital`.
|
112
|
+
The name of this library is `@hkdigital/lib-sveltekit` and it is published on [NPM](https://npmjs.com). You need NPM credentials to publish in the scope `@hkdigital`.
|
112
113
|
|
113
114
|
```bash
|
114
115
|
# Manually
|
@@ -124,4 +125,5 @@ pnpm run publish:npm
|
|
124
125
|
```
|
125
126
|
|
126
127
|
## Contribute
|
128
|
+
|
127
129
|
If your wish to contribute to this library, please contact us [HKdigital](https://hkdigital.nl/contact). Alternatively, the license permits you to fork the library and publish under an alternative name. Change the package name in [package.json](./package.json) to do so.
|
@@ -91,7 +91,7 @@
|
|
91
91
|
scaleW = containerWidth / designWidth;
|
92
92
|
scaleH = containerHeight / designHeight;
|
93
93
|
|
94
|
-
// Use the smaller ratio to ensure content fits
|
94
|
+
// Use the smaller ratio to ensure content fits
|
95
95
|
scaleViewport = Math.min(scaleW, scaleH);
|
96
96
|
|
97
97
|
try {
|
@@ -2,7 +2,8 @@
|
|
2
2
|
/**
|
3
3
|
* Steeze like icon component
|
4
4
|
* The main difference with the original Steeze svelte component is that
|
5
|
-
* the component follows the conventions used for components in
|
5
|
+
* the component follows the conventions used for components in
|
6
|
+
* this library
|
6
7
|
*
|
7
8
|
* @see https://github.com/steeze-ui/icons
|
8
9
|
*
|
@@ -26,17 +26,17 @@ export const VIEWPORT_POINT_SIZES = [
|
|
26
26
|
];
|
27
27
|
|
28
28
|
export const TEXT_BASE_SIZES = {
|
29
|
-
sm: { size: 14, lineHeight: 1.
|
30
|
-
md: { size: 16, lineHeight: 1.
|
31
|
-
lg: { size: 18, lineHeight: 1.
|
29
|
+
sm: { size: 14, lineHeight: 1.25 },
|
30
|
+
md: { size: 16, lineHeight: 1.25 },
|
31
|
+
lg: { size: 18, lineHeight: 1.25 }
|
32
32
|
};
|
33
33
|
|
34
34
|
export const TEXT_HEADING_SIZES = {
|
35
|
-
h1: { size: 32, lineHeight: 1.
|
36
|
-
h2: { size: 28, lineHeight: 1.
|
37
|
-
h3: { size: 24, lineHeight: 1.
|
38
|
-
h4: { size: 20, lineHeight: 1.
|
39
|
-
h5: { size: 16, lineHeight: 1.
|
35
|
+
h1: { size: 32, lineHeight: 1.25 },
|
36
|
+
h2: { size: 28, lineHeight: 1.25 },
|
37
|
+
h3: { size: 24, lineHeight: 1.25 },
|
38
|
+
h4: { size: 20, lineHeight: 1.25 },
|
39
|
+
h5: { size: 16, lineHeight: 1.25 }
|
40
40
|
};
|
41
41
|
|
42
42
|
export const TEXT_UI_SIZES = {
|
@@ -4,24 +4,21 @@
|
|
4
4
|
|
5
5
|
/* Type-based styling for text buttons */
|
6
6
|
[data-component="button"][data-type="text"] {
|
7
|
+
|
7
8
|
/* Typography settings */
|
8
9
|
@apply font-ui text-ui-md;
|
9
10
|
@apply uppercase;
|
10
11
|
@apply whitespace-nowrap;
|
11
12
|
|
12
|
-
/* Size
|
13
|
-
/*&[data-size="sm"] {
|
14
|
-
@apply px-8ut py-8ut;
|
15
|
-
}
|
13
|
+
/* Size settings */
|
16
14
|
|
17
15
|
&[data-size="md"] {
|
18
|
-
@apply
|
16
|
+
@apply rounded-sm;
|
17
|
+
@apply py-8ut px-16ut;
|
18
|
+
min-width: var(--btn-min-width);
|
19
|
+
min-height: var(--btn-min-height);
|
19
20
|
}
|
20
21
|
|
21
|
-
&[data-size="lg"] {
|
22
|
-
@apply px-32ut py-16ut;
|
23
|
-
}*/
|
24
|
-
|
25
22
|
/* Role-specific text adjustments */
|
26
23
|
&[data-role="primary"] {
|
27
24
|
@apply font-extrabold;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
@define-mixin component-button {
|
2
2
|
[data-component="button"] {
|
3
3
|
/* ---- Core Button Variables ---- */
|
4
|
-
|
5
|
-
|
6
|
-
--btn-
|
7
|
-
--btn-
|
8
|
-
--btn-focus-ring-width: 3px;
|
9
|
-
--btn-focus-ring-opacity: 0.4;
|
4
|
+
|
5
|
+
/* Size variables */
|
6
|
+
--btn-min-width: calc( 150px * var(--scale-ui) );
|
7
|
+
--btn-min-height: calc( 40px * var(--scale-ui) );
|
10
8
|
|
11
9
|
/* ---- Primary Button Variables ---- */
|
12
10
|
--btn-primary-bg: var(--color-primary-500);
|
@@ -37,6 +35,13 @@
|
|
37
35
|
--btn-error-border: var(--color-error-500);
|
38
36
|
--btn-loading-opacity: 0.8;
|
39
37
|
|
38
|
+
/* Appearance variations */
|
39
|
+
--btn-border-width: 2px;
|
40
|
+
--btn-transition-duration: 150ms;
|
41
|
+
--btn-disabled-opacity: 0.6;
|
42
|
+
--btn-focus-ring-width: 3px;
|
43
|
+
--btn-focus-ring-opacity: 0.4;
|
44
|
+
|
40
45
|
/* Base styles */
|
41
46
|
display: inline-flex;
|
42
47
|
justify-content: center;
|
@@ -48,23 +53,17 @@
|
|
48
53
|
}
|
49
54
|
|
50
55
|
/* Size variants */
|
51
|
-
[data-component="button"][data-size="sm"] {
|
56
|
+
/*[data-component="button"][data-size="sm"] {
|
52
57
|
@apply rounded-xs;
|
53
58
|
@apply py-8ut px-8ut;
|
54
59
|
@apply min-w-24ut min-h-24ut;
|
55
|
-
}
|
60
|
+
}*/
|
56
61
|
|
57
|
-
[data-component="button"][data-size="
|
58
|
-
@apply rounded-sm;
|
59
|
-
@apply py-8ut px-16ut;
|
60
|
-
@apply min-w-32ut min-h-32ut;
|
61
|
-
}
|
62
|
-
|
63
|
-
[data-component="button"][data-size="lg"] {
|
62
|
+
/*[data-component="button"][data-size="lg"] {
|
64
63
|
@apply rounded-sm;
|
65
64
|
@apply py-16ut px-36ut;
|
66
65
|
@apply min-w-36ut min-h-36ut;
|
67
|
-
}
|
66
|
+
}*/
|
68
67
|
|
69
68
|
/* Role-based styling for primary buttons */
|
70
69
|
[data-component="button"][data-role="primary"] {
|
@@ -1,29 +1,26 @@
|
|
1
|
-
|
2
|
-
/*@import "../../global/on-colors.postcss";*/
|
1
|
+
/*@import "../../global/on-colors.css";*/
|
3
2
|
|
4
3
|
@define-mixin inputs-text-input {
|
5
|
-
|
6
|
-
[data-input="text-input"] {
|
7
|
-
|
4
|
+
[data-input='text-input'] {
|
8
5
|
/* Base */
|
9
6
|
|
10
|
-
|
11
|
-
|
12
7
|
/* Required and disabled */
|
13
8
|
|
14
|
-
&.required {
|
15
|
-
|
9
|
+
&.required {
|
10
|
+
}
|
11
|
+
&.disabled {
|
12
|
+
}
|
16
13
|
|
17
14
|
/* Focus */
|
18
15
|
|
19
16
|
&.focused {
|
20
17
|
border: solid thin black;
|
21
18
|
|
22
|
-
& [data-child=
|
19
|
+
& [data-child='legend'] {
|
23
20
|
color: black;
|
24
21
|
}
|
25
22
|
|
26
|
-
& [data-child=
|
23
|
+
& [data-child='input'] {
|
27
24
|
color: black;
|
28
25
|
}
|
29
26
|
}
|
@@ -31,29 +28,29 @@
|
|
31
28
|
&.unfocused {
|
32
29
|
border: solid thin grey;
|
33
30
|
|
34
|
-
& [data-child=
|
31
|
+
& [data-child='legend'] {
|
35
32
|
color: grey;
|
36
33
|
}
|
37
34
|
|
38
|
-
& [data-child=
|
35
|
+
& [data-child='input'] {
|
39
36
|
color: grey;
|
40
37
|
}
|
41
38
|
}
|
42
39
|
|
43
40
|
/* Invalid */
|
44
41
|
&.invalid {
|
45
|
-
&.pristine [data-child=
|
42
|
+
&.pristine [data-child='legend'] {
|
46
43
|
color: white;
|
47
44
|
background-color: orange;
|
48
45
|
}
|
49
46
|
|
50
47
|
&.dirty {
|
51
|
-
&.focused [data-child=
|
48
|
+
&.focused [data-child='legend'] {
|
52
49
|
color: black;
|
53
50
|
background-color: yellow;
|
54
51
|
}
|
55
52
|
|
56
|
-
&.unfocused [data-child=
|
53
|
+
&.unfocused [data-child='legend'] {
|
57
54
|
color: white;
|
58
55
|
background-color: red;
|
59
56
|
}
|
@@ -63,13 +60,13 @@
|
|
63
60
|
/* Pristine (valid-invalid) */
|
64
61
|
|
65
62
|
&.pristine.valid {
|
66
|
-
& [data-child=
|
63
|
+
& [data-child='icon-box'] {
|
67
64
|
color: grey;
|
68
65
|
}
|
69
66
|
}
|
70
67
|
|
71
68
|
&.pristine.invalid {
|
72
|
-
& [data-child=
|
69
|
+
& [data-child='icon-box'] {
|
73
70
|
color: orange;
|
74
71
|
}
|
75
72
|
}
|
@@ -78,13 +75,13 @@
|
|
78
75
|
|
79
76
|
&.dirty.valid {
|
80
77
|
&.focused {
|
81
|
-
& [data-child=
|
78
|
+
& [data-child='icon-box'] {
|
82
79
|
color: grey;
|
83
80
|
}
|
84
81
|
}
|
85
82
|
|
86
83
|
&.unfocused {
|
87
|
-
& [data-child=
|
84
|
+
& [data-child='icon-box'] {
|
88
85
|
color: green;
|
89
86
|
}
|
90
87
|
}
|
@@ -92,17 +89,16 @@
|
|
92
89
|
|
93
90
|
&.dirty.invalid {
|
94
91
|
&.focused {
|
95
|
-
& [data-child=
|
92
|
+
& [data-child='icon-box'] {
|
96
93
|
color: orange;
|
97
94
|
}
|
98
95
|
}
|
99
96
|
|
100
97
|
&.unfocused {
|
101
|
-
& [data-child=
|
98
|
+
& [data-child='icon-box'] {
|
102
99
|
color: red;
|
103
100
|
}
|
104
101
|
}
|
105
102
|
}
|
106
|
-
|
107
103
|
}
|
108
104
|
}
|
@@ -1,21 +1,20 @@
|
|
1
|
-
/*@import "../../global/on-colors.
|
1
|
+
/*@import "../../global/on-colors.css";*/
|
2
2
|
|
3
3
|
@define-mixin panels-plain-panel {
|
4
|
-
[data-panel=
|
5
|
-
|
4
|
+
[data-panel='plain-panel'] {
|
6
5
|
@mixin on_surface_light;
|
7
6
|
@apply bg-primary-50;
|
8
7
|
|
9
8
|
@apply p-40p rounded-md;
|
10
9
|
|
11
10
|
max-width: 50vw;
|
12
|
-
/* max-width: 27vw;*/
|
11
|
+
/* max-width: 27vw;*/
|
13
12
|
/* width: 26vw; */
|
14
13
|
|
15
14
|
& picture {
|
16
15
|
display: block;
|
17
16
|
max-width: 100%;
|
18
|
-
@apply pr-80p;
|
17
|
+
@apply pr-80p;
|
19
18
|
/* border: solid 1px red; */
|
20
19
|
}
|
21
20
|
|
@@ -29,7 +28,6 @@
|
|
29
28
|
& + picture {
|
30
29
|
@apply mt-40p;
|
31
30
|
}
|
32
|
-
|
33
31
|
}
|
34
32
|
|
35
33
|
& button {
|
@@ -1,9 +1,7 @@
|
|
1
|
-
|
2
|
-
@import "../../global/on-colors.postcss";
|
1
|
+
@import '../../global/on-colors.css';
|
3
2
|
|
4
3
|
@define-mixin panels-speech-bubble {
|
5
|
-
[data-panel=
|
6
|
-
|
4
|
+
[data-panel='speech-bubble'] {
|
7
5
|
@mixin on_surface_light;
|
8
6
|
@apply bg-primary-50;
|
9
7
|
|
@@ -19,19 +17,17 @@
|
|
19
17
|
& picture {
|
20
18
|
display: block;
|
21
19
|
max-width: 100%;
|
22
|
-
@apply pr-80p;
|
20
|
+
@apply pr-80p;
|
23
21
|
/* border: solid 1px red; */
|
24
22
|
}
|
25
23
|
|
26
|
-
& [data-section=
|
27
|
-
{
|
24
|
+
& [data-section='title'] {
|
28
25
|
& .h1 {
|
29
26
|
@apply text-32p pt-8p pb-8p;
|
30
27
|
}
|
31
28
|
}
|
32
29
|
|
33
|
-
& [data-section=
|
34
|
-
{
|
30
|
+
& [data-section='text'] {
|
35
31
|
& .p {
|
36
32
|
@apply text-20p pb-10p;
|
37
33
|
|
@@ -41,11 +37,9 @@
|
|
41
37
|
}
|
42
38
|
}
|
43
39
|
|
44
|
-
|
45
40
|
/* Footer */
|
46
41
|
|
47
|
-
& [data-row][data-section=
|
48
|
-
{
|
42
|
+
& [data-row][data-section='footer'] {
|
49
43
|
@apply pt-10p;
|
50
44
|
}
|
51
45
|
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/* Import component styles */
|
2
|
+
|
3
|
+
/* Panels */
|
4
|
+
/*@import "./components/panels/plain-panel.css";*/
|
5
|
+
|
6
|
+
/* Rows */
|
7
|
+
/*@import "./components/rows/panel-grid-row.css";*/
|
8
|
+
/*@import "./components/rows/panel-row-2.css";*/
|
9
|
+
|
10
|
+
/* Buttons */
|
11
|
+
@import './components/buttons/button.css';
|
12
|
+
@import './components/buttons/button-text.css';
|
13
|
+
@import './components/buttons/button-icon-steeze.css';
|
14
|
+
|
15
|
+
/*@import "./components/buttons/skip-button.css";*/
|
16
|
+
|
17
|
+
/* Icons */
|
18
|
+
@import './components/icons/icon-steeze.css';
|
19
|
+
|
20
|
+
/* Inputs */
|
21
|
+
@import './components/inputs/text-input.css';
|
22
|
+
|
23
|
+
/* ... */
|
24
|
+
/*@import "./components/select-level.css";*/
|
25
|
+
@import './components/blocks/text-block.css';
|
26
|
+
|
27
|
+
/* Not used */
|
28
|
+
/*@import "./components/hk-tab-icon.css";*/
|
29
|
+
/*@import "./components/avatar-layer.css";*/
|
30
|
+
|
31
|
+
/* Wrap component styles in theme selector */
|
32
|
+
|
33
|
+
[data-theme='hkdev'] {
|
34
|
+
/* Panels */
|
35
|
+
/* @mixin panels-plain-panel;*/
|
36
|
+
/* @mixin panels-speech-bubble;*/
|
37
|
+
|
38
|
+
/* Rows */
|
39
|
+
/* @mixin rows-panel-grid-row;*/
|
40
|
+
/* @mixin rows-panel-row-2;*/
|
41
|
+
|
42
|
+
/* Buttons */
|
43
|
+
@mixin component-button;
|
44
|
+
@mixin component-button-text;
|
45
|
+
@mixin component-button-icon-steeze;
|
46
|
+
/* @mixin buttons-skip-button;*/
|
47
|
+
|
48
|
+
@mixin component-icon-steeze;
|
49
|
+
|
50
|
+
@mixin text_block;
|
51
|
+
|
52
|
+
/* Inputs */
|
53
|
+
@mixin inputs-text-input;
|
54
|
+
|
55
|
+
/* ... */
|
56
|
+
/* @mixin hk_tab_icon;*/
|
57
|
+
/* @mixin avatar_layer;*/
|
58
|
+
/* @mixin select_level;*/
|
59
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*@import "./global/vars.css";*/
|
2
|
+
/*@import "./global/on-colors.css";*/
|
3
|
+
@import './global/layout.css';
|
4
|
+
/*@import "./global/text.css";*/
|
5
|
+
|
6
|
+
[data-theme='hkdev'] {
|
7
|
+
/* @mixin all_vars;*/
|
8
|
+
/* @mixin all_on_colors;*/
|
9
|
+
@mixin all_layout;
|
10
|
+
/* @mixin all_text;*/
|
11
|
+
}
|
@@ -42,7 +42,7 @@ export function customUtilitiesPlugin({ addUtilities }) {
|
|
42
42
|
'font-family': 'var(--heading-font-family)'
|
43
43
|
},
|
44
44
|
'.font-base': {
|
45
|
-
'font-family': 'var(--base-font-family)
|
45
|
+
'font-family': 'var(--base-font-family)'
|
46
46
|
},
|
47
47
|
'.font-ui': {
|
48
48
|
'font-family': 'var(--ui-font-family, var(--base-font-family))'
|
package/package.json
CHANGED
@@ -1,259 +0,0 @@
|
|
1
|
-
/* Base prose styles */
|
2
|
-
.prose {
|
3
|
-
font-size: 1rem;
|
4
|
-
line-height: 1.75;
|
5
|
-
max-width: 65ch;
|
6
|
-
}
|
7
|
-
|
8
|
-
.prose > * + * {
|
9
|
-
margin-top: 1.25em;
|
10
|
-
}
|
11
|
-
|
12
|
-
/* Headings */
|
13
|
-
.prose h1 {
|
14
|
-
font-size: 2.25em;
|
15
|
-
line-height: 1.1111111;
|
16
|
-
margin-top: 0;
|
17
|
-
margin-bottom: 0.8888889em;
|
18
|
-
font-weight: 800;
|
19
|
-
}
|
20
|
-
|
21
|
-
.prose h2 {
|
22
|
-
font-size: 1.5em;
|
23
|
-
line-height: 1.3333333;
|
24
|
-
margin-top: 2em;
|
25
|
-
margin-bottom: 1em;
|
26
|
-
font-weight: 700;
|
27
|
-
}
|
28
|
-
|
29
|
-
.prose h3 {
|
30
|
-
font-size: 1.25em;
|
31
|
-
line-height: 1.6;
|
32
|
-
margin-top: 1.6em;
|
33
|
-
margin-bottom: 0.6em;
|
34
|
-
font-weight: 600;
|
35
|
-
}
|
36
|
-
|
37
|
-
.prose h4 {
|
38
|
-
font-size: 1.125em;
|
39
|
-
line-height: 1.5;
|
40
|
-
margin-top: 1.5em;
|
41
|
-
margin-bottom: 0.5em;
|
42
|
-
font-weight: 600;
|
43
|
-
}
|
44
|
-
|
45
|
-
/* Paragraphs */
|
46
|
-
.prose p {
|
47
|
-
margin-top: 1.25em;
|
48
|
-
margin-bottom: 1.25em;
|
49
|
-
}
|
50
|
-
|
51
|
-
/* Lists */
|
52
|
-
.prose ul,
|
53
|
-
.prose ol {
|
54
|
-
padding-left: 1.625em;
|
55
|
-
margin-top: 1.25em;
|
56
|
-
margin-bottom: 1.25em;
|
57
|
-
}
|
58
|
-
|
59
|
-
.prose li {
|
60
|
-
margin-top: 0.5em;
|
61
|
-
margin-bottom: 0.5em;
|
62
|
-
}
|
63
|
-
|
64
|
-
.prose > ul > li p {
|
65
|
-
margin-top: 0.75em;
|
66
|
-
margin-bottom: 0.75em;
|
67
|
-
}
|
68
|
-
|
69
|
-
.prose > ul > li > *:first-child {
|
70
|
-
margin-top: 1.25em;
|
71
|
-
}
|
72
|
-
|
73
|
-
.prose > ul > li > *:last-child {
|
74
|
-
margin-bottom: 1.25em;
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Nested lists */
|
78
|
-
.prose ul ul,
|
79
|
-
.prose ul ol,
|
80
|
-
.prose ol ul,
|
81
|
-
.prose ol ol {
|
82
|
-
margin-top: 0.75em;
|
83
|
-
margin-bottom: 0.75em;
|
84
|
-
}
|
85
|
-
|
86
|
-
/* Links */
|
87
|
-
.prose a {
|
88
|
-
color: #111827;
|
89
|
-
text-decoration: underline;
|
90
|
-
font-weight: 500;
|
91
|
-
}
|
92
|
-
|
93
|
-
.prose a:hover {
|
94
|
-
text-decoration-thickness: 2px;
|
95
|
-
}
|
96
|
-
|
97
|
-
/* Code blocks */
|
98
|
-
.prose code {
|
99
|
-
color: #111827;
|
100
|
-
font-weight: 600;
|
101
|
-
font-size: 0.875em;
|
102
|
-
}
|
103
|
-
|
104
|
-
.prose pre {
|
105
|
-
color: #e5e7eb;
|
106
|
-
background-color: #1f2937;
|
107
|
-
overflow-x: auto;
|
108
|
-
font-size: 0.875em;
|
109
|
-
line-height: 1.7142857;
|
110
|
-
margin-top: 1.7142857em;
|
111
|
-
margin-bottom: 1.7142857em;
|
112
|
-
border-radius: 0.375rem;
|
113
|
-
padding: 0.8571429em 1.1428571em;
|
114
|
-
}
|
115
|
-
|
116
|
-
.prose pre code {
|
117
|
-
background-color: transparent;
|
118
|
-
border-radius: 0;
|
119
|
-
padding: 0;
|
120
|
-
font-weight: 400;
|
121
|
-
color: inherit;
|
122
|
-
font-size: inherit;
|
123
|
-
font-family: inherit;
|
124
|
-
line-height: inherit;
|
125
|
-
}
|
126
|
-
|
127
|
-
/* Blockquotes */
|
128
|
-
.prose blockquote {
|
129
|
-
font-weight: 500;
|
130
|
-
font-style: italic;
|
131
|
-
color: #111827;
|
132
|
-
border-left-width: 0.25rem;
|
133
|
-
border-left-color: #e5e7eb;
|
134
|
-
margin-top: 1.6em;
|
135
|
-
margin-bottom: 1.6em;
|
136
|
-
padding-left: 1em;
|
137
|
-
}
|
138
|
-
|
139
|
-
/* Tables */
|
140
|
-
.prose table {
|
141
|
-
width: 100%;
|
142
|
-
table-layout: auto;
|
143
|
-
text-align: left;
|
144
|
-
margin-top: 2em;
|
145
|
-
margin-bottom: 2em;
|
146
|
-
font-size: 0.875em;
|
147
|
-
line-height: 1.7142857;
|
148
|
-
}
|
149
|
-
|
150
|
-
.prose thead {
|
151
|
-
font-weight: 600;
|
152
|
-
border-bottom-width: 1px;
|
153
|
-
border-bottom-color: #d1d5db;
|
154
|
-
}
|
155
|
-
|
156
|
-
.prose thead th {
|
157
|
-
vertical-align: bottom;
|
158
|
-
padding-right: 0.5714286em;
|
159
|
-
padding-bottom: 0.5714286em;
|
160
|
-
padding-left: 0.5714286em;
|
161
|
-
}
|
162
|
-
|
163
|
-
.prose tbody tr {
|
164
|
-
border-bottom-width: 1px;
|
165
|
-
border-bottom-color: #e5e7eb;
|
166
|
-
}
|
167
|
-
|
168
|
-
.prose tbody td {
|
169
|
-
vertical-align: top;
|
170
|
-
padding: 0.5714286em;
|
171
|
-
}
|
172
|
-
|
173
|
-
/* Size variations */
|
174
|
-
.prose-sm {
|
175
|
-
font-size: 0.875rem;
|
176
|
-
line-height: 1.7142857;
|
177
|
-
}
|
178
|
-
|
179
|
-
.prose-lg {
|
180
|
-
font-size: 1.125rem;
|
181
|
-
line-height: 1.7777778;
|
182
|
-
}
|
183
|
-
|
184
|
-
.prose-xl {
|
185
|
-
font-size: 1.25rem;
|
186
|
-
line-height: 1.8;
|
187
|
-
}
|
188
|
-
|
189
|
-
/* Dark mode */
|
190
|
-
.prose-invert {
|
191
|
-
color: #d1d5db;
|
192
|
-
}
|
193
|
-
|
194
|
-
.prose-invert a {
|
195
|
-
color: #fff;
|
196
|
-
}
|
197
|
-
|
198
|
-
.prose-invert strong {
|
199
|
-
color: #fff;
|
200
|
-
}
|
201
|
-
|
202
|
-
.prose-invert code {
|
203
|
-
color: #fff;
|
204
|
-
}
|
205
|
-
|
206
|
-
.prose-invert thead {
|
207
|
-
border-bottom-color: #4b5563;
|
208
|
-
}
|
209
|
-
|
210
|
-
.prose-invert tbody tr {
|
211
|
-
border-bottom-color: #374151;
|
212
|
-
}
|
213
|
-
|
214
|
-
.prose-invert blockquote {
|
215
|
-
color: #9ca3af;
|
216
|
-
border-left-color: #4b5563;
|
217
|
-
}
|
218
|
-
|
219
|
-
/* Images */
|
220
|
-
.prose img {
|
221
|
-
margin-top: 2em;
|
222
|
-
margin-bottom: 2em;
|
223
|
-
}
|
224
|
-
|
225
|
-
.prose figure > * {
|
226
|
-
margin-top: 0;
|
227
|
-
margin-bottom: 0;
|
228
|
-
}
|
229
|
-
|
230
|
-
.prose figure figcaption {
|
231
|
-
color: #6b7280;
|
232
|
-
font-size: 0.875em;
|
233
|
-
line-height: 1.4285714;
|
234
|
-
margin-top: 0.8571429em;
|
235
|
-
}
|
236
|
-
|
237
|
-
/* Custom elements */
|
238
|
-
.prose hr {
|
239
|
-
border-color: #e5e7eb;
|
240
|
-
border-top-width: 1px;
|
241
|
-
margin-top: 3em;
|
242
|
-
margin-bottom: 3em;
|
243
|
-
}
|
244
|
-
|
245
|
-
.prose strong {
|
246
|
-
font-weight: 600;
|
247
|
-
color: #111827;
|
248
|
-
}
|
249
|
-
|
250
|
-
.prose em {
|
251
|
-
font-style: italic;
|
252
|
-
}
|
253
|
-
|
254
|
-
/* Focus styles */
|
255
|
-
.prose a:focus {
|
256
|
-
outline: 2px solid transparent;
|
257
|
-
outline-offset: 2px;
|
258
|
-
text-decoration-thickness: 2px;
|
259
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
@define-mixin component-button {
|
2
|
-
|
3
|
-
[data-component="button"][data-type="plain"] {
|
4
|
-
|
5
|
-
&:not([disabled]) {
|
6
|
-
&[data-role="primary"] {
|
7
|
-
@apply ...
|
8
|
-
}
|
9
|
-
|
10
|
-
&[data-role="secondary"] {
|
11
|
-
@apply ...
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
&[disabled] {
|
16
|
-
&[data-role="primary"] {
|
17
|
-
@apply ...
|
18
|
-
}
|
19
|
-
|
20
|
-
&[data-role="secondary"] {
|
21
|
-
@apply ...
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
[data-component="button"][data-type="plain"] {
|
27
|
-
|
28
|
-
&[data-size="sm"] {
|
29
|
-
@apply ...
|
30
|
-
}
|
31
|
-
|
32
|
-
&[data-size="md"] {
|
33
|
-
@apply ...
|
34
|
-
}
|
35
|
-
|
36
|
-
&[data-size="lg"] {
|
37
|
-
@apply ...
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
@@ -1,91 +0,0 @@
|
|
1
|
-
@define-mixin component-button {
|
2
|
-
|
3
|
-
/* Base button styles */
|
4
|
-
[data-component="button"][data-type="plain"] {
|
5
|
-
@apply rounded-md;
|
6
|
-
@apply border-width-normal;
|
7
|
-
@apply text-ui-base base-font-family font-medium;
|
8
|
-
}
|
9
|
-
|
10
|
-
/* Role-based styling for enabled buttons */
|
11
|
-
[data-component="button"][data-type="plain"] {
|
12
|
-
&:not([disabled]) {
|
13
|
-
&[data-role="primary"] {
|
14
|
-
@apply border-primary-500 bg-primary-500;
|
15
|
-
@apply text-primary-contrast-500;
|
16
|
-
}
|
17
|
-
|
18
|
-
&[data-role="secondary"] {
|
19
|
-
@apply border-secondary-500 text-secondary-500 bg-transparent;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
/* Role-based styling for disabled buttons */
|
24
|
-
&[disabled] {
|
25
|
-
@apply cursor-not-allowed;
|
26
|
-
|
27
|
-
&[data-role="primary"] {
|
28
|
-
@apply bg-surface-300 text-surface-100;
|
29
|
-
}
|
30
|
-
|
31
|
-
&[data-role="secondary"] {
|
32
|
-
@apply border-surface-300 text-surface-300 bg-transparent;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
/* Size variants */
|
38
|
-
[data-component="button"][data-type="plain"] {
|
39
|
-
&[data-size="sm"] {
|
40
|
-
@apply px-8ut py-4ut;
|
41
|
-
@apply text-ui-sm;
|
42
|
-
@apply gap-4ut;
|
43
|
-
/* height: 32ut;*/
|
44
|
-
}
|
45
|
-
|
46
|
-
&[data-size="md"] {
|
47
|
-
@apply px-16ut py-8ut;
|
48
|
-
@apply text-ui-base;
|
49
|
-
@apply gap-8ut;
|
50
|
-
/* height: 40ut;*/
|
51
|
-
}
|
52
|
-
|
53
|
-
&[data-size="lg"] {
|
54
|
-
@apply px-20ut py-10ut;
|
55
|
-
@apply text-ui-lg;
|
56
|
-
@apply gap-10ut;
|
57
|
-
/* height: 50ut;*/
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
/* Hover, focus and active states for enabled buttons */
|
62
|
-
[data-component="button"][data-type="plain"]:not([disabled]) {
|
63
|
-
&[data-role="primary"] {
|
64
|
-
&:hover {
|
65
|
-
@apply bg-primary-600;
|
66
|
-
}
|
67
|
-
&:focus-visible {
|
68
|
-
@apply bg-primary-600;
|
69
|
-
outline: 2ut solid rgb(var(--color-primary-300));
|
70
|
-
outline-offset: 2ut;
|
71
|
-
}
|
72
|
-
&:active {
|
73
|
-
@apply bg-primary-700;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
&[data-role="secondary"] {
|
78
|
-
&:hover {
|
79
|
-
@apply bg-secondary-50;
|
80
|
-
}
|
81
|
-
&:focus-visible {
|
82
|
-
@apply bg-secondary-50;
|
83
|
-
outline: 2ut solid rgb(var(--color-secondary-300));
|
84
|
-
outline-offset: 2ut;
|
85
|
-
}
|
86
|
-
&:active {
|
87
|
-
@apply bg-secondary-100;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
/* Import component styles */
|
2
|
-
|
3
|
-
/* Panels */
|
4
|
-
/*@import "./components/panels/plain-panel.postcss";*/
|
5
|
-
|
6
|
-
/* Rows */
|
7
|
-
/*@import "./components/rows/panel-grid-row.postcss";*/
|
8
|
-
/*@import "./components/rows/panel-row-2.postcss";*/
|
9
|
-
|
10
|
-
/* Buttons */
|
11
|
-
@import "./components/buttons/button.postcss";
|
12
|
-
@import "./components/buttons/button-text.postcss";
|
13
|
-
@import "./components/buttons/button-icon-steeze.postcss";
|
14
|
-
|
15
|
-
/*@import "./components/buttons/skip-button.postcss";*/
|
16
|
-
|
17
|
-
/* Icons */
|
18
|
-
@import "./components/icons/icon-steeze.postcss";
|
19
|
-
|
20
|
-
/* Inputs */
|
21
|
-
@import "./components/inputs/text-input.postcss";
|
22
|
-
|
23
|
-
/* ... */
|
24
|
-
/*@import "./components/select-level.postcss";*/
|
25
|
-
@import "./components/blocks/text-block.postcss";
|
26
|
-
|
27
|
-
/* Not used */
|
28
|
-
/*@import "./components/hk-tab-icon.postcss";*/
|
29
|
-
/*@import "./components/avatar-layer.postcss";*/
|
30
|
-
|
31
|
-
/* Wrap component styles in theme selector */
|
32
|
-
|
33
|
-
|
34
|
-
[data-theme=hkdev] {
|
35
|
-
|
36
|
-
/* Panels */
|
37
|
-
/* @mixin panels-plain-panel;*/
|
38
|
-
/* @mixin panels-speech-bubble;*/
|
39
|
-
|
40
|
-
/* Rows */
|
41
|
-
/* @mixin rows-panel-grid-row;*/
|
42
|
-
/* @mixin rows-panel-row-2;*/
|
43
|
-
|
44
|
-
/* Buttons */
|
45
|
-
@mixin component-button;
|
46
|
-
@mixin component-button-text;
|
47
|
-
@mixin component-button-icon-steeze;
|
48
|
-
/* @mixin buttons-skip-button;*/
|
49
|
-
|
50
|
-
@mixin component-icon-steeze;
|
51
|
-
|
52
|
-
@mixin text_block;
|
53
|
-
|
54
|
-
/* Inputs */
|
55
|
-
@mixin inputs-text-input;
|
56
|
-
|
57
|
-
/* ... */
|
58
|
-
/* @mixin hk_tab_icon;*/
|
59
|
-
/* @mixin avatar_layer;*/
|
60
|
-
/* @mixin select_level;*/
|
61
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Tailwind defaults
|
3
|
-
*
|
4
|
-
* text-sm 14px;
|
5
|
-
* text-base 16px;
|
6
|
-
* text-lg 18px;
|
7
|
-
* text-xl 20px;
|
8
|
-
* text-2xl 24px;
|
9
|
-
* text-3xl 30px;
|
10
|
-
* text-4xl 36px;
|
11
|
-
* text-5xl 48px;
|
12
|
-
* text-6xl 60px;
|
13
|
-
* text-7xl 72px;
|
14
|
-
* text-8xl 96px;
|
15
|
-
* text-9xl 128px;
|
16
|
-
*
|
17
|
-
* @see https://tailwindcss.com/docs/font-size
|
18
|
-
*/
|
19
|
-
|
20
|
-
@define-mixin all_text {
|
21
|
-
|
22
|
-
a {
|
23
|
-
@apply text-sm font-bold underline;
|
24
|
-
}
|
25
|
-
|
26
|
-
p {
|
27
|
-
@apply text-xl;
|
28
|
-
}
|
29
|
-
|
30
|
-
h1 {
|
31
|
-
&.text-presenter-title {
|
32
|
-
@apply text-5xl;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/*@import "./global/vars.postcss";*/
|
2
|
-
/*@import "./global/on-colors.postcss";*/
|
3
|
-
@import "./global/layout.postcss";
|
4
|
-
/*@import "./global/text.postcss";*/
|
5
|
-
|
6
|
-
[data-theme="hkdev"] {
|
7
|
-
/* @mixin all_vars;*/
|
8
|
-
/* @mixin all_on_colors;*/
|
9
|
-
@mixin all_layout;
|
10
|
-
/* @mixin all_text;*/
|
11
|
-
}
|
File without changes
|
File without changes
|
/package/dist/themes/hkdev/components/buttons/{button-icon-steeze.postcss → button-icon-steeze.css}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|