@classic-homes/theme-docs 0.0.47 → 0.0.48
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.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import type { DocsItem } from '../types/docs.js';
|
|
11
11
|
|
|
12
12
|
const docsCardVariants = tv({
|
|
13
|
-
base: 'group relative flex flex-col rounded-lg border border-border bg-card p-6 transition-
|
|
13
|
+
base: 'group relative flex flex-col rounded-lg border border-border bg-card p-6 hover:transition-shadow hover:border-primary hover:shadow-md',
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
interface Props {
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
{/if}
|
|
58
58
|
|
|
59
59
|
<div class="flex-1 min-w-0">
|
|
60
|
-
<h3
|
|
61
|
-
class="font-semibold text-foreground group-hover:text-primary transition-colors flex items-center gap-2"
|
|
62
|
-
>
|
|
60
|
+
<h3 class="font-semibold text-foreground group-hover:text-primary flex items-center gap-2">
|
|
63
61
|
{item.title}
|
|
64
62
|
{#if item.external}
|
|
65
63
|
<svg
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
function getLevelStyles(level: number, isActive: boolean): string {
|
|
109
|
-
const baseStyles = 'block py-1 rounded-sm
|
|
109
|
+
const baseStyles = 'block py-1 rounded-sm';
|
|
110
110
|
|
|
111
111
|
if (isActive) {
|
|
112
112
|
return cn(baseStyles, 'text-primary font-medium');
|
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
'text-muted-foreground',
|
|
130
130
|
'bg-transparent border-0 p-0 m-0',
|
|
131
131
|
'cursor-pointer',
|
|
132
|
-
'transition-colors duration-150 ease-in-out',
|
|
133
132
|
'hover:bg-muted hover:text-foreground',
|
|
134
133
|
'focus-visible:outline-2 focus-visible:outline-ring focus-visible:outline-offset-2',
|
|
135
134
|
].join(' ');
|
|
@@ -208,10 +207,10 @@
|
|
|
208
207
|
|
|
209
208
|
<style>
|
|
210
209
|
/*
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
210
|
+
* Non-button styles that don't conflict with Tailwind preflight.
|
|
211
|
+
* Button styles are applied via Tailwind utility classes in the script
|
|
212
|
+
* to ensure proper specificity with postcss-cascade-layers.
|
|
213
|
+
*/
|
|
215
214
|
|
|
216
215
|
/* Vertical text for folder tab */
|
|
217
216
|
.toc-tab-text {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classic-homes/theme-docs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"description": "Markdown documentation components for the Classic theme system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "svelte-package -i src",
|
|
27
27
|
"dev": "svelte-package -i src --watch",
|
|
28
|
-
"clean": "rm
|
|
28
|
+
"clean": "node ../../scripts/rm.mjs dist",
|
|
29
29
|
"typecheck": "svelte-check --tsconfig ./tsconfig.json"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|