iamkonstantin/theme/static_src/src/styles.css

139 lines
3 KiB
CSS
Raw Normal View History

2024-03-15 07:26:20 +01:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2024-03-18 17:36:00 +01:00
@layer base {
@font-face {
2024-03-19 21:39:18 +01:00
font-family: NotoEmoji;
font-weight: 400;
src: url("/static/fonts/NotoEmoji-Regular.ttf") format("truetype");
}
2024-03-18 17:36:00 +01:00
}
2024-03-15 07:26:20 +01:00
@layer components {
2024-03-18 17:36:00 +01:00
2024-03-19 21:39:18 +01:00
section {
@apply my-8;
}
2024-03-18 17:36:00 +01:00
.emoji {
2024-03-19 21:39:18 +01:00
font-family: NotoEmoji;
2024-03-18 17:36:00 +01:00
}
a {
2024-03-26 18:13:15 +01:00
@apply border-klavender border-b-4;
2024-03-15 07:26:20 +01:00
}
a[href^="#"]::before {
@apply hover:visible;
content: "#";
display: inline-block;
font-size: 0.9em;
line-height: 1;
margin-left: -0.8em;
text-decoration: none;
visibility: hidden;
width: 0.8em;
}
2024-03-15 07:26:20 +01:00
h1 {
2024-03-19 21:39:18 +01:00
@apply mt-8 mb-6 text-2xl sm:text-4xl lg:text-4xl leading-none font-extrabold tracking-tight text-black dark:text-white;
2024-03-15 07:26:20 +01:00
}
h2 {
2024-03-19 21:39:18 +01:00
@apply mt-6 mb-4 text-xl sm:text-3xl lg:text-3xl leading-none font-extrabold tracking-tight text-black dark:text-white;
2024-03-15 07:26:20 +01:00
}
h3 {
2024-12-16 12:00:33 +01:00
@apply mt-10 mb-3 text-xl sm:text-2xl lg:text-2xl leading-none font-extrabold tracking-tight text-black dark:text-white;
2024-03-15 07:26:20 +01:00
}
h4 {
2024-03-19 21:39:18 +01:00
@apply mt-2 mb-1 text-lg sm:text-2xl lg:text-2xl leading-none font-extrabold tracking-tight text-black dark:text-white;
2024-03-15 07:26:20 +01:00
}
p {
@apply my-2 mb-3 text-lg leading-relaxed;
}
2024-12-16 12:00:33 +01:00
li {
@apply my-2 text-lg;
}
2024-06-17 11:14:02 +02:00
.blog-content ul, .home-content ul {
2024-04-13 11:21:09 +02:00
@apply list-none list-inside;
}
2024-06-17 11:14:02 +02:00
.blog-content ul li::before, .home-content ul li::before {
2024-04-13 11:21:09 +02:00
content: "👉";
font-family: NotoEmoji;
@apply inline-block mr-2 py-1;
}
2024-03-18 17:36:00 +01:00
img.blog {
@apply inset-0 h-full w-full rounded-2xl bg-gray-50 object-contain shadow-lg;
2024-03-18 17:36:00 +01:00
}
.blog-content img {
2024-04-13 11:12:42 +02:00
@apply bg-gray-50 object-contain rounded-2xl shadow-lg max-h-[650px] mx-auto w-auto my-6;
2024-03-18 17:36:00 +01:00
}
2024-03-15 07:26:20 +01:00
@media print {
h1 {
@apply mt-6 mb-4 text-xl;
}
h2 {
@apply mt-4 mb-2 text-base;
}
h3 {
@apply text-base;
}
p {
@apply text-sm my-1;
}
.ppb {
page-break-before: always;
}
}
.primary-button {
2024-03-19 21:39:18 +01:00
@apply rounded-full bg-klavender cursor-pointer px-4 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600;
2024-03-15 07:26:20 +01:00
}
2024-03-23 16:10:46 +01:00
code[class*="language-"], pre[class*="language-"] {
2024-03-23 17:57:33 +01:00
white-space: pre-wrap !important;
2024-03-23 16:10:46 +01:00
word-break: break-word !important;
}
2024-04-13 11:06:45 +02:00
blockquote {
@apply border-l-4 border-klavender p-4 my-4 text-xl italic;
}
2024-03-15 07:26:20 +01:00
}
.tags ul {
2024-03-18 17:52:23 +01:00
@apply flex space-x-4 text-center text-sm;
2024-03-15 07:26:20 +01:00
}
2024-03-19 21:39:18 +01:00
.tags li {
2024-03-26 18:16:19 +01:00
@apply p-4 inline-flex items-center rounded-2xl bg-green-50 px-2 py-1 font-medium text-green-700 ring-1 ring-inset ring-green-600/20;
2024-03-19 21:39:18 +01:00
}
2024-03-18 17:36:00 +01:00
2024-04-13 11:35:55 +02:00
.tags ul li::before {
content: "";
@apply py-0 mr-0;
}
2024-03-19 21:39:18 +01:00
.tags a {
@apply border-b-0 w-full;
}
2024-03-18 17:52:23 +01:00
2024-03-19 21:39:18 +01:00
.blog-pages a {
@apply border-b-0;
2024-04-13 11:06:45 +02:00
}