2022-10-31 10:38:50 +00:00
|
|
|
/* Max Content Width */
|
|
|
|
.max-w-prose {
|
2022-11-01 03:50:43 +00:00
|
|
|
max-width: 80ch;
|
2022-10-31 10:38:50 +00:00
|
|
|
}
|
|
|
|
|
2022-10-13 05:57:10 +00:00
|
|
|
.prose {
|
|
|
|
--tw-prose-code: rgba(var(--color-secondary-600),1);
|
|
|
|
--tw-prose-invert-code: rgba(var(--color-secondary-400),1);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
.dark .prose .chroma {
|
|
|
|
background-color: rgba(var(--color-neutral-800),var(--tw-bg-opacity));
|
|
|
|
}
|
|
|
|
/* color 1 for code blocks */
|
|
|
|
.dark .chroma .kt, .dark .chroma .nv, .dark .chroma .vi, .dark .chroma .vm, .dark .chroma .m, .dark .chroma .mb,
|
|
|
|
.dark .chroma .mf, .dark .chroma .mh, .dark .chroma .mi, .dark .chroma .il, .dark .chroma .mo {
|
|
|
|
color: rgba(var(--color-secondary-400),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.chroma .kt, .chroma .nv, .chroma .vi, .chroma .vm, .chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi,
|
|
|
|
.chroma .il, .chroma .mo {
|
|
|
|
color: rgba(var(--color-secondary-600),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
/* color 2 for code blocks */
|
|
|
|
.dark .chroma .na, .dark .chroma .nb, .dark .chroma .bp, .dark .chroma .nx, .dark .chroma .py, .dark .chroma .nt {
|
|
|
|
color: rgba(var(--color-secondary-300),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* color 3 for code blocks */
|
|
|
|
.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 {
|
|
|
|
color: rgba(var(--color-primary-700),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark .chroma .ow {
|
|
|
|
color: rgba(var(--color-primary-400),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.chroma .ow {
|
|
|
|
color: rgba(var(--color-primary-600),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.chroma .se {
|
|
|
|
color: rgba(var(--color-secondary-600),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.dark .dark\:bg-neutral-800 {
|
|
|
|
background-color: rgba(var(--color-neutral-900),var(--tw-bg-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg-neutral {
|
|
|
|
background-color: rgba(var(--color-neutral-50),var(--tw-bg-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.prose .chroma {
|
|
|
|
background-color: rgba(var(--color-neutral-100),var(--tw-bg-opacity));
|
|
|
|
}
|
2022-10-31 12:41:37 +00:00
|
|
|
|
|
|
|
/* CheckBoxes and Radio Buttons */
|
|
|
|
[type=checkbox], [type=radio] {
|
|
|
|
color: rgba(var(--color-secondary-500),var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make transitions slightly longer for aesthetic */
|
|
|
|
body a, body button {
|
|
|
|
transition-duration: 250ms;
|
|
|
|
}
|
2022-11-05 23:51:22 +00:00
|
|
|
/* TOOLTIPS */
|
2022-11-01 03:50:43 +00:00
|
|
|
.tooltip {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
border-bottom: 2px dotted rgba(var(--color-secondary-700), var(--tw-text-opacity));
|
|
|
|
}
|
|
|
|
|
|
|
|
.tooltip .tooltiptext {
|
2022-11-01 03:57:18 +00:00
|
|
|
min-width: 16ch;
|
|
|
|
max-width: 40ch;
|
2022-11-01 03:50:43 +00:00
|
|
|
bottom: 95%;
|
2022-11-08 07:13:08 +00:00
|
|
|
left: 75%;
|
2022-11-01 03:50:43 +00:00
|
|
|
padding: 0.25ch;
|
|
|
|
padding-left: 0.5ch;
|
|
|
|
padding-right: 0.5ch;
|
2022-11-08 07:13:08 +00:00
|
|
|
background-color: rgba(var(--color-neutral-100),1);
|
|
|
|
color: rgba(var(--color-secondary-700),1);
|
2022-11-01 03:50:43 +00:00
|
|
|
text-align: center;
|
|
|
|
border-radius: 5px;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
transition-property: opacity;
|
|
|
|
transition-duration: 250ms;
|
|
|
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
2022-11-08 07:13:08 +00:00
|
|
|
box-shadow: 2px 2px 5px rgba(var(--color-neutral-800),1);
|
2022-11-01 03:50:43 +00:00
|
|
|
}
|
|
|
|
/* TODO make background blur work*/
|
|
|
|
.tooltip:hover .tooltiptext {
|
2022-11-08 07:13:08 +00:00
|
|
|
opacity: 1;
|
2022-11-01 03:50:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dark .tooltip {
|
2022-11-08 07:13:08 +00:00
|
|
|
border-bottom: 2px dotted rgba(var(--color-secondary-500), var(--tw-text-opacity));
|
2022-11-01 03:50:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.dark .tooltip .tooltiptext {
|
2022-11-08 07:13:08 +00:00
|
|
|
background-color: rgba(var(--color-neutral-800),1);
|
|
|
|
color: rgba(var(--color-secondary-400),1);
|
|
|
|
box-shadow: 2px 2px 5px rgba(var(--color-neutral-400),1);
|
2022-11-01 03:50:43 +00:00
|
|
|
}
|
2022-11-05 23:51:22 +00:00
|
|
|
|
|
|
|
/* BLOCKQUOTES that don't suck */
|
|
|
|
.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *))::before {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *))::after {
|
|
|
|
content: none;
|
|
|
|
}
|