michalvankodev-site/axum_server/styles/input.css

170 lines
4.0 KiB
CSS
Raw Normal View History

2024-02-22 20:13:23 +01:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2024-03-02 13:12:55 +01:00
2024-09-13 23:21:51 +02:00
@layer base {
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-display: swap;
font-weight: 300;
src:
local('Comfortaa Light'),
local('Comfortaa'),
url(/fonts/comfortaa/Comfortaa-Light.woff2) format('woff2'),
url(/fonts/comfortaa/Comfortaa-Light.ttf) format('truetype');
}
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-display: swap;
font-weight: 400;
src:
local('Comfortaa Regular'),
local('Comfortaa'),
url(/fonts/comfortaa/Comfortaa-Regular.woff2) format('woff2'),
url(/fonts/comfortaa/Comfortaa-Regular.ttf) format('truetype');
}
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-display: swap;
font-weight: 500;
src:
local('Comfortaa Medium'),
local('Comfortaa'),
url(/fonts/comfortaa/Comfortaa-Medium.woff2) format('woff2'),
url(/fonts/comfortaa/Comfortaa-Medium.ttf) format('truetype');
}
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-display: swap;
font-weight: 600;
src:
local('Comfortaa SemiBold'),
local('Comfortaa'),
url(/fonts/comfortaa/Comfortaa-SemiBold.woff2) format('woff2'),
url(/fonts/comfortaa/Comfortaa-SemiBold.ttf) format('truetype');
}
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-display: swap;
font-weight: 700;
src:
local('Comfortaa Bold'),
local('Comfortaa'),
url(/fonts/comfortaa/Comfortaa-Bold.woff2) format('woff2'),
url(/fonts/comfortaa/Comfortaa-Bold.ttf) format('truetype');
}
@font-face {
font-family: 'Baloo2';
font-style: normal;
font-display: swap;
src:
local('Baloo2'),
url(/fonts/baloo2/Baloo2-VariableFont_wght.ttf) format('truetype');
}
}
2024-04-30 23:10:12 +02:00
a {
2024-09-18 18:36:54 +02:00
@apply text-pink-800 underline underline-offset-2;
2024-04-30 23:10:12 +02:00
&:hover {
2024-09-18 18:36:54 +02:00
@apply transition text-blue-500;
2024-04-30 23:10:12 +02:00
}
}
strong {
@apply font-medium;
}
2024-09-20 11:51:29 +02:00
img[height] {
height: revert-layer;
}
2024-03-02 22:56:06 +01:00
.article-body {
h1 {
2024-09-15 20:38:58 +02:00
@apply px-4 text-2xl font-semibold text-blue-900 mb-3 mt-4 max-w-read mx-auto md:text-4xl lg:text-5xl;
2024-03-02 22:56:06 +01:00
}
h2 {
2024-09-15 20:38:58 +02:00
@apply px-4 text-xl font-semibold text-blue-900 mb-3 mt-4 max-w-read mx-auto md:text-2xl md:mb-6 md:mt-8 lg:mb-8 lg:mt-12 lg:text-4xl;
2024-03-02 22:56:06 +01:00
}
2024-09-18 18:36:54 +02:00
h3 {
@apply px-4 text-lg font-semibold text-blue-900 mb-3 mt-4 max-w-read mx-auto md:text-xl md:mb-6 md:mt-8 lg:mb-8 lg:mt-12 lg:text-3xl;
}
h4 {
@apply px-4 text-lg font-medium text-blue-900 mb-2 mt-3 max-w-read mx-auto md:text-lg md:mb-6 md:mt-8 lg:mb-8 lg:mt-12 lg:text-3xl;
}
2024-03-02 22:56:06 +01:00
p {
2024-09-15 20:38:58 +02:00
@apply px-4 my-2 text-slate-950 text-justify mx-auto max-w-read md:text-lg md:my-8 lg:text-readxl;
}
2024-03-02 22:56:06 +01:00
pre {
2024-09-10 21:58:57 +02:00
@apply p-4 my-1 overflow-auto text-sm mx-auto max-w-read;
2024-03-02 22:56:06 +01:00
}
figure {
2024-09-10 21:58:57 +02:00
@apply p-4;
2024-03-02 22:56:06 +01:00
img {
2024-09-15 20:38:58 +02:00
@apply rounded shadow-md mx-auto lg:max-w-image;
2024-03-02 13:12:55 +01:00
}
}
2024-03-02 22:56:06 +01:00
figcaption {
2024-09-10 21:58:57 +02:00
@apply mt-2 text-center text-sm italic text-blue-800 md:text-base lg:text-lg;
2024-03-02 22:56:06 +01:00
}
2024-09-10 21:58:57 +02:00
2024-03-02 22:56:06 +01:00
table {
2024-09-20 11:51:29 +02:00
@apply text-sm mx-auto my-4 max-w-image table-auto border-collapse border-spacing-12 border border-slate-200 rounded md:text-base lg:text-xl lg:my-8;
2024-09-10 21:58:57 +02:00
}
thead {
@apply bg-blue-100;
}
tbody {
@apply bg-slate-50;
}
td,
th {
@apply py-0.5 px-2 border-b md:py-2 md:px-5;
}
tr {
@apply even:bg-slate-100;
}
blockquote {
2024-09-18 18:36:54 +02:00
@apply mx-6 py-1 px-2 bg-pink-50 lg:mx-auto max-w-note border-l-4 border-pink-600;
2024-09-10 21:58:57 +02:00
p {
@apply my-2 md:my-4 text-slate-600 max-w-note;
}
2024-03-02 22:56:06 +01:00
}
2024-09-11 13:15:00 +02:00
:not(pre) code {
2024-09-18 18:36:54 +02:00
@apply text-pink-900 rounded border border-blue-300 px-1 py-0.5 bg-blue-100 text-sm md:text-base lg:text-xl;
2024-09-11 13:15:00 +02:00
}
pre code pre {
@apply mx-2 rounded lg:mx-auto lg:text-lg shadow-sm lg:max-w-note;
}
2024-09-18 18:36:54 +02:00
ul,
ol {
@apply px-4 my-2 text-slate-950 mx-auto max-w-read md:text-lg md:my-8 lg:text-readxl;
}
iframe {
@apply rounded shadow-md mx-auto lg:max-w-image;
}
2024-03-02 22:56:06 +01:00
}
.video-embed {
2024-09-10 21:58:57 +02:00
@apply m-4 mx-auto max-w-image aspect-video;
2024-03-02 13:12:55 +01:00
}