2023-10-22 23:23:14 +00:00
|
|
|
/*! Congo v2.7.0 | MIT License | https://github.com/jpanther/congo */
|
2021-08-22 06:55:10 +00:00
|
|
|
|
2021-08-11 05:28:33 +00:00
|
|
|
@tailwind base;
|
|
|
|
@tailwind components;
|
|
|
|
|
2021-08-18 02:54:18 +00:00
|
|
|
body a,
|
|
|
|
body button {
|
2022-01-17 02:21:21 +00:00
|
|
|
@apply transition-colors;
|
2021-08-18 02:54:18 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 05:28:33 +00:00
|
|
|
/* Scale SVG icons to text size */
|
|
|
|
.icon svg {
|
2022-01-17 02:21:21 +00:00
|
|
|
@apply h-[1em] w-[1em];
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
|
2022-01-13 04:56:30 +00:00
|
|
|
/* Search */
|
|
|
|
#search-query::-webkit-search-cancel-button,
|
|
|
|
#search-query::-webkit-search-decoration,
|
|
|
|
#search-query::-webkit-search-results-button,
|
|
|
|
#search-query::-webkit-search-results-decoration {
|
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2022-06-27 02:31:15 +00:00
|
|
|
/* Hamburger menu */
|
|
|
|
body:has(#menu-controller:checked) {
|
2023-01-19 22:06:19 +00:00
|
|
|
@apply h-screen overflow-hidden;
|
2022-06-27 02:31:15 +00:00
|
|
|
}
|
|
|
|
#menu-button:has(#menu-controller:checked) {
|
|
|
|
@apply invisible;
|
|
|
|
}
|
|
|
|
#menu-controller:checked ~ #menu-wrapper {
|
|
|
|
@apply visible opacity-100;
|
|
|
|
}
|
|
|
|
|
2022-01-11 05:17:49 +00:00
|
|
|
/* RTL support */
|
2022-01-20 03:08:52 +00:00
|
|
|
.prose blockquote {
|
2022-11-21 23:32:13 +00:00
|
|
|
@apply rtl:border-l-0 rtl:border-r-4 rtl:pr-4;
|
2022-01-11 05:17:49 +00:00
|
|
|
}
|
2022-01-20 03:08:52 +00:00
|
|
|
.prose ul > li,
|
|
|
|
.prose ol > li {
|
2022-11-21 23:32:13 +00:00
|
|
|
@apply rtl:mr-7 rtl:pl-0 rtl:pr-2;
|
2022-01-11 05:17:49 +00:00
|
|
|
}
|
2022-01-20 03:08:52 +00:00
|
|
|
.prose ol > li:before,
|
|
|
|
.prose ul > li:before {
|
2022-01-17 02:21:21 +00:00
|
|
|
@apply rtl:left-auto rtl:right-1;
|
2022-01-11 05:17:49 +00:00
|
|
|
}
|
2022-01-20 03:08:52 +00:00
|
|
|
.prose thead td:first-child,
|
|
|
|
.prose thead th:first-child {
|
2022-01-17 02:21:21 +00:00
|
|
|
@apply rtl:pr-0;
|
2022-01-11 05:17:49 +00:00
|
|
|
}
|
2022-01-20 03:08:52 +00:00
|
|
|
.prose thead td:last-child,
|
|
|
|
.prose thead th:last-child {
|
2022-01-17 02:21:21 +00:00
|
|
|
@apply rtl:pl-0;
|
2022-01-11 05:17:49 +00:00
|
|
|
}
|
|
|
|
|
2022-06-25 04:53:34 +00:00
|
|
|
/* Adjust first child within prose */
|
|
|
|
.prose div.min-w-0.max-w-prose > *:first-child {
|
|
|
|
@apply mt-3;
|
|
|
|
}
|
|
|
|
|
2022-01-18 05:24:33 +00:00
|
|
|
/* Table of Contents */
|
|
|
|
.toc ul,
|
|
|
|
.toc li {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply list-none px-0 leading-snug;
|
2022-01-18 05:24:33 +00:00
|
|
|
}
|
|
|
|
.toc ul ul {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply ps-4;
|
2022-01-18 05:24:33 +00:00
|
|
|
}
|
|
|
|
.toc a {
|
|
|
|
@apply font-normal text-neutral-700 dark:text-neutral-400;
|
|
|
|
}
|
|
|
|
.toc ul > li {
|
|
|
|
@apply rtl:mr-0;
|
|
|
|
}
|
|
|
|
|
2022-01-25 23:49:30 +00:00
|
|
|
/* Code Copy */
|
|
|
|
.highlight-wrapper {
|
|
|
|
@apply block;
|
|
|
|
}
|
|
|
|
.highlight {
|
|
|
|
@apply relative z-0;
|
|
|
|
}
|
|
|
|
.highlight:hover > .copy-button {
|
|
|
|
@apply visible;
|
|
|
|
}
|
|
|
|
.copy-button {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply invisible absolute right-0 top-0 z-10 w-20 cursor-pointer whitespace-nowrap rounded-bl-md rounded-tr-md bg-neutral-200 py-1 font-mono text-sm text-neutral-700 opacity-90 dark:bg-neutral-600 dark:text-neutral-200;
|
2022-01-25 23:49:30 +00:00
|
|
|
}
|
|
|
|
.copy-button:hover,
|
|
|
|
.copy-button:focus,
|
|
|
|
.copy-button:active,
|
|
|
|
.copy-button:active:hover {
|
|
|
|
@apply bg-primary-100 dark:bg-primary-600;
|
|
|
|
}
|
|
|
|
.copy-textarea {
|
2022-11-21 23:32:13 +00:00
|
|
|
@apply absolute -z-10 opacity-5;
|
2022-01-25 23:49:30 +00:00
|
|
|
}
|
|
|
|
|
2021-08-11 05:28:33 +00:00
|
|
|
/* -- Chroma Highlight -- */
|
|
|
|
/* Background */
|
2022-11-22 22:37:50 +00:00
|
|
|
.chroma {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply rounded-md bg-neutral-50 py-3 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
2022-11-22 22:37:50 +00:00
|
|
|
.chroma pre {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply m-0 p-0;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* LineTable */
|
|
|
|
.chroma .lntable {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply m-0 block w-auto overflow-auto text-base;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* LineNumbersTable */
|
|
|
|
/* LineNumbers */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .lnt,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .ln {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply mr-2 px-2 text-neutral-600 dark:text-neutral-300;
|
2022-11-22 22:37:50 +00:00
|
|
|
}
|
|
|
|
.chroma .lntd {
|
|
|
|
@apply p-0 align-top;
|
|
|
|
}
|
|
|
|
.chroma .lntd:last-of-type {
|
|
|
|
@apply w-full;
|
|
|
|
}
|
|
|
|
/* LineHighlight */
|
|
|
|
.chroma .hl {
|
|
|
|
@apply block w-full bg-primary-100 dark:bg-primary-900;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* Keyword */
|
|
|
|
/* KeywordDeclaration */
|
|
|
|
/* KeywordNamespace */
|
|
|
|
/* KeywordPseudo */
|
|
|
|
/* KeywordReserved */
|
2022-01-17 02:21:21 +00:00
|
|
|
/* NameClass */
|
|
|
|
/* NameFunctionMagic */
|
|
|
|
/* NameNamespace */
|
|
|
|
/* NameVariableClass */
|
|
|
|
/* Operator */
|
|
|
|
.chroma .k,
|
|
|
|
.chroma .kd,
|
|
|
|
.chroma .kn,
|
|
|
|
.chroma .kp,
|
|
|
|
.chroma .kr,
|
|
|
|
.chroma .nc,
|
|
|
|
.chroma .fm,
|
|
|
|
.chroma .nn,
|
|
|
|
.chroma .vc,
|
|
|
|
.chroma .o {
|
2021-08-11 05:28:33 +00:00
|
|
|
@apply text-primary-600 dark:text-primary-300;
|
|
|
|
}
|
2022-01-17 02:21:21 +00:00
|
|
|
/* KeywordConstant */
|
|
|
|
.chroma .kc {
|
|
|
|
@apply font-semibold text-secondary-400 dark:text-secondary-500;
|
|
|
|
}
|
2021-08-11 05:28:33 +00:00
|
|
|
/* KeywordType */
|
2022-01-17 02:21:21 +00:00
|
|
|
/* NameVariable */
|
|
|
|
/* NameVariableInstance */
|
|
|
|
/* NameVariableMagic */
|
|
|
|
/* LiteralNumber */
|
|
|
|
/* LiteralNumberBin */
|
|
|
|
/* LiteralNumberFloat */
|
|
|
|
/* LiteralNumberHex */
|
|
|
|
/* LiteralNumberInteger */
|
|
|
|
/* LiteralNumberIntegerLong */
|
|
|
|
/* LiteralNumberOct */
|
|
|
|
.chroma .kt,
|
|
|
|
.chroma .nv,
|
|
|
|
.chroma .vi,
|
|
|
|
.chroma .vm,
|
|
|
|
.chroma .m,
|
|
|
|
.chroma .mb,
|
|
|
|
.chroma .mf,
|
|
|
|
.chroma .mh,
|
|
|
|
.chroma .mi,
|
|
|
|
.chroma .il,
|
|
|
|
.chroma .mo {
|
2021-08-11 05:28:33 +00:00
|
|
|
@apply text-secondary-400 dark:text-secondary-600;
|
|
|
|
}
|
|
|
|
/* Name */
|
|
|
|
/* NameDecorator */
|
|
|
|
/* NameEntity */
|
|
|
|
/* NameLabel */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .n,
|
|
|
|
.chroma .nd,
|
|
|
|
.chroma .ni,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .nl {
|
|
|
|
@apply text-secondary-900 dark:text-secondary-200;
|
|
|
|
}
|
2022-01-17 02:21:21 +00:00
|
|
|
/* NameAttribute */
|
|
|
|
/* NameBuiltin */
|
|
|
|
/* NameBuiltinPseudo */
|
2021-08-11 05:28:33 +00:00
|
|
|
/* NameOther */
|
|
|
|
/* NameProperty */
|
|
|
|
/* NameTag */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .na,
|
|
|
|
.chroma .nb,
|
|
|
|
.chroma .bp,
|
|
|
|
.chroma .nx,
|
|
|
|
.chroma .py,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .nt {
|
|
|
|
@apply text-secondary-800 dark:text-secondary-300;
|
|
|
|
}
|
2022-01-17 02:21:21 +00:00
|
|
|
/* NameConstant */
|
|
|
|
/* NameException */
|
2021-08-11 05:28:33 +00:00
|
|
|
/* NameVariableGlobal */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .no,
|
|
|
|
.chroma .ne,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .vg {
|
|
|
|
@apply font-semibold text-secondary-400 dark:text-secondary-500;
|
|
|
|
}
|
2022-01-17 02:21:21 +00:00
|
|
|
/* NameFunction */
|
|
|
|
.chroma .nf {
|
|
|
|
@apply text-secondary-600 dark:text-secondary-500;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* Literal */
|
|
|
|
/* LiteralDate */
|
|
|
|
/* LiteralString */
|
|
|
|
/* LiteralStringAffix */
|
|
|
|
/* LiteralStringBacktick */
|
|
|
|
/* LiteralStringChar */
|
|
|
|
/* LiteralStringDelimiter */
|
|
|
|
/* LiteralStringDoc */
|
|
|
|
/* LiteralStringDouble */
|
2022-01-17 02:21:21 +00:00
|
|
|
/* LiteralStringHeredoc */
|
|
|
|
/* LiteralStringInterpol */
|
|
|
|
/* LiteralStringOther */
|
|
|
|
/* LiteralStringSingle */
|
|
|
|
/* GenericInserted */
|
|
|
|
/* GenericOutput */
|
|
|
|
/* GenericPrompt */
|
|
|
|
.chroma .l,
|
|
|
|
.chroma .ld,
|
|
|
|
.chroma .s,
|
|
|
|
.chroma .sa,
|
|
|
|
.chroma .sb,
|
|
|
|
.chroma .sc,
|
|
|
|
.chroma .dl,
|
|
|
|
.chroma .sd,
|
|
|
|
.chroma .s2,
|
|
|
|
.chroma .sh,
|
|
|
|
.chroma .si,
|
|
|
|
.chroma .sx,
|
|
|
|
.chroma .s1,
|
|
|
|
.chroma .gi,
|
|
|
|
.chroma .go,
|
|
|
|
.chroma .gp {
|
2021-08-11 05:28:33 +00:00
|
|
|
@apply text-primary-800 dark:text-primary-400;
|
|
|
|
}
|
|
|
|
/* LiteralStringEscape */
|
|
|
|
.chroma .se {
|
|
|
|
@apply font-semibold text-secondary-400 dark:text-secondary-500;
|
|
|
|
}
|
|
|
|
/* LiteralStringRegex */
|
|
|
|
/* LiteralStringSymbol */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .sr,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .ss {
|
|
|
|
@apply font-semibold text-primary-800 dark:text-primary-400;
|
|
|
|
}
|
|
|
|
/* OperatorWord */
|
|
|
|
.chroma .ow {
|
|
|
|
@apply font-semibold text-primary-400 dark:text-primary-600;
|
|
|
|
}
|
|
|
|
/* Comment */
|
|
|
|
/* CommentMultiline */
|
|
|
|
/* CommentSingle */
|
|
|
|
/* CommentSpecial */
|
|
|
|
/* CommentPreproc */
|
|
|
|
/* CommentPreprocFile */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .c,
|
|
|
|
.chroma .cm,
|
|
|
|
.chroma .c1,
|
|
|
|
.chroma .cs,
|
|
|
|
.chroma .cp,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .cpf {
|
2021-12-21 02:22:45 +00:00
|
|
|
@apply italic text-neutral-500 dark:text-neutral-400;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
2022-01-17 02:21:21 +00:00
|
|
|
/* CommentHashbang */
|
|
|
|
.chroma .ch {
|
2023-04-05 00:50:15 +00:00
|
|
|
@apply font-semibold italic text-neutral-500 dark:text-neutral-400;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* GenericEmph */
|
|
|
|
.chroma .ge {
|
|
|
|
@apply italic;
|
|
|
|
}
|
|
|
|
/* GenericHeading */
|
|
|
|
.chroma .gh {
|
2021-08-20 07:02:08 +00:00
|
|
|
@apply font-semibold text-neutral-500;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* GenericStrong */
|
|
|
|
.chroma .gs {
|
|
|
|
@apply font-semibold;
|
|
|
|
}
|
|
|
|
/* GenericSubheading */
|
|
|
|
/* GenericTraceback */
|
2022-01-17 02:21:21 +00:00
|
|
|
.chroma .gu,
|
2021-08-11 05:28:33 +00:00
|
|
|
.chroma .gt {
|
2021-08-20 07:02:08 +00:00
|
|
|
@apply text-neutral-500;
|
2021-08-11 05:28:33 +00:00
|
|
|
}
|
|
|
|
/* GenericUnderline */
|
|
|
|
.chroma .gl {
|
|
|
|
@apply underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
@tailwind utilities;
|