memos/web/src/index.css

61 lines
1.4 KiB
CSS

@import "tailwindcss";
@import "tw-animate-css";
@import "./themes/default.css";
@layer base {
* {
@apply border-border outline-none ring-0;
scrollbar-color: color-mix(in oklch, var(--muted-foreground) 55%, transparent) transparent;
scrollbar-width: thin;
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background: transparent;
}
*::-webkit-scrollbar-thumb {
background-color: color-mix(in oklch, var(--muted-foreground) 45%, transparent);
border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
background-color: color-mix(in oklch, var(--muted-foreground) 65%, transparent);
}
body {
@apply bg-background text-foreground;
}
}
@layer components {
.map-attribution-minimal .leaflet-control-attribution {
margin: 0 0.25rem 0.25rem 0 !important;
border-radius: 0.25rem;
background: color-mix(in oklch, var(--background) 90%, transparent);
color: var(--muted-foreground);
font-size: 10px;
line-height: 1rem;
padding: 0 0.25rem;
}
.map-attribution-minimal .leaflet-control-attribution a {
color: inherit;
text-decoration: none;
}
.map-attribution-minimal .leaflet-control-attribution a:hover {
color: var(--foreground);
text-decoration: underline;
}
.map-attribution-minimal .leaflet-control-attribution a:focus-visible {
border-radius: 0.125rem;
outline: 2px solid var(--ring);
outline-offset: 1px;
}
}