92 lines
2.3 KiB
CSS
92 lines
2.3 KiB
CSS
@import "tailwindcss/base";
|
|
@import "tailwindcss/components";
|
|
@import "tailwindcss/utilities";
|
|
|
|
@layer components {
|
|
.btn:not(.btn-ghost) {
|
|
@apply border-base-300 border-2;
|
|
}
|
|
.btn:not(.btn-primary) {
|
|
@apply hover:bg-base-300;
|
|
}
|
|
.input {
|
|
@apply border-2 border-base-300;
|
|
}
|
|
.active {
|
|
@apply !bg-primary !text-black;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
*, html {
|
|
font-family: "Cantarell", "CantarellVF", sans-serif;
|
|
scroll-margin-top: 96px;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.no-scrollbar {
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Cantarell', sans-serif;
|
|
src: url('/static/fonts/Cantarell-VF.woff2'), format('woff2');
|
|
font-weight: Regular;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 1 1000;
|
|
}
|
|
|
|
|
|
.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;
|
|
}
|