forked from drowl87/hextra_mirror
155 lines
4.2 KiB
CSS
155 lines
4.2 KiB
CSS
.content {
|
|
h1 {
|
|
@apply mt-2 text-4xl font-bold tracking-tight text-slate-900 dark:text-slate-100;
|
|
}
|
|
h2 {
|
|
@apply font-semibold tracking-tight text-slate-900 dark:text-slate-100 mt-10 border-b pb-1 text-3xl border-neutral-200/70 contrast-more:border-neutral-400 dark:border-primary-100/10 contrast-more:dark:border-neutral-400;
|
|
}
|
|
h3 {
|
|
@apply font-semibold tracking-tight text-slate-900 dark:text-slate-100 mt-8 text-2xl;
|
|
}
|
|
h4 {
|
|
@apply font-semibold tracking-tight text-slate-900 dark:text-slate-100 mt-8 text-xl;
|
|
}
|
|
h5 {
|
|
@apply font-semibold tracking-tight text-slate-900 dark:text-slate-100 mt-8 text-lg;
|
|
}
|
|
h6 {
|
|
@apply font-semibold tracking-tight text-slate-900 dark:text-slate-100 mt-8 text-base;
|
|
}
|
|
p {
|
|
@apply mt-6 leading-7 first:mt-0;
|
|
}
|
|
a {
|
|
@apply text-primary-600 underline decoration-from-font [text-underline-position:from-font];
|
|
}
|
|
.not-prose a {
|
|
@apply text-current no-underline;
|
|
}
|
|
blockquote {
|
|
@apply mt-6 border-gray-300 italic text-gray-700 dark:border-gray-700 dark:text-gray-400 first:mt-0 ltr:border-l-2 ltr:pl-6 rtl:border-r-2 rtl:pr-6;
|
|
}
|
|
pre:not(.code-block pre) {
|
|
@apply bg-primary-700/5 mb-4 overflow-x-auto rounded-xl font-medium subpixel-antialiased dark:bg-primary-300/10 text-[.9em] contrast-more:border contrast-more:border-primary-900/20 contrast-more:contrast-150 contrast-more:dark:border-primary-100/40 py-4;
|
|
}
|
|
code:not(.code-block code) {
|
|
@apply border-black border-opacity-[0.04] bg-opacity-[0.03] bg-black break-words rounded-md border py-0.5 px-[.25em] text-[.9em] dark:border-white/10 dark:bg-white/10;
|
|
}
|
|
table:not(.code-block table) {
|
|
@apply block overflow-x-auto mt-6 p-0 first:mt-0;
|
|
|
|
tr {
|
|
@apply m-0 border-t border-gray-300 p-0 dark:border-gray-600 even:bg-gray-100 even:dark:bg-gray-600/20;
|
|
}
|
|
th {
|
|
@apply m-0 border border-gray-300 px-4 py-2 font-semibold dark:border-gray-600;
|
|
}
|
|
td {
|
|
@apply m-0 border border-gray-300 px-4 py-2 dark:border-gray-600;
|
|
}
|
|
}
|
|
ol {
|
|
@apply mt-6 list-decimal first:mt-0 ltr:ml-6 rtl:mr-6;
|
|
li {
|
|
@apply my-2;
|
|
}
|
|
}
|
|
ul {
|
|
@apply mt-6 list-disc first:mt-0 ltr:ml-6 rtl:mr-6;
|
|
li {
|
|
@apply my-2;
|
|
}
|
|
}
|
|
.not-prose ul, .not-prose ol {
|
|
@apply m-0 list-none;
|
|
li {
|
|
@apply m-0;
|
|
}
|
|
}
|
|
kbd {
|
|
@apply border-black border-opacity-[0.04] bg-opacity-[0.03] bg-black break-words rounded-md border py-0.5 px-[.25em] text-[.9em] dark:border-white/10 dark:bg-white/10;
|
|
}
|
|
pre:not(.code-block pre).mermaid {
|
|
@apply bg-transparent rounded-none dark:bg-transparent;
|
|
}
|
|
img {
|
|
@apply mx-auto my-4 rounded-md;
|
|
}
|
|
.not-prose img {
|
|
@apply m-0 rounded-none;
|
|
}
|
|
figure {
|
|
figcaption {
|
|
@apply text-sm text-gray-500 dark:text-gray-400 mt-2 block text-center;
|
|
}
|
|
}
|
|
.footnotes {
|
|
@apply mt-12 text-sm;
|
|
}
|
|
}
|
|
|
|
.subheading-anchor {
|
|
@apply opacity-0 transition-opacity ltr:ml-1 rtl:mr-1;
|
|
|
|
span:target + &,
|
|
:hover > &,
|
|
&:focus {
|
|
@apply opacity-100;
|
|
}
|
|
|
|
span + &,
|
|
:hover > & {
|
|
@apply !no-underline;
|
|
}
|
|
|
|
&:after {
|
|
@apply content-['#'] px-1;
|
|
@apply text-gray-300 dark:text-neutral-700;
|
|
span:target + & {
|
|
@apply text-gray-400;
|
|
@apply dark:text-neutral-500;
|
|
}
|
|
}
|
|
}
|
|
|
|
article.typesetting-article {
|
|
font-size: 17px;
|
|
font-feature-settings:
|
|
'rlig' 1,
|
|
'calt' 1;
|
|
h1 {
|
|
@apply mt-6 mb-4 text-center;
|
|
font-size: 2.5rem;
|
|
}
|
|
h2 {
|
|
@apply border-none;
|
|
}
|
|
a {
|
|
@apply no-underline hover:underline;
|
|
}
|
|
p {
|
|
@apply leading-8;
|
|
}
|
|
code {
|
|
@apply border-none dark:bg-neutral-700;
|
|
}
|
|
pre code {
|
|
@apply dark:bg-transparent;
|
|
}
|
|
.subheading-anchor + a {
|
|
@apply no-underline hover:no-underline after:hidden;
|
|
}
|
|
}
|
|
|
|
article details > summary {
|
|
&::-webkit-details-marker {
|
|
@apply hidden;
|
|
}
|
|
&::before {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-5 w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
vertical-align: -4px;
|
|
}
|
|
}
|