159 lines
3.4 KiB
CSS
159 lines
3.4 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
@font-face {
|
|
font-family: 'Sora';
|
|
font-style: normal;
|
|
src: url(/assets/fonts/Sora-Medium.ttf)
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-style: normal;
|
|
src: url(/assets/fonts/Inter-VariableFont_opsz,wght.ttf)
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-style: italic;
|
|
src: url(/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf)
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'VictorMono';
|
|
font-style: normal;
|
|
src: url(/assets/fonts/VictorMono-Light.ttf)
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'VictorMono';
|
|
font-style: italic;
|
|
src: url(/assets/fonts/VictorMono-LightItalic.ttf)
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.link {
|
|
@apply text-blue underline underline-offset-2 ;
|
|
}
|
|
.link:visited {
|
|
@apply text-mauve dark:text-lavender;
|
|
}
|
|
.link:hover,
|
|
.link:active,
|
|
.link:focus {
|
|
@apply no-underline text-sky outline-2 outline-sky;
|
|
}
|
|
|
|
.outline-link {
|
|
@apply outline-offset-4 outline-2 outline-sky;
|
|
}
|
|
}
|
|
|
|
pre, p > code {
|
|
font-family: "VictorMono", monospace;
|
|
font-variant-ligatures: contextual;
|
|
color: rgb(var(--ctp-text));
|
|
}
|
|
p > code {
|
|
padding: 0 .25rem;
|
|
display: inline-block;
|
|
background-color: rgb(var(--ctp-mantle));
|
|
color: rgb(var(--ctp-red));
|
|
border: 1px solid rgb(var(--ctp-surface0));
|
|
border-radius: 0.25rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
pre {
|
|
position: relative;
|
|
padding: 1rem 0.75rem;
|
|
margin: 1rem 0 ;
|
|
overflow: auto;
|
|
max-width: 100%;
|
|
white-space: pre-wrap;
|
|
page-break-inside: avoid;
|
|
background-color: rgb(var(--ctp-crust));
|
|
mask:
|
|
radial-gradient(0.56rem at 50% 0.75rem,#000 99%,#0000 101%) calc(50% - 0.5rem) 0/1rem 51% repeat-x,
|
|
radial-gradient(0.56rem at 50% -0.5rem,#0000 99%,#000 101%) 50% .25rem/1rem calc(51% - .25rem) repeat-x,
|
|
radial-gradient(0.56rem at 50% calc(100% - 0.75rem),#000 99%,#0000 101%) calc(50% - 0.5rem) 100%/1rem 51% repeat-x,
|
|
radial-gradient(0.56rem at 50% calc(100% + 0.5rem),#0000 99%,#000 101%) 50% calc(100% - .25rem)/1rem calc(51% - .25rem) repeat-x;
|
|
|
|
.hljs-language-icon {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: .2rem .25rem;
|
|
color: rgb(var(--ctp-subtext1));
|
|
background-color: rgb(var(--ctp-base));
|
|
border-left: 1px solid rgb(var(--ctp-surface0));
|
|
border-bottom: 1px solid rgb(var(--ctp-surface0));
|
|
border-radius: 0 0 0 0.25rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
}
|
|
|
|
.hljs-comment {
|
|
font-style: italic;
|
|
}
|
|
|
|
.fancy-heading {
|
|
background: linear-gradient(to bottom right,
|
|
rgb(var(--ctp-peach)),
|
|
rgb(var(--ctp-mauve))
|
|
);
|
|
background-clip: text;
|
|
color: transparent;
|
|
padding-bottom: .25rem;
|
|
margin-bottom: -.25rem;
|
|
|
|
.text-text {
|
|
color: transparent !important;
|
|
}
|
|
}
|
|
|
|
.fancy-blockquote {
|
|
max-width: 30rem;
|
|
font-size: 1.4rem;
|
|
background: linear-gradient(
|
|
rgb(var(--ctp-green)),
|
|
rgb(var(--ctp-yellow))
|
|
);
|
|
background-clip: text;
|
|
color: transparent;
|
|
margin: 0 auto 1rem;
|
|
padding: .75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: .75rem;
|
|
position: relative;
|
|
|
|
&:before,
|
|
&:after {
|
|
content: '';
|
|
width: 5rem;
|
|
height: 2px;
|
|
position: absolute;
|
|
left: calc(50% - 5rem);
|
|
}
|
|
|
|
&:before {
|
|
background-color: rgba(var(--ctp-green));
|
|
top: 0;
|
|
}
|
|
|
|
&:after {
|
|
background-color: rgba(var(--ctp-yellow));
|
|
bottom: 0;
|
|
}
|
|
|
|
.text-text {
|
|
color: transparent !important;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|