116 lines
2.4 KiB
CSS
116 lines
2.4 KiB
CSS
/*
|
|
* markdoc.css
|
|
*
|
|
* Styles for Markdoc Markdown files. Update this to customize the stylesheet for Markdoc content, such as
|
|
* the blog post, documentation, etc.
|
|
*/
|
|
|
|
.markdoc {
|
|
@apply text-foreground;
|
|
}
|
|
|
|
.markdoc h1 {
|
|
@apply font-heading text-foreground mt-8 text-4xl font-semibold tracking-tight lg:mt-14 dark:text-white;
|
|
}
|
|
|
|
.markdoc h2 {
|
|
@apply font-heading text-foreground mt-6 mb-3 text-2xl font-semibold tracking-tight lg:mt-12 lg:mb-6 dark:text-white;
|
|
}
|
|
|
|
.markdoc h3 {
|
|
@apply font-heading text-foreground mt-6 text-xl font-semibold tracking-tight lg:mt-12 dark:text-white;
|
|
}
|
|
|
|
.markdoc h4 {
|
|
@apply text-foreground mt-4 text-lg font-medium tracking-tight lg:mt-8 dark:text-white;
|
|
}
|
|
|
|
.markdoc h5 {
|
|
@apply text-foreground mt-3 text-base font-medium tracking-tight lg:mt-6 dark:text-white;
|
|
}
|
|
|
|
.markdoc h6 {
|
|
@apply text-foreground mt-2 text-sm font-normal tracking-tight dark:text-white;
|
|
}
|
|
|
|
.markdoc p {
|
|
@apply text-muted-foreground mt-2 mb-3 text-base leading-7 lg:mt-4 lg:mb-6;
|
|
}
|
|
|
|
.markdoc li {
|
|
@apply text-muted-foreground relative my-1.5 text-base leading-7;
|
|
}
|
|
|
|
.markdoc ul > li:before {
|
|
content: '-';
|
|
|
|
@apply mr-2;
|
|
}
|
|
|
|
.markdoc ol > li:before {
|
|
@apply text-muted-foreground inline-flex font-medium;
|
|
|
|
content: counters(counts, '.') '. ';
|
|
font-feature-settings: 'tnum';
|
|
}
|
|
|
|
.markdoc b,
|
|
.markdoc strong {
|
|
@apply text-secondary-foreground font-semibold dark:text-white;
|
|
}
|
|
|
|
.markdoc img,
|
|
.markdoc video {
|
|
@apply rounded-md;
|
|
}
|
|
|
|
.markdoc ul,
|
|
.markdoc ol {
|
|
@apply pl-1;
|
|
}
|
|
|
|
.markdoc ol > li {
|
|
counter-increment: counts;
|
|
}
|
|
|
|
.markdoc ol > li:before {
|
|
@apply mr-2 inline-flex font-semibold;
|
|
|
|
content: counters(counts, '.') '. ';
|
|
font-feature-settings: 'tnum';
|
|
}
|
|
|
|
.markdoc p > code,
|
|
.markdoc li > code {
|
|
@apply bg-muted/50 text-secondary-foreground border p-0.5 font-mono text-sm font-semibold;
|
|
}
|
|
|
|
.markdoc pre {
|
|
@apply bg-muted/50 border-border text-foreground overflow-x-auto rounded-md border p-4 font-mono text-sm;
|
|
}
|
|
|
|
.markdoc blockquote {
|
|
@apply border-primary text-muted-foreground my-4 border border-l-8 px-6 py-4 text-lg font-medium;
|
|
}
|
|
|
|
.markdoc a {
|
|
@apply text-secondary-foreground border-b border-b-black pb-0.5 font-semibold hover:border-b-2 dark:border-yellow-300;
|
|
}
|
|
|
|
.markdoc hr {
|
|
@apply border-border mt-8 mb-6;
|
|
}
|
|
|
|
.markdoc [role='alert'] {
|
|
@apply m-0 my-8 py-4;
|
|
}
|
|
|
|
.markdoc [role='alert'] * {
|
|
color: inherit;
|
|
@apply m-0 p-0 text-sm;
|
|
}
|
|
|
|
.markdoc [role='alert'] h5 {
|
|
color: inherit;
|
|
}
|