203 lines
3.6 KiB
Plaintext
203 lines
3.6 KiB
Plaintext
/* tailwind */
|
|
|
|
@tailwind base;
|
|
|
|
@tailwind components;
|
|
|
|
@tailwind utilities;
|
|
|
|
/* global */
|
|
|
|
html {
|
|
@apply !bg-base-200 scroll-smooth overflow-x-hidden overflow-y-scroll;
|
|
}
|
|
|
|
::selection {
|
|
@apply bg-primary/20;
|
|
}
|
|
|
|
/* .urara-prose */
|
|
|
|
.urara-prose {
|
|
@apply !max-w-none;
|
|
}
|
|
|
|
/* .urara-prose heading */
|
|
|
|
.urara-prose > :is(h1, h2, h3, h4, h5) > a {
|
|
@apply no-underline font-bold;
|
|
}
|
|
|
|
.urara-prose > :is(h1, h2, h3, h4, h5) > a::after {
|
|
@apply pl-2 text-base-200 transition-all content-['#'];
|
|
}
|
|
|
|
.urara-prose > :is(h1, h2, h3, h4, h5):hover > a::after {
|
|
@apply text-primary;
|
|
}
|
|
|
|
/* .urara-prose table */
|
|
|
|
.urara-prose div > table > thead {
|
|
@apply border-0;
|
|
}
|
|
|
|
.urara-prose div > table > thead > tr > th {
|
|
@apply !relative;
|
|
}
|
|
|
|
/* .urara-prose a */
|
|
|
|
.urara-prose :is(p, li, ruby, del) > a {
|
|
@apply bg-[length:100%_0.2em] hover:bg-[length:100%_100%] bg-[position:0_88%] bg-gradient-to-t from-secondary/50 to-secondary/40 bg-no-repeat transition-all ease-in-out !no-underline;
|
|
}
|
|
|
|
/* .urara-prose misc */
|
|
|
|
.urara-prose > p img {
|
|
@apply w-full;
|
|
}
|
|
|
|
.urara-prose :is(p, li, strong, del) > code {
|
|
@apply bg-base-200 px-2;
|
|
}
|
|
|
|
.urara-prose li > input {
|
|
@apply checkbox checkbox-xs me-2 -my-0.5;
|
|
}
|
|
|
|
.urara-prose kbd {
|
|
@apply kbd;
|
|
}
|
|
|
|
.urara-prose hr {
|
|
@apply border-none divider;
|
|
}
|
|
|
|
/* footer a */
|
|
|
|
footer a {
|
|
@apply !no-underline hover:text-primary hover:!underline transition-all;
|
|
}
|
|
|
|
.spoiler {
|
|
@apply blur-sm hover:blur-none active:blur-none transition-all select-all;
|
|
}
|
|
|
|
/* .prose pre */
|
|
|
|
.prose pre {
|
|
@apply mockup-code !bg-neutral min-w-0;
|
|
}
|
|
|
|
.prose pre:not(.shiki) {
|
|
@apply bg-neutral text-neutral-content;
|
|
}
|
|
|
|
.prose pre:not(.shiki)::before {
|
|
@apply sticky -left-5 -ml-5;
|
|
}
|
|
|
|
/* .urara-prose pre */
|
|
|
|
@media (max-width: 768px) {
|
|
.urara-prose > pre {
|
|
@apply -mx-8 rounded-none;
|
|
}
|
|
}
|
|
|
|
.urara-prose > pre {
|
|
@apply pb-0;
|
|
}
|
|
|
|
.urara-prose > pre > div.code-container {
|
|
@apply pb-5 overflow-x-auto;
|
|
}
|
|
|
|
/* shiki */
|
|
|
|
pre.shiki {
|
|
@apply px-0;
|
|
}
|
|
|
|
pre.shiki::before {
|
|
@apply sticky;
|
|
}
|
|
|
|
pre.shiki > div.code-title {
|
|
@apply absolute -mt-10 ml-20 pt-1.5 pl-1.5 opacity-50;
|
|
}
|
|
|
|
pre.shiki .language-id {
|
|
@apply hidden;
|
|
}
|
|
|
|
pre.shiki > .code-container {
|
|
@apply overflow-auto;
|
|
}
|
|
|
|
:is(pre.shiki[text='true'], pre.shiki[svelte='true']) > div.code-container {
|
|
@apply mx-5;
|
|
}
|
|
|
|
pre.shiki:not([text='true'], [svelte='true']) > .code-container > code > div.line > span:first-child {
|
|
@apply pl-5;
|
|
}
|
|
|
|
pre.shiki:not([text='true'], [svelte='true']) > .code-container > code > div.line > span:last-child {
|
|
@apply pr-5;
|
|
}
|
|
|
|
pre.shiki div.dim {
|
|
@apply opacity-50 transition-opacity;
|
|
}
|
|
|
|
pre.shiki:hover div.dim {
|
|
@apply opacity-100;
|
|
}
|
|
|
|
pre.shiki div.highlight::before {
|
|
@apply bg-warning/20 absolute content-[''] w-full h-6;
|
|
}
|
|
|
|
pre.twoslash data-lsp {
|
|
@apply border-b border-dashed border-transparent transition-all;
|
|
}
|
|
|
|
pre.twoslash:hover data-lsp {
|
|
@apply border-neutral-content/30;
|
|
}
|
|
|
|
pre.twoslash data-lsp:hover::before {
|
|
/* https://daisyui.com/blog/how-to-update-daisyui-4/#3-all--focus-colors-are-removed */
|
|
@apply content-[attr(lsp)] absolute rounded translate-y-5 bg-[color-mix(in_oklab,oklch(var(--n)),black_7%)] text-neutral-content font-mono whitespace-pre-wrap transition-all px-2 py-1 z-50;
|
|
}
|
|
|
|
/* your code here */
|
|
|
|
/* Customized linear masks */
|
|
|
|
.mask-r {
|
|
mask-image: linear-gradient(to right, #000000 70% , transparent);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.md-mask-r {
|
|
mask-image: none;
|
|
}
|
|
}
|
|
|
|
/* wide screen support */
|
|
|
|
@media (min-width: 1728px) {
|
|
.custom-1728-max-w-screen-lg {
|
|
max-width: 1024px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1728px) {
|
|
.custom-1728-max-w-home-900 {
|
|
max-width: 900px;
|
|
}
|
|
}
|