You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.0 KiB
119 lines
2.0 KiB
@tailwind base;
|
|
@tailwind components;
|
|
|
|
|
|
@layer base {
|
|
h1 {
|
|
@apply mb-6 text-3xl font-semibold;
|
|
}
|
|
h2 {
|
|
@apply text-2xl font-semibold;
|
|
}
|
|
p {
|
|
@apply mb-4;
|
|
}
|
|
a {
|
|
@apply text-blue-500 hover:text-blue-400 dark:text-blue-400 dark:hover:text-blue-300;
|
|
}
|
|
}
|
|
|
|
/* Post styles */
|
|
.prose {
|
|
max-width: 100vh;
|
|
}
|
|
|
|
.prose pre {
|
|
@apply bg-gray-50 border border-gray-200 dark:border-gray-700 dark:bg-gray-900;
|
|
}
|
|
|
|
.prose code {
|
|
@apply text-gray-800 dark:text-gray-200 px-1 py-0.5 border border-gray-100 dark:border-gray-800 rounded-md bg-gray-100 dark:bg-gray-900;
|
|
}
|
|
|
|
.prose img {
|
|
/* Don't apply styles to next/image */
|
|
@apply m-0;
|
|
}
|
|
|
|
/* Prism Styles */
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
@apply text-gray-700 dark:text-gray-300;
|
|
}
|
|
|
|
.token.punctuation {
|
|
@apply text-gray-700 dark:text-gray-300;
|
|
}
|
|
|
|
.token.property,
|
|
.token.tag,
|
|
.token.boolean,
|
|
.token.number,
|
|
.token.constant,
|
|
.token.symbol,
|
|
.token.deleted {
|
|
@apply text-green-500;
|
|
}
|
|
|
|
.token.selector,
|
|
.token.attr-name,
|
|
.token.string,
|
|
.token.char,
|
|
.token.builtin,
|
|
.token.inserted {
|
|
@apply text-purple-500;
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string {
|
|
@apply text-yellow-500;
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.keyword {
|
|
@apply text-blue-500;
|
|
}
|
|
|
|
.token.function,
|
|
.token.class-name {
|
|
@apply text-pink-500;
|
|
}
|
|
|
|
.token.regex,
|
|
.token.important,
|
|
.token.variable {
|
|
@apply text-yellow-500;
|
|
}
|
|
|
|
code[class*='language-'],
|
|
pre[class*='language-'] {
|
|
@apply text-gray-800 dark:text-gray-50;
|
|
}
|
|
|
|
pre::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
pre {
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
/* Remark Styles */
|
|
.remark-code-title {
|
|
@apply text-gray-800 dark:text-gray-200 px-5 py-3 border border-b-0 border-gray-200 dark:border-gray-700 rounded-t bg-gray-200 dark:bg-gray-800 text-sm font-mono font-bold;
|
|
}
|
|
|
|
.remark-code-title + pre {
|
|
@apply mt-0 rounded-t-none;
|
|
}
|
|
|
|
.mdx-marker {
|
|
@apply block -mx-4 px-4 bg-gray-100 dark:bg-gray-800 border-l-4 border-blue-500;
|
|
}
|
|
|