diff --git a/docs/.vitepress/theme/theme-vitepress.css b/docs/.vitepress/theme/theme-vitepress.css index 4569846b2..ba566551e 100644 --- a/docs/.vitepress/theme/theme-vitepress.css +++ b/docs/.vitepress/theme/theme-vitepress.css @@ -98,7 +98,7 @@ @apply text-slate-800 dark:text-slate-300 font-semibold; } - &> p:nth-child(2) { + &> :not(p:nth-child(1)) { @apply dark:text-slate-50; } } @@ -114,7 +114,7 @@ @apply text-violet-800 dark:text-violet-300 font-semibold; } - & > p:nth-child(2) { + &> :not(p:nth-child(1)) { @apply dark:text-violet-50; } } @@ -130,24 +130,32 @@ @apply text-yellow-700 dark:text-yellow-300 font-semibold; } - &> p:nth-child(2) { + & ul ::marker { + @apply text-yellow-700; + } + + &> :not(p:nth-child(1)) { @apply text-yellow-950 dark:text-yellow-50 leading-tight; } } .custom-block.danger { - @apply bg-neutral-100 dark:bg-neutral-900/20 border-none; + @apply bg-red-100 dark:bg-red-900/20 border-none; &::before { - @apply bg-neutral-500/20 dark:bg-neutral-400/20; + @apply bg-red-500/20 dark:bg-red-400/20; } & .custom-block-title { - @apply text-neutral-800 dark:text-neutral-300 font-semibold; + @apply text-red-800 dark:text-red-300 font-semibold; } - & > p:nth-child(2) { - @apply dark:text-neutral-50; + & ul ::marker { + @apply text-red-700; + } + + &> :not(p:nth-child(1)) { + @apply dark:text-red-50; } } diff --git a/docs/uno.config.ts b/docs/uno.config.ts index d7e709562..f2b1e51fd 100644 --- a/docs/uno.config.ts +++ b/docs/uno.config.ts @@ -48,13 +48,18 @@ export default defineConfig({ 'ol': { 'margin-top': '0.25rem', 'margin-bottom': '0.25rem', + 'padding-inline-start': '1.25rem', }, - 'details ol': { - 'padding-inline-start': '1rem', + 'ol li': { + 'padding-inline-start': '0.25rem', }, 'ul': { 'margin-top': '0.25rem', 'margin-bottom': '0.25rem', + 'padding-inline-start': '1.25rem', + }, + 'ul li': { + 'padding-inline-start': '0.25rem', }, 'li': { 'margin-top': '0',