theme: extract more styles (#22734)

Extract shared styling into appropriate utilities.
Improve toc width.
This commit is contained in:
Arthur
2025-05-30 18:20:56 +02:00
committed by GitHub
parent dc01252b40
commit 9eff1ba5fc
10 changed files with 22 additions and 21 deletions

View File

@@ -94,6 +94,9 @@
@apply h-12 w-12 overflow-hidden;
}
}
.button {
@apply mt-1 inline-block rounded-sm bg-blue-500 p-1 px-3 text-blue-50 text-white hover:bg-blue-600 dark:bg-blue-500 hover:dark:bg-blue-400;
}
.summary-bar {
@apply my-1 mt-4 flex flex-col rounded-sm border-1 border-gray-100 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-900;

View File

@@ -251,3 +251,6 @@
}
}
}
@utility chip {
@apply border-divider-light dark:border-divider-dark inline-flex items-center gap-1 rounded-full border bg-gray-100 px-2 text-sm text-gray-800 select-none dark:bg-gray-700 dark:text-gray-200;
}