tijl.dev-core/web/lib/main.css

76 lines
2.0 KiB
CSS
Raw Normal View History

2024-08-19 22:32:43 +02:00
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@layer base {
2024-08-31 17:42:51 +02:00
*, html {
2024-08-19 22:32:43 +02:00
font-family: "Cantarell", "CantarellVF", sans-serif;
2024-08-31 17:42:51 +02:00
scroll-margin-top: 96px;
scroll-behavior: smooth;
2024-08-19 22:32:43 +02:00
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
}
@font-face {
font-family: 'CantarellVF';
src: url('/static/fonts/Cantarell-VF.woff2'), format('woff2');
font-weight: Regular;
font-style: normal;
font-display: swap;
}
2024-08-31 17:42:51 +02:00
.posts-item {
cursor: pointer;
user-select: none;
transition-property: color, background-color, border-color,
text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
backdrop-filter;
transition-duration: 200ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
animation: button-pop var(--animation-posts-item, 0.25s) ease-out;
--tw-border-opacity: 1;
--tw-bg-opacity: 1;
--tw-text-opacity: 1;
}
.posts-item-group > input[type="radio"].posts-item {
appearance: none;
}
.posts-item-group > input[type="radio"].posts-item:before {
content: attr(data-title);
}
.posts-item:active:hover,
.posts-item:active:focus {
animation: none;
}
.posts-item:active:hover,
.posts-item:active:focus {
animation: none;
}
.posts-item:not(.no-animation):active:hover,
.posts-item:not(.no-animation):active:focus {
transform: scale(var(--posts-item-focus-scale, 0.95));
}
.posts-item:not(.no-animation):active:hover,
.posts-item:not(.no-animation):active:focus {
transform: scale(var(--posts-item-focus-scale, 0.95));
}
.posts-item:hover,
.posts-item-active {
--tw-border-opacity: 1;
/*border-color: hsl(var(--nf, var(--n)) / var(--tw-border-opacity));*/
--tw-bg-opacity: 1;
background-color: hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));
}
.posts-item:focus-visible {
outline: 2px solid hsl(var(--nf));
outline-offset: 2px;
}