mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
feat: add auto-hide native scrollbar and optimize scrollbar styling
This commit is contained in:
parent
41fca8569e
commit
168e231119
7 changed files with 82 additions and 12 deletions
|
@ -83,6 +83,15 @@
|
|||
.heti :where(pre) {
|
||||
--at-apply: 'mb-4 overflow-auto uno-round-border px-4 py-3 bg-secondary/5!';
|
||||
}
|
||||
.heti pre::-webkit-scrollbar {
|
||||
--at-apply: 'h-1.25 lg:h-1.5';
|
||||
}
|
||||
.heti pre::-webkit-scrollbar-thumb {
|
||||
--at-apply: 'rounded-full bg-secondary/15';
|
||||
}
|
||||
.heti pre::-webkit-scrollbar-thumb:hover {
|
||||
--at-apply: 'bg-secondary/25';
|
||||
}
|
||||
.heti pre :where(code) {
|
||||
--at-apply: 'border-none bg-transparent p-0';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue