diff --git a/deno.lock b/deno.lock index 92fd361..047a06e 100644 --- a/deno.lock +++ b/deno.lock @@ -32,6 +32,7 @@ "npm:flowbite-svelte-icons@2.1": "2.1.1_svelte@5.38.2__acorn@8.15.0_tailwind-merge@3.3.1", "npm:flowbite-svelte@0.48": "0.48.6_svelte@5.38.2__acorn@8.15.0", "npm:flowbite-svelte@1.11": "1.11.8_svelte@5.38.2__acorn@8.15.0_tailwindcss@4.1.12_tailwind-merge@3.3.1", + "npm:flowbite-typography@^1.0.5": "1.0.5", "npm:flowbite@2": "2.5.2", "npm:flowbite@~2.5.2": "2.5.2", "npm:he@1.2": "1.2.0", @@ -2104,6 +2105,14 @@ "tailwindcss" ] }, + "flowbite-typography@1.0.5": { + "integrity": "sha512-IqTwOYgGZkXTK/5ngx3A9oQwgOqnRyUKUfIiB+w6xDmiD8z3cKDIgYfFpHIMKbLVfg+QmJIPqEEPrGZbAwVT6g==", + "dependencies": [ + "lodash.castarray", + "lodash.isplainobject", + "lodash.merge" + ] + }, "flowbite@2.5.2": { "integrity": "sha512-kwFD3n8/YW4EG8GlY3Od9IoKND97kitO+/ejISHSqpn3vw2i5K/+ZI8Jm2V+KC4fGdnfi0XZ+TzYqQb4Q1LshA==", "dependencies": [ @@ -3581,6 +3590,7 @@ "npm:eslint-plugin-svelte@^3.11.0", "npm:flowbite-svelte-icons@2.1", "npm:flowbite-svelte@1.11", + "npm:flowbite-typography@^1.0.5", "npm:flowbite@~2.5.2", "npm:he@1.2", "npm:highlight.js@^11.11.1", diff --git a/package-lock.json b/package-lock.json index 16c68ef..fb7839e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,6 +45,7 @@ "flowbite": "~2.5.2", "flowbite-svelte": "1.11.x", "flowbite-svelte-icons": "2.1.x", + "flowbite-typography": "^1.0.5", "playwright": "^1.50.1", "postcss": "^8.5.6", "postcss-load-config": "6.x", @@ -4325,6 +4326,18 @@ "postcss": "^8.5.1" } }, + "node_modules/flowbite-typography": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/flowbite-typography/-/flowbite-typography-1.0.5.tgz", + "integrity": "sha512-IqTwOYgGZkXTK/5ngx3A9oQwgOqnRyUKUfIiB+w6xDmiD8z3cKDIgYfFpHIMKbLVfg+QmJIPqEEPrGZbAwVT6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash.castarray": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.merge": "^4.6.2" + } + }, "node_modules/fraction.js": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", diff --git a/package.json b/package.json index c01bdea..da53692 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "flowbite": "~2.5.2", "flowbite-svelte": "1.11.x", "flowbite-svelte-icons": "2.1.x", + "flowbite-typography": "^1.0.5", "playwright": "^1.50.1", "postcss": "^8.5.6", "postcss-load-config": "6.x", diff --git a/src/app.css b/src/app.css index b8c2482..5385791 100644 --- a/src/app.css +++ b/src/app.css @@ -14,6 +14,8 @@ @layer theme, base, components, utilities; @plugin "flowbite/plugin"; +@plugin "flowbite-typography"; + @custom-variant dark (&:where(.dark, .dark *)); @theme { @@ -455,6 +457,11 @@ } @layer components { + + nav a { + text-decoration-line: none !important; + } + canvas.qr-code { @apply block mx-auto my-4; } @@ -462,11 +469,11 @@ /* Legend */ .leather-legend { @apply relative m-4 sm:m-0 sm:absolute sm:top-1 sm:left-1 flex-shrink-0 p-2 - rounded; + rounded; @apply shadow-none text-primary-1000 border border-s-4 bg-highlight - border-primary-200 has-[:hover]:border-primary-700; + border-primary-200 has-[:hover]:border-primary-700; @apply dark:bg-primary-1000 dark:border-primary-800 - dark:has-[:hover]:bg-primary-950 dark:has-[:hover]:border-primary-500; + dark:has-[:hover]:bg-primary-950 dark:has-[:hover]:border-primary-500; max-width: 450px; min-width: 300px; overflow-x: auto; @@ -484,90 +491,106 @@ @apply dark:text-white; } -.publication-leather { + .publication-leather { @apply flex flex-col space-y-4; scroll-margin-top: 150px; scroll-behavior: smooth; /* common heading base styles */ - h1,h2,h3,h4,h5,h6 { @apply text-gray-900 dark:text-gray-100 pt-4; } + + h1, h2, h3, h4, h5, h6 { + @apply text-gray-900 dark:text-gray-100 pt-4; + } /* sizes/weights per level */ - h1 { @apply text-4xl font-bold; } - h2 { @apply text-3xl font-bold; } - h3 { @apply text-2xl font-bold; } - h4 { @apply text-xl font-bold; } - h5 { @apply text-lg font-semibold; } - h6 { @apply text-base font-semibold; } + + h1 { + @apply text-4xl font-bold; } - div { - @apply flex flex-col space-y-4; + h2 { + @apply text-3xl font-bold; } - .olist { - @apply flex flex-col space-y-4; + h3 { + @apply text-2xl font-bold; + } - ol { - @apply list-decimal px-6 flex flex-col space-y-2; + h4 { + @apply text-xl font-bold; + } - li { - .paragraph { - @apply py-2; - } - } - } + h5 { + @apply text-lg font-semibold; } - .ulist { - @apply flex flex-col space-y-4; + h6 { + @apply text-base font-semibold; + } + } + + .olist { + @apply flex flex-col space-y-4; - ul { - @apply list-disc px-6 flex flex-col space-y-2; + ol { + @apply list-decimal px-6 flex flex-col space-y-2; - li { - .paragraph { - @apply py-2; - } + li { + .paragraph { + @apply py-2; } } } + } - a { - @apply underline cursor-pointer hover:text-primary-600 dark:hover:text-primary-400; - } + .ulist { + @apply flex flex-col space-y-4; - .imageblock { - @apply flex flex-col items-center; + ul { + @apply list-disc px-6 flex flex-col space-y-2; - .title { - @apply text-sm text-center; + li { + .paragraph { + @apply py-2; + } } } + } - .stemblock { - @apply bg-gray-200 dark:bg-gray-800 p-4 rounded-lg; + a { + @apply underline cursor-pointer hover:text-primary-600 dark:hover:text-primary-400; + } + + .imageblock { + @apply flex flex-col items-center; + + .title { + @apply text-sm text-center; } + } - .literalblock { - pre { - @apply text-wrap; - } + .stemblock { + @apply bg-gray-200 dark:bg-gray-800 p-4 rounded-lg; + } + + .literalblock { + pre { + @apply text-wrap; } + } - table { - @apply w-full overflow-x-auto; + table { + @apply w-full overflow-x-auto; - caption { - @apply text-sm; - } + caption { + @apply text-sm; + } - thead, - tbody { - th, - td { - @apply border border-gray-200 dark:border-gray-700; - } + thead, + tbody { + th, + td { + @apply border border-gray-200 dark:border-gray-700; } } } @@ -597,6 +620,7 @@ overflow: hidden; text-overflow: ellipsis; } + .footnotes li { margin-bottom: 0.5rem; } @@ -684,7 +708,7 @@ /* Table of Contents highlighting */ .toc-highlight { @apply bg-primary-200 dark:bg-primary-700 border-l-4 border-primary-600 - dark:border-primary-400 font-medium; + dark:border-primary-400 font-medium; transition: all 0.2s ease-in-out; } @@ -720,9 +744,10 @@ } } -.icon-wiki { - font-size: 20px; - line-height: 20px; - vertical-align: text-bottom; - font-weight: 500; + .icon-wiki { + font-size: 20px; + line-height: 20px; + vertical-align: text-bottom; + font-weight: 500; + } } \ No newline at end of file diff --git a/src/lib/a/index.ts b/src/lib/a/index.ts index 455b2a5..ef0e899 100644 --- a/src/lib/a/index.ts +++ b/src/lib/a/index.ts @@ -1,6 +1,5 @@ export { default as AInput } from './primitives/AInput.svelte'; export { default as ACard } from './primitives/ACard.svelte'; -export { default as ASwitch } from './primitives/ASwitch.svelte'; export { default as ADetails } from './primitives/ADetails.svelte'; export { default as ANostrUser } from './primitives/ANostrUser.svelte'; export { default as ANostrBadge } from './primitives/ANostrBadge.svelte'; diff --git a/src/lib/a/nav/AFooter.svelte b/src/lib/a/nav/AFooter.svelte index 992efea..759a9e5 100644 --- a/src/lib/a/nav/AFooter.svelte +++ b/src/lib/a/nav/AFooter.svelte @@ -2,7 +2,7 @@ import { Footer, FooterCopyright, FooterLink, FooterLinkGroup } from "flowbite-svelte"; -