@streamscloud/kit 0.0.1-1770808655497 → 0.0.1-1770815159445

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.
@@ -0,0 +1,225 @@
1
+ /* Document
2
+ * ========================================================================== */
3
+ /**
4
+ * 1. Correct the line height in all browsers.
5
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
6
+ */
7
+ :where(html) {
8
+ line-height: 1.15; /* 1 */
9
+ -webkit-text-size-adjust: 100%; /* 2 */
10
+ text-size-adjust: 100%; /* 2 */
11
+ }
12
+
13
+ /* Sections
14
+ * ========================================================================== */
15
+ /**
16
+ * Correct the font size and margin on `h1` elements within `section` and
17
+ * `article` contexts in Chrome, Edge, Firefox, and Safari.
18
+ */
19
+ :where(h1) {
20
+ font-size: 2em;
21
+ margin-block-end: 0.67em;
22
+ margin-block-start: 0.67em;
23
+ }
24
+
25
+ /* Grouping content
26
+ * ========================================================================== */
27
+ /**
28
+ * Remove the margin on nested lists in Chrome, Edge, and Safari.
29
+ */
30
+ :where(dl, ol, ul) :where(dl, ol, ul) {
31
+ margin-block-end: 0;
32
+ margin-block-start: 0;
33
+ }
34
+
35
+ /**
36
+ * 1. Add the correct box sizing in Firefox.
37
+ * 2. Correct the inheritance of border color in Firefox.
38
+ */
39
+ :where(hr) {
40
+ box-sizing: content-box; /* 1 */
41
+ color: inherit; /* 2 */
42
+ height: 0; /* 1 */
43
+ }
44
+
45
+ /* Text-level semantics
46
+ * ========================================================================== */
47
+ /**
48
+ * Add the correct text decoration in Safari.
49
+ */
50
+ :where(abbr[title]) {
51
+ text-decoration: underline;
52
+ text-decoration: underline dotted;
53
+ }
54
+
55
+ /**
56
+ * Add the correct font weight in Chrome, Edge, and Safari.
57
+ */
58
+ :where(b, strong) {
59
+ font-weight: bolder;
60
+ }
61
+
62
+ /**
63
+ * 1. Correct the inheritance and scaling of font size in all browsers.
64
+ * 2. Correct the odd `em` font sizing in all browsers.
65
+ */
66
+ :where(code, kbd, pre, samp) {
67
+ font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
68
+ font-size: 1em; /* 2 */
69
+ }
70
+
71
+ /**
72
+ * Add the correct font size in all browsers.
73
+ */
74
+ :where(small) {
75
+ font-size: 80%;
76
+ }
77
+
78
+ /* Tabular data
79
+ * ========================================================================== */
80
+ /**
81
+ * 1. Correct table border color in Chrome, Edge, and Safari.
82
+ * 2. Remove text indentation from table contents in Chrome, Edge, and Safari.
83
+ */
84
+ :where(table) {
85
+ border-color: currentColor; /* 1 */
86
+ text-indent: 0; /* 2 */
87
+ }
88
+
89
+ /* Forms
90
+ * ========================================================================== */
91
+ /**
92
+ * Remove the margin on controls in Safari.
93
+ */
94
+ :where(button, input, select) {
95
+ margin: 0;
96
+ }
97
+
98
+ /**
99
+ * Remove the inheritance of text transform in Firefox.
100
+ */
101
+ :where(button) {
102
+ text-transform: none;
103
+ }
104
+
105
+ /**
106
+ * Correct the inability to style buttons in iOS and Safari.
107
+ */
108
+ :where(button, input:is([type=button i], [type=reset i], [type=submit i])) {
109
+ -webkit-appearance: button;
110
+ }
111
+
112
+ /**
113
+ * Add the correct vertical alignment in Chrome, Edge, and Firefox.
114
+ */
115
+ :where(progress) {
116
+ vertical-align: baseline;
117
+ }
118
+
119
+ /**
120
+ * Remove the inheritance of text transform in Firefox.
121
+ */
122
+ :where(select) {
123
+ text-transform: none;
124
+ }
125
+
126
+ /**
127
+ * Remove the margin in Firefox and Safari.
128
+ */
129
+ :where(textarea) {
130
+ margin: 0;
131
+ }
132
+
133
+ /**
134
+ * 1. Correct the odd appearance in Chrome, Edge, and Safari.
135
+ * 2. Correct the outline style in Safari.
136
+ */
137
+ :where(input[type=search i]) {
138
+ -webkit-appearance: textfield; /* 1 */
139
+ outline-offset: -2px; /* 2 */
140
+ }
141
+
142
+ /**
143
+ * Correct the cursor style of increment and decrement buttons in Safari.
144
+ */
145
+ ::-webkit-inner-spin-button,
146
+ ::-webkit-outer-spin-button {
147
+ height: auto;
148
+ }
149
+
150
+ /**
151
+ * Correct the text style of placeholders in Chrome, Edge, and Safari.
152
+ */
153
+ ::-webkit-input-placeholder {
154
+ color: inherit;
155
+ opacity: 0.54;
156
+ }
157
+
158
+ /**
159
+ * Remove the inner padding in Chrome, Edge, and Safari on macOS.
160
+ */
161
+ ::-webkit-search-decoration {
162
+ -webkit-appearance: none;
163
+ }
164
+
165
+ /**
166
+ * 1. Correct the inability to style upload buttons in iOS and Safari.
167
+ * 2. Change font properties to `inherit` in Safari.
168
+ */
169
+ ::-webkit-file-upload-button {
170
+ -webkit-appearance: button; /* 1 */
171
+ font: inherit; /* 2 */
172
+ }
173
+
174
+ /**
175
+ * Remove the inner border and padding of focus outlines in Firefox.
176
+ */
177
+ :where(button, input:is([type=button i], [type=color i], [type=reset i], [type=submit i]))::-moz-focus-inner {
178
+ border-style: none;
179
+ padding: 0;
180
+ }
181
+
182
+ /**
183
+ * Restore the focus outline styles unset by the previous rule in Firefox.
184
+ */
185
+ :where(button, input:is([type=button i], [type=color i], [type=reset i], [type=submit i]))::-moz-focusring {
186
+ outline: 1px dotted ButtonText;
187
+ }
188
+
189
+ /**
190
+ * Remove the additional :invalid styles in Firefox.
191
+ */
192
+ :where(:-moz-ui-invalid) {
193
+ box-shadow: none;
194
+ }
195
+
196
+ /* Interactive
197
+ * ========================================================================== */
198
+ /*
199
+ * Add the correct styles in Safari.
200
+ */
201
+ :where(dialog) {
202
+ background-color: white;
203
+ border: solid;
204
+ color: black;
205
+ height: -moz-fit-content;
206
+ height: fit-content;
207
+ left: 0;
208
+ margin: auto;
209
+ padding: 1em;
210
+ position: absolute;
211
+ right: 0;
212
+ width: -moz-fit-content;
213
+ width: fit-content;
214
+ }
215
+
216
+ :where(dialog:not([open])) {
217
+ display: none;
218
+ }
219
+
220
+ /*
221
+ * Add the correct display in all browsers.
222
+ */
223
+ :where(summary) {
224
+ display: list-item;
225
+ }
@@ -0,0 +1,194 @@
1
+ /*
2
+ * Modern CSS Reset
3
+ * Based on Josh W. Comeau's reset with custom additions
4
+ */
5
+ /* 1. Use a more-intuitive box-sizing model */
6
+ html {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ *,
11
+ *::before,
12
+ *::after {
13
+ box-sizing: inherit;
14
+ border-width: 0;
15
+ border-style: solid;
16
+ }
17
+
18
+ /* 2. Remove default margin */
19
+ *:not(dialog) {
20
+ margin: 0;
21
+ }
22
+
23
+ /* 3. Enable keyword animations */
24
+ @media (prefers-reduced-motion: no-preference) {
25
+ html {
26
+ interpolate-size: allow-keywords;
27
+ }
28
+ }
29
+ /* 4. Add accessible line-height and improve text rendering */
30
+ body {
31
+ line-height: 1.5;
32
+ -webkit-font-smoothing: antialiased;
33
+ }
34
+
35
+ /* 5. Improve media defaults */
36
+ img,
37
+ picture,
38
+ video,
39
+ canvas,
40
+ svg {
41
+ display: block;
42
+ vertical-align: middle;
43
+ max-width: 100%;
44
+ }
45
+
46
+ img {
47
+ border: none;
48
+ height: auto;
49
+ }
50
+
51
+ video {
52
+ outline: none;
53
+ }
54
+
55
+ /* 6. Inherit fonts for form controls */
56
+ input,
57
+ button,
58
+ textarea,
59
+ select {
60
+ font: inherit;
61
+ }
62
+
63
+ /* 7. Avoid text overflows */
64
+ p,
65
+ h1,
66
+ h2,
67
+ h3,
68
+ h4,
69
+ h5,
70
+ h6 {
71
+ overflow-wrap: break-word;
72
+ }
73
+
74
+ /* 8. Improve line wrapping */
75
+ p {
76
+ text-wrap: pretty;
77
+ }
78
+
79
+ h1,
80
+ h2,
81
+ h3,
82
+ h4,
83
+ h5,
84
+ h6 {
85
+ text-wrap: balance;
86
+ }
87
+
88
+ /* ========================================
89
+ * Custom additions
90
+ * ======================================== */
91
+ /* Lists */
92
+ ul,
93
+ ol {
94
+ list-style: none;
95
+ padding: 0;
96
+ }
97
+
98
+ li {
99
+ list-style: inherit;
100
+ }
101
+
102
+ /* Input & Textarea */
103
+ input {
104
+ vertical-align: middle;
105
+ min-width: 0;
106
+ }
107
+ input::placeholder {
108
+ color: var(--input--placeholder--color, #c1c1c1) !important;
109
+ }
110
+ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
111
+ -webkit-background-clip: text;
112
+ }
113
+ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
114
+ -webkit-appearance: none;
115
+ margin: 0;
116
+ }
117
+ input[type=number] {
118
+ -moz-appearance: textfield;
119
+ }
120
+
121
+ textarea {
122
+ vertical-align: top;
123
+ resize: vertical;
124
+ --_cross-browser-scrollbar--thumb-color: var(--scrollbar--thumb-color, #7d7d7d);
125
+ --_cross-browser-scrollbar--track-color: var(--scrollbar--track-color, transparent);
126
+ }
127
+ textarea::-webkit-scrollbar {
128
+ width: 6px;
129
+ height: 6px;
130
+ }
131
+ textarea::-webkit-scrollbar-track {
132
+ background: var(--_cross-browser-scrollbar--track-color);
133
+ border-radius: 100vw;
134
+ }
135
+ textarea::-webkit-scrollbar-thumb {
136
+ background: var(--_cross-browser-scrollbar--thumb-color);
137
+ border-radius: 100vw;
138
+ }
139
+ @supports (scrollbar-color: transparent transparent) {
140
+ textarea {
141
+ scrollbar-color: var(--_cross-browser-scrollbar--thumb-color) var(--_cross-browser-scrollbar--track-color);
142
+ scrollbar-width: thin;
143
+ }
144
+ }
145
+ textarea::placeholder {
146
+ color: var(--input--placeholder--color, #c1c1c1) !important;
147
+ }
148
+
149
+ input:focus,
150
+ textarea:focus {
151
+ outline: none;
152
+ }
153
+
154
+ /* Button */
155
+ button,
156
+ input[type=submit] {
157
+ cursor: pointer;
158
+ -webkit-appearance: none;
159
+ background-color: transparent;
160
+ padding: 0;
161
+ text-align: left;
162
+ color: inherit;
163
+ }
164
+ button:focus,
165
+ input[type=submit]:focus {
166
+ outline: none;
167
+ }
168
+ button:disabled,
169
+ input[type=submit]:disabled {
170
+ cursor: default;
171
+ }
172
+
173
+ /* Details/Summary */
174
+ details summary {
175
+ list-style: none;
176
+ }
177
+ details summary::-webkit-details-marker {
178
+ display: none;
179
+ }
180
+ details > * {
181
+ box-sizing: border-box;
182
+ }
183
+
184
+ /* Links */
185
+ a {
186
+ color: inherit;
187
+ text-decoration: none;
188
+ transition: color linear 0.2s;
189
+ }
190
+
191
+ /* Table */
192
+ table {
193
+ border-collapse: collapse;
194
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.0.1-1770808655497",
3
+ "version": "0.0.1-1770815159445",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,8 @@
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "dev": "vite dev --port 3011 --host",
12
- "build": "svelte-package --tsconfig ./tsconfig.app.json && prettier --write --plugin prettier-plugin-svelte . && eslint --fix .",
12
+ "build": "svelte-package --tsconfig ./tsconfig.app.json && npm run build:css && prettier --write --plugin prettier-plugin-svelte . && eslint --fix .",
13
+ "build:css": "sass dist/styles/_normalize.scss dist/styles/normalize.css --no-source-map && sass dist/styles/_reset.scss dist/styles/reset.css --no-source-map",
13
14
  "publish:prod": "npm run build && npm publish --access public --tag latest",
14
15
  "version:dev": "node -e \"const fs=require('fs');const pkg=require('./package.json');const base=(pkg.version.includes('-')?pkg.version.split('-')[0]:pkg.version);pkg.version=base+'-'+Date.now();fs.writeFileSync('package.json',JSON.stringify(pkg,null,2)+'\\n');\"",
15
16
  "publish:dev": "npm run build && npm run version:dev && npm publish --tag next && git checkout -- package.json",
@@ -98,6 +99,8 @@
98
99
  "./styles/base": {
99
100
  "sass": "./dist/styles/_index.scss"
100
101
  },
102
+ "./styles/normalize.css": "./dist/styles/normalize.css",
103
+ "./styles/reset.css": "./dist/styles/reset.css",
101
104
  "./styles/theme": {
102
105
  "sass": "./dist/styles/_theme.scss"
103
106
  }