@skeletonlabs/skeleton 1.11.0-dev.fa91c649 → 2.0.0-rc.0

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.
Files changed (122) hide show
  1. package/dist/components/Accordion/Accordion.svelte +15 -3
  2. package/dist/components/Accordion/Accordion.svelte.d.ts +17 -23
  3. package/dist/components/Accordion/AccordionItem.svelte +8 -3
  4. package/dist/components/Accordion/AccordionItem.svelte.d.ts +15 -25
  5. package/dist/components/AppRail/AppRailTile.svelte +1 -1
  6. package/dist/components/Autocomplete/Autocomplete.svelte +17 -7
  7. package/dist/components/Autocomplete/Autocomplete.svelte.d.ts +17 -27
  8. package/dist/components/Avatar/Avatar.svelte +1 -1
  9. package/dist/components/ConicGradient/ConicGradient.svelte +1 -1
  10. package/dist/components/InputChip/InputChip.svelte +25 -4
  11. package/dist/components/InputChip/InputChip.svelte.d.ts +22 -27
  12. package/dist/components/Paginator/Paginator.svelte +18 -16
  13. package/dist/components/Paginator/Paginator.svelte.d.ts +2 -2
  14. package/dist/components/Paginator/types.d.ts +2 -2
  15. package/dist/components/Ratings/Ratings.svelte +1 -1
  16. package/dist/components/Stepper/Step.svelte +11 -2
  17. package/dist/components/Stepper/Step.svelte.d.ts +15 -12
  18. package/dist/components/Stepper/Stepper.svelte +21 -3
  19. package/dist/components/Stepper/Stepper.svelte.d.ts +17 -27
  20. package/dist/components/Tab/TabGroup.svelte +1 -1
  21. package/dist/components/Table/Table.svelte +1 -1
  22. package/dist/index.d.ts +10 -9
  23. package/dist/index.js +10 -12
  24. package/dist/internal/transitions.d.ts +10 -0
  25. package/dist/internal/transitions.js +11 -0
  26. package/dist/transitions/crossfade.d.ts +1 -0
  27. package/dist/transitions/crossfade.js +21 -0
  28. package/dist/types.d.ts +8 -0
  29. package/dist/types.js +1 -0
  30. package/dist/utilities/Drawer/Drawer.svelte +33 -12
  31. package/dist/utilities/Drawer/Drawer.svelte.d.ts +4 -2
  32. package/dist/utilities/Drawer/stores.d.ts +20 -1
  33. package/dist/utilities/Drawer/stores.js +27 -2
  34. package/dist/utilities/Drawer/types.d.ts +2 -0
  35. package/dist/utilities/Modal/Modal.svelte +21 -23
  36. package/dist/utilities/Modal/Modal.svelte.d.ts +17 -37
  37. package/dist/utilities/Modal/stores.d.ts +20 -1
  38. package/dist/utilities/Modal/stores.js +27 -1
  39. package/dist/utilities/PrefersReducedMotion/PrefersReducedMotion.d.ts +7 -0
  40. package/dist/utilities/PrefersReducedMotion/PrefersReducedMotion.js +26 -0
  41. package/dist/utilities/TableOfContents/TableOfContents.svelte +56 -0
  42. package/dist/utilities/TableOfContents/TableOfContents.svelte.d.ts +34 -0
  43. package/dist/utilities/TableOfContents/crawler.d.ts +14 -0
  44. package/dist/utilities/TableOfContents/crawler.js +76 -0
  45. package/dist/utilities/TableOfContents/stores.d.ts +6 -0
  46. package/dist/utilities/TableOfContents/stores.js +5 -0
  47. package/dist/utilities/TableOfContents/types.d.ts +5 -0
  48. package/dist/utilities/TableOfContents/types.js +2 -0
  49. package/dist/utilities/Toast/Toast.svelte +24 -23
  50. package/dist/utilities/Toast/Toast.svelte.d.ts +17 -24
  51. package/dist/utilities/Toast/stores.d.ts +23 -5
  52. package/dist/utilities/Toast/stores.js +56 -29
  53. package/dist/utilities/index.d.ts +18 -0
  54. package/dist/utilities/index.js +25 -0
  55. package/package.json +3 -16
  56. package/dist/components/TableOfContents/TableOfContents.svelte +0 -111
  57. package/dist/components/TableOfContents/TableOfContents.svelte.d.ts +0 -44
  58. package/dist/styles/all.css +0 -30
  59. package/dist/styles/elements/alerts.css +0 -17
  60. package/dist/styles/elements/badges.css +0 -31
  61. package/dist/styles/elements/breadcrumbs.css +0 -36
  62. package/dist/styles/elements/buttons.css +0 -109
  63. package/dist/styles/elements/cards.css +0 -32
  64. package/dist/styles/elements/chips.css +0 -22
  65. package/dist/styles/elements/codeblocks.css +0 -16
  66. package/dist/styles/elements/forms.css +0 -283
  67. package/dist/styles/elements/lists.css +0 -51
  68. package/dist/styles/elements/logo-clouds.css +0 -29
  69. package/dist/styles/elements/modals.css +0 -15
  70. package/dist/styles/elements/placeholders.css +0 -17
  71. package/dist/styles/elements/popups.css +0 -16
  72. package/dist/styles/elements/tables.css +0 -102
  73. package/dist/styles/partials/core.css +0 -66
  74. package/dist/styles/partials/elements.css +0 -20
  75. package/dist/styles/partials/tailwind.css +0 -16
  76. package/dist/styles/partials/typography-next.css +0 -99
  77. package/dist/styles/partials/typography-prose.css +0 -49
  78. package/dist/styles/partials/typography.css +0 -99
  79. package/dist/styles/partials/variants.css +0 -204
  80. package/dist/styles/skeleton-minimal.css +0 -30
  81. package/dist/styles/skeleton.css +0 -30
  82. package/dist/tailwind/core.cjs +0 -37
  83. package/dist/tailwind/core.d.cts +0 -5
  84. package/dist/tailwind/generated/intellisense-classes.cjs +0 -1
  85. package/dist/tailwind/generated/intellisense-classes.d.cts +0 -2729
  86. package/dist/tailwind/intellisense.cjs +0 -21
  87. package/dist/tailwind/intellisense.d.cts +0 -5
  88. package/dist/tailwind/settings.cjs +0 -20
  89. package/dist/tailwind/settings.d.cts +0 -6
  90. package/dist/tailwind/skeleton.cjs +0 -19
  91. package/dist/tailwind/skeleton.d.cts +0 -7
  92. package/dist/tailwind/theme/colors.cjs +0 -18
  93. package/dist/tailwind/theme/colors.d.cts +0 -2
  94. package/dist/tailwind/tokens/backgrounds.cjs +0 -39
  95. package/dist/tailwind/tokens/backgrounds.d.cts +0 -2
  96. package/dist/tailwind/tokens/border-radius.cjs +0 -21
  97. package/dist/tailwind/tokens/border-radius.d.cts +0 -33
  98. package/dist/tailwind/tokens/borders.cjs +0 -20
  99. package/dist/tailwind/tokens/borders.d.cts +0 -6
  100. package/dist/tailwind/tokens/fills.cjs +0 -20
  101. package/dist/tailwind/tokens/fills.d.cts +0 -15
  102. package/dist/tailwind/tokens/rings.cjs +0 -50
  103. package/dist/tailwind/tokens/rings.d.cts +0 -22
  104. package/dist/tailwind/tokens/text.cjs +0 -31
  105. package/dist/tailwind/tokens/text.d.cts +0 -21
  106. package/dist/themes/theme-crimson.css +0 -100
  107. package/dist/themes/theme-gold-nouveau.css +0 -143
  108. package/dist/themes/theme-hamlindigo.css +0 -109
  109. package/dist/themes/theme-modern.css +0 -134
  110. package/dist/themes/theme-rocket.css +0 -120
  111. package/dist/themes/theme-sahara.css +0 -133
  112. package/dist/themes/theme-seafoam.css +0 -128
  113. package/dist/themes/theme-seasonal.css +0 -114
  114. package/dist/themes/theme-skeleton.css +0 -119
  115. package/dist/themes/theme-test.css +0 -96
  116. package/dist/themes/theme-vintage.css +0 -131
  117. package/dist/utilities/DataTable/DataTable.d.ts +0 -19
  118. package/dist/utilities/DataTable/DataTable.js +0 -137
  119. package/dist/utilities/DataTable/types.d.ts +0 -33
  120. package/dist/utilities/DataTable/types.js +0 -2
  121. /package/dist/{utilities/DataTable → components/Table}/actions.d.ts +0 -0
  122. /package/dist/{utilities/DataTable → components/Table}/actions.js +0 -0
@@ -1,22 +0,0 @@
1
- /* Tailwind Elements: chips.css */
2
-
3
- @layer components {
4
- .chip {
5
- @apply px-3 py-1.5 whitespace-nowrap cursor-pointer;
6
- /* Text */
7
- @apply text-xs text-center;
8
- /* Rounded */
9
- @apply rounded;
10
- /* Flex Columns */
11
- @apply inline-flex justify-center items-center space-x-2;
12
- /* States */
13
- @apply hover:brightness-[1.15];
14
- /* Transitions */
15
- @apply transition-all;
16
- }
17
-
18
- .chip-disabled,
19
- .chip:disabled {
20
- @apply !opacity-50 !cursor-not-allowed active:scale-100;
21
- }
22
- }
@@ -1,16 +0,0 @@
1
- /* Elements: codeblocks.css */
2
-
3
- @layer components {
4
- .codeblock pre {
5
- counter-reset: line;
6
- }
7
-
8
- .codeblock code.lineNumbers > span.line {
9
- counter-increment: line;
10
- }
11
-
12
- .codeblock code.lineNumbers > span.line::before {
13
- content: counter(line) '';
14
- @apply opacity-50;
15
- }
16
- }
@@ -1,283 +0,0 @@
1
- /* Stylesheet: forms.css */
2
-
3
- @layer base {
4
- /* === Resets === */
5
-
6
- fieldset,
7
- legend,
8
- label {
9
- @apply block;
10
- }
11
-
12
- /* Placeholders */
13
- ::-moz-placeholder {
14
- @apply text-surface-500-400-token;
15
- }
16
- :-ms-input-placeholder {
17
- @apply text-surface-500-400-token;
18
- }
19
- ::placeholder {
20
- @apply text-surface-500-400-token;
21
- }
22
-
23
- /* Date Calendar Picker (Webkit) */
24
- input::-webkit-calendar-picker-indicator {
25
- @apply dark:invert;
26
- }
27
-
28
- /* Search Input "X" Cancel Button (Webkit) */
29
- /* Source: https://stackoverflow.com/a/64267916 */
30
- input[type='search']::-webkit-search-cancel-button {
31
- -webkit-appearance: none;
32
- background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z'/%3E%3C/svg%3E")
33
- no-repeat 50% 50%;
34
- @apply h-4 w-4 rounded-full bg-contain opacity-0 pointer-events-none;
35
- }
36
- input[type='search']:focus::-webkit-search-cancel-button {
37
- @apply opacity-100 pointer-events-auto;
38
- }
39
- input[type='search']::-webkit-search-cancel-button {
40
- @apply dark:invert;
41
- }
42
-
43
- /* Progress Bar */
44
- progress {
45
- webkit-appearance: none;
46
- -moz-appearance: none;
47
- appearance: none;
48
- @apply w-full h-2 overflow-hidden rounded-token;
49
- @apply bg-surface-400-500-token;
50
- }
51
- progress::-webkit-progress-bar {
52
- @apply bg-surface-400-500-token;
53
- }
54
- progress::-webkit-progress-value {
55
- @apply bg-surface-900-50-token;
56
- }
57
- ::-moz-progress-bar {
58
- @apply bg-surface-900-50-token;
59
- }
60
- :indeterminate::-moz-progress-bar {
61
- width: 0;
62
- }
63
-
64
- /* Range Input */
65
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
66
- [type='range'] {
67
- @apply w-full accent-surface-900 dark:accent-surface-50;
68
- }
69
-
70
- /* === Text Labeling === */
71
-
72
- .legend {
73
- @apply font-heading-token text-xl md:text-2xl;
74
- }
75
-
76
- .label {
77
- @apply space-y-1;
78
- }
79
-
80
- /* === Core Styles === */
81
-
82
- .input,
83
- .textarea,
84
- .select,
85
- .input-group {
86
- @apply w-full transition duration-200;
87
- /* Background */
88
- @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
89
- /* Ring */
90
- @apply !ring-0;
91
- /* Border */
92
- @apply border-token border-surface-400-500-token focus-within:border-primary-500;
93
- }
94
-
95
- /* Base Inputs */
96
- .input,
97
- .input-group {
98
- @apply rounded-token;
99
- }
100
-
101
- /* Container Inputs */
102
- .textarea,
103
- .select {
104
- @apply rounded-container-token;
105
- }
106
-
107
- /* Select (size/multiple) */
108
- .select {
109
- @apply p-2 pr-8 space-y-1;
110
- }
111
- .select[size] {
112
- @apply bg-none;
113
- }
114
- .select optgroup {
115
- @apply space-y-1 font-bold;
116
- }
117
- .select optgroup option {
118
- @apply ml-0 pl-0;
119
- }
120
- .select optgroup option:first-of-type {
121
- @apply mt-3;
122
- }
123
- .select optgroup option:last-child {
124
- @apply !mb-3;
125
- }
126
- .select option {
127
- @apply bg-surface-200-700-token px-4 py-2 rounded-token cursor-pointer;
128
- }
129
- .select option:checked {
130
- /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
131
- background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
132
- @apply text-on-primary-token;
133
- }
134
-
135
- /* Checkbox & Radio */
136
- .checkbox,
137
- .radio {
138
- @apply w-5 h-5 !ring-0 rounded cursor-pointer;
139
- /* Background */
140
- @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
141
- /* Border */
142
- @apply border-token border-surface-400-500-token focus:border-primary-500;
143
- }
144
- .checkbox:checked,
145
- .radio:checked {
146
- @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
147
- }
148
- .radio {
149
- @apply rounded-token;
150
- }
151
-
152
- /* === Specialized === */
153
-
154
- /* File Inputs */
155
- .input[type='file'] {
156
- @apply p-1;
157
- }
158
-
159
- /* Color Picker */
160
- /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
161
- .input[type='color'] {
162
- @apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
163
- -webkit-appearance: none; /* WebKit Only */
164
- }
165
- .input[type='color']::-webkit-color-swatch-wrapper {
166
- @apply p-0;
167
- }
168
- .input[type='color']::-webkit-color-swatch {
169
- @apply border-none hover:brightness-110;
170
- }
171
- .input[type='color']::-moz-color-swatch {
172
- @apply border-none;
173
- }
174
-
175
- /* === States === */
176
-
177
- .input:disabled,
178
- .textarea:disabled,
179
- .select:disabled {
180
- @apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
181
- }
182
-
183
- .input[readonly],
184
- .textarea[readonly],
185
- .select[readonly] {
186
- @apply !border-0 !cursor-not-allowed hover:!brightness-100;
187
- }
188
-
189
- /* === Input Groups === */
190
-
191
- .input-group {
192
- @apply grid overflow-hidden;
193
- }
194
- .input-group input,
195
- .input-group select {
196
- @apply border-0 !ring-0 bg-transparent;
197
- }
198
- .input-group select option {
199
- @apply bg-surface-200-700-token;
200
- }
201
- .input-group div,
202
- .input-group a,
203
- .input-group button {
204
- @apply px-4 flex justify-between items-center;
205
- }
206
- .input-group-divider input,
207
- .input-group-divider select,
208
- .input-group-divider div,
209
- .input-group-divider a {
210
- @apply border-l border-surface-400-500-token focus:border-surface-400-500-token;
211
- /* Disable Ring */
212
- @apply !ring-0;
213
- /* Prevent buttons from being squished */
214
- @apply !min-w-fit;
215
- }
216
- .input-group-divider *:first-child {
217
- @apply !border-l-0;
218
- }
219
- .input-group-shim {
220
- @apply bg-surface-400/10 text-surface-600-300-token;
221
- }
222
-
223
- /* === Variants === */
224
-
225
- /* success */
226
- .input-success {
227
- @apply !bg-success-200 !border-success-500 !text-success-700;
228
- }
229
- .input-success::-moz-placeholder {
230
- @apply text-success-700;
231
- }
232
- .input-success:-ms-input-placeholder {
233
- @apply text-success-700;
234
- }
235
- .input-success::placeholder {
236
- @apply text-success-700;
237
- }
238
-
239
- /* warning */
240
- .input-warning {
241
- @apply !bg-warning-200 !border-warning-500 !text-warning-700;
242
- }
243
- .input-warning::-moz-placeholder {
244
- @apply text-warning-700;
245
- }
246
- .input-warning:-ms-input-placeholder {
247
- @apply text-warning-700;
248
- }
249
- .input-warning::placeholder {
250
- @apply text-warning-700;
251
- }
252
-
253
- /* error */
254
- .input-error {
255
- @apply !bg-error-200 !border-error-500 !text-error-500;
256
- }
257
- .input-error::-moz-placeholder {
258
- @apply text-error-500;
259
- }
260
- .input-error:-ms-input-placeholder {
261
- @apply text-error-500;
262
- }
263
- .input-error::placeholder {
264
- @apply text-error-500;
265
- }
266
-
267
- /* === Variants === */
268
-
269
- /* Material */
270
- .variant-form-material {
271
- /* Border Radius */
272
- @apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none;
273
- /* Background */
274
- @apply bg-surface-500/10 dark:bg-surface-500/20;
275
- /* Border */
276
- @apply border-0 border-b-2;
277
- /* Blur / high CPU usage on some browsers, see https://github.com/skeletonlabs/skeleton/issues/1805 */
278
- /* @apply backdrop-blur; */
279
- }
280
- .variant-form-material[type='file'] {
281
- @apply !py-1.5;
282
- }
283
- }
@@ -1,51 +0,0 @@
1
- /* Tailwind Elements: button.css */
2
-
3
- @layer components {
4
- /* === Lists (Parents) === */
5
-
6
- .list,
7
- .list-dl,
8
- .list-nav ul {
9
- /* List Style */
10
- @apply list-none;
11
- /* Spacing */
12
- @apply space-y-1;
13
- }
14
-
15
- /* === List Items (Children) === */
16
-
17
- .list li {
18
- /* @apply bg-red-500; */
19
- @apply flex items-center space-x-4;
20
- /* Padding */
21
- /* @apply p-2; */
22
- /* Theme: Rounded */
23
- @apply rounded-token;
24
- /* Wrapping */
25
- @apply whitespace-normal break-words;
26
- }
27
- .list-dl div {
28
- /* @apply bg-blue-500; */
29
- @apply flex items-center space-x-4 whitespace-nowrap;
30
- /* Padding */
31
- @apply p-2;
32
- /* Theme: Rounded */
33
- @apply rounded-token;
34
- }
35
-
36
- .list-nav a,
37
- .list-nav button,
38
- .list-option {
39
- @apply flex items-center space-x-4 whitespace-nowrap;
40
- /* Padding */
41
- @apply px-4 py-2;
42
- /* Hover */
43
- @apply bg-primary-hover-token;
44
- /* Focus */
45
- @apply focus:variant-soft-primary outline-none;
46
- /* Cursor */
47
- @apply cursor-pointer;
48
- /* Theme: Rounded */
49
- @apply rounded-token;
50
- }
51
- }
@@ -1,29 +0,0 @@
1
- /* Tailwind Elements: logo-clouds.css */
2
-
3
- @layer components {
4
- .logo-cloud {
5
- @apply grid overflow-hidden;
6
- /* Theme: Rounded */
7
- @apply rounded-container-token;
8
- }
9
-
10
- /* === Logo Item (Child) === */
11
-
12
- .logo-item {
13
- @apply flex-auto text-center space-x-4 shadow;
14
- /* Center Contents */
15
- @apply flex justify-center items-center space-x-4;
16
- /* Background */
17
- @apply bg-surface-100-800-token;
18
- /* Text */
19
- @apply text-base font-bold text-black dark:text-white;
20
- /* Padding */
21
- @apply py-4 md:py-8;
22
- }
23
-
24
- /* === States === */
25
-
26
- a.logo-item {
27
- @apply hover:brightness-110;
28
- }
29
- }
@@ -1,15 +0,0 @@
1
- /* Tailwind Elements: modals.css */
2
-
3
- /* === Modal (helpers) === */
4
-
5
- .w-modal-slim {
6
- @apply w-full max-w-[400px];
7
- }
8
-
9
- .w-modal {
10
- @apply w-full max-w-[640px];
11
- }
12
-
13
- .w-modal-wide {
14
- @apply w-full max-w-[80%];
15
- }
@@ -1,17 +0,0 @@
1
- /* Tailwind Elements: placeholders.css */
2
-
3
- @layer components {
4
- /* === Base === */
5
-
6
- .placeholder {
7
- @apply bg-surface-300-600-token h-5;
8
- /* Theme: Rounded */
9
- @apply rounded-token;
10
- }
11
-
12
- /* === Shapes === */
13
-
14
- .placeholder-circle {
15
- @apply bg-surface-300-600-token aspect-square rounded-full;
16
- }
17
- }
@@ -1,16 +0,0 @@
1
- /* Tailwind Elements: popups.css */
2
-
3
- /* === Popup === */
4
-
5
- [data-popup] {
6
- /* https://floating-ui.com/docs/computeposition#usage */
7
- @apply absolute top-0 left-0;
8
- /* Set hidden on page load */
9
- @apply hidden;
10
- /* Transitions */
11
- @apply transition-opacity duration-150;
12
- }
13
-
14
- [data-popup] .arrow {
15
- @apply absolute rotate-45 w-2 h-2;
16
- }
@@ -1,102 +0,0 @@
1
- /* Elements: tables.css */
2
-
3
- @layer components {
4
- .table-container {
5
- @apply overflow-x-auto w-full rounded-container-token;
6
- }
7
-
8
- .table {
9
- @apply w-full overflow-hidden table-auto;
10
- /* background */
11
- @apply bg-surface-100-800-token;
12
- /* Theme: Rounded */
13
- @apply rounded-container-token;
14
- }
15
-
16
- /* === Hover Styles ==== */
17
-
18
- .table-hover tbody tr {
19
- @apply hover:bg-surface-500/20 even:hover:bg-surface-500/20;
20
- }
21
-
22
- .table-interactive tbody tr {
23
- @apply hover:bg-primary-hover-token even:hover:bg-primary-hover-token cursor-pointer;
24
- }
25
-
26
- /* === Sort Styles ==== */
27
-
28
- [data-sort] {
29
- @apply hover:bg-primary-hover-token cursor-pointer;
30
- /* Sort Icon - invisible by default */
31
- @apply after:opacity-0 after:!ml-2 after:!content-['↓'];
32
- }
33
-
34
- .table-sort-asc {
35
- @apply after:opacity-50 after:!content-['↑'];
36
- }
37
-
38
- .table-sort-dsc {
39
- @apply after:opacity-50 after:!content-['↓'];
40
- }
41
-
42
- /* === Table Head === */
43
-
44
- .table thead {
45
- @apply bg-surface-200-700-token border-b border-surface-500/20;
46
- }
47
-
48
- .table thead tr {
49
- @apply capitalize text-left;
50
- }
51
-
52
- .table thead th {
53
- @apply font-bold p-4;
54
- }
55
-
56
- /* === Table Body === */
57
-
58
- .table tbody tr {
59
- @apply border-b border-surface-500/20 even:bg-surface-500/5;
60
- }
61
-
62
- .table tbody td {
63
- /* NOTE: removed this to allow wrapping */
64
- @apply text-sm px-3 py-4 align-top whitespace-nowrap lg:whitespace-normal;
65
- }
66
-
67
- .table-compact tbody td {
68
- @apply !py-3;
69
- }
70
-
71
- .table-comfortable tbody td {
72
- @apply !py-5;
73
- }
74
-
75
- /* === Table Foot === */
76
-
77
- .table tfoot {
78
- @apply bg-surface-100-800-token;
79
- }
80
-
81
- .table tfoot tr {
82
- @apply capitalize text-left;
83
- }
84
-
85
- .table tfoot th,
86
- .table tfoot td {
87
- @apply p-4;
88
- }
89
-
90
- /* === Rows Specific === */
91
-
92
- .table-row-checked {
93
- @apply !bg-secondary-500/20;
94
- }
95
-
96
- /* === Cells Specific === */
97
-
98
- /* Source: https://stackoverflow.com/questions/11267154/fit-cell-width-to-content */
99
- .table-cell-fit {
100
- @apply w-[1%] whitespace-nowrap;
101
- }
102
- }
@@ -1,66 +0,0 @@
1
- /* Stylesheet: core.css */
2
-
3
- @layer base {
4
- /* === Body Styles === */
5
-
6
- body {
7
- @apply bg-surface-50-900-token;
8
- }
9
-
10
- /* === Selection === */
11
-
12
- ::selection {
13
- @apply bg-primary-500/30;
14
- }
15
-
16
- /* === Focus === */
17
-
18
- /* Outline (do not change) */
19
- /* http://www.outlinenone.com/ */
20
-
21
- /* Mobile tap highlight */
22
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color */
23
- html {
24
- -webkit-tap-highlight-color: rgba(128, 128, 128, 0.5);
25
- }
26
-
27
- /* === Scrollbars === */
28
-
29
- ::-webkit-scrollbar {
30
- @apply w-2;
31
- @apply h-2;
32
- }
33
- ::-webkit-scrollbar-track {
34
- @apply !bg-surface-50-900-token px-[1px];
35
- }
36
- ::-webkit-scrollbar-thumb {
37
- @apply rounded-token bg-surface-400-500-token;
38
- }
39
-
40
- /* Firefox */
41
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color#browser_compatibility */
42
- html {
43
- scrollbar-color: rgba(0, 0, 0, 0.2) rgba(255, 255, 255, 0.05);
44
- }
45
- html.dark {
46
- scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.05);
47
- }
48
-
49
- /* Hide Scrollbars */
50
- .hide-scrollbar::-webkit-scrollbar {
51
- display: none;
52
- }
53
- .hide-scrollbar {
54
- -ms-overflow-style: none; /* IE/Edge */
55
- scrollbar-width: none; /* Firefox */
56
- }
57
-
58
- /* === Horizontal Rules === */
59
-
60
- hr:not(.divider) {
61
- @apply block border-t border-solid border-surface-300-600-token;
62
- }
63
- .divider-vertical {
64
- @apply inline-block border-l border-solid border-surface-300-600-token min-h-[10px] mx-auto;
65
- }
66
- }
@@ -1,20 +0,0 @@
1
- /* Stylesheet: elements.css */
2
- /* Import AFTER your theme, but BEFORE your global stylesheet. */
3
- /* Recommended as the LAST stylesheet in the set */
4
-
5
- @import '../elements/alerts.css';
6
- @import '../elements/badges.css';
7
- @import '../elements/breadcrumbs.css';
8
- @import '../elements/buttons.css';
9
- @import '../elements/cards.css';
10
- @import '../elements/codeblocks.css';
11
- @import '../elements/chips.css';
12
- @import '../elements/forms.css';
13
- @import '../elements/lists.css';
14
- @import '../elements/logo-clouds.css';
15
- @import '../elements/placeholders.css';
16
- @import '../elements/tables.css';
17
-
18
- /* Utilities */
19
- @import '../elements/modals.css';
20
- @import '../elements/popups.css';
@@ -1,16 +0,0 @@
1
- /* Stylesheet: tailwind.css */
2
-
3
- /*
4
- https://tailwindcss.com/docs/functions-and-directives
5
-
6
- IMPORTANT:
7
- Be sure to remove these directives from your global CSS stylesheet.
8
-
9
- Tailwind directives should only be included ONCE per project.
10
- These directives should precede ALL Skeleton stylesheets.
11
- */
12
-
13
- @tailwind base;
14
- @tailwind components;
15
- @tailwind utilities;
16
- @tailwind variants;