|
137 | 137 | border-color: var(--color-border); |
138 | 138 | } |
139 | 139 |
|
| 140 | +html { |
| 141 | + color-scheme: dark; |
| 142 | +} |
| 143 | + |
140 | 144 | body { |
141 | 145 | background-color: var(--color-background); |
142 | 146 | color: var(--color-foreground); |
@@ -660,115 +664,57 @@ button:focus-visible, |
660 | 664 | z-index: 1; |
661 | 665 | } |
662 | 666 |
|
663 | | -/* --- THEME-MATCHING SCROLLBARS --- */ |
| 667 | +/* --- ELEGANT SCROLLBARS --- */ |
664 | 668 |
|
665 | | -/* For Firefox */ |
| 669 | +/* Firefox - thin and minimal */ |
666 | 670 | * { |
667 | 671 | scrollbar-width: thin; |
668 | | - scrollbar-color: var(--color-muted-foreground) var(--color-background); |
| 672 | + scrollbar-color: rgba(156, 163, 175, 0.3) transparent; |
669 | 673 | } |
670 | 674 |
|
671 | | -/* For Webkit Browsers (Chrome, Safari, Edge) */ |
672 | | -*::-webkit-scrollbar { |
673 | | - width: 12px; |
674 | | - height: 12px; |
| 675 | +/* Global webkit scrollbar - ultra thin and elegant */ |
| 676 | +::-webkit-scrollbar { |
| 677 | + width: 3px; |
| 678 | + height: 3px; |
675 | 679 | } |
676 | 680 |
|
677 | | -*::-webkit-scrollbar-track { |
678 | | - background: var(--color-background); |
| 681 | +::-webkit-scrollbar-track { |
| 682 | + background: transparent; |
679 | 683 | } |
680 | 684 |
|
681 | | -*::-webkit-scrollbar-thumb { |
682 | | - background-color: var(--color-muted); |
683 | | - border-radius: 6px; |
684 | | - border: 3px solid var(--color-background); |
| 685 | +::-webkit-scrollbar-thumb { |
| 686 | + background-color: rgba(156, 163, 175, 0.5); |
| 687 | + border-radius: 2px; |
| 688 | + transition: background-color 0.2s ease; |
685 | 689 | } |
686 | 690 |
|
687 | | -*::-webkit-scrollbar-thumb:hover { |
688 | | - background-color: var(--color-muted-foreground); |
| 691 | +::-webkit-scrollbar-thumb:hover { |
| 692 | + background-color: rgba(156, 163, 175, 0.6); |
689 | 693 | } |
690 | 694 |
|
691 | | -*::-webkit-scrollbar-corner { |
| 695 | +::-webkit-scrollbar-corner { |
692 | 696 | background: transparent; |
693 | 697 | } |
694 | 698 |
|
695 | | -/* Code blocks and editors specific scrollbar */ |
| 699 | +/* Code blocks - slightly larger for better usability */ |
696 | 700 | pre::-webkit-scrollbar, |
697 | 701 | .w-md-editor-content::-webkit-scrollbar, |
698 | | -code::-webkit-scrollbar, |
699 | | -.overflow-auto::-webkit-scrollbar { |
| 702 | +code::-webkit-scrollbar { |
700 | 703 | width: 8px; |
701 | 704 | height: 8px; |
702 | 705 | } |
703 | 706 |
|
704 | 707 | pre::-webkit-scrollbar-thumb, |
705 | 708 | .w-md-editor-content::-webkit-scrollbar-thumb, |
706 | | -code::-webkit-scrollbar-thumb, |
707 | | -.overflow-auto::-webkit-scrollbar-thumb { |
708 | | - background-color: rgba(107, 114, 128, 0.2); |
| 709 | +code::-webkit-scrollbar-thumb { |
| 710 | + background-color: rgba(156, 163, 175, 0.4); |
| 711 | + border-radius: 4px; |
709 | 712 | } |
710 | 713 |
|
711 | 714 | pre::-webkit-scrollbar-thumb:hover, |
712 | 715 | .w-md-editor-content::-webkit-scrollbar-thumb:hover, |
713 | | -code::-webkit-scrollbar-thumb:hover, |
714 | | -.overflow-auto::-webkit-scrollbar-thumb:hover { |
715 | | - background-color: rgba(107, 114, 128, 0.4); |
716 | | -} |
717 | | - |
718 | | -/* Syntax highlighter specific */ |
719 | | -.bg-zinc-950 ::-webkit-scrollbar { |
720 | | - width: 8px; |
721 | | - height: 8px; |
722 | | -} |
723 | | - |
724 | | -.bg-zinc-950 ::-webkit-scrollbar-track { |
725 | | - background: rgba(0, 0, 0, 0.3); |
726 | | -} |
727 | | - |
728 | | -.bg-zinc-950 ::-webkit-scrollbar-thumb { |
729 | | - background-color: rgba(107, 114, 128, 0.3); |
730 | | - border-radius: 4px; |
731 | | -} |
732 | | - |
733 | | -.bg-zinc-950 ::-webkit-scrollbar-thumb:hover { |
734 | | - background-color: rgba(107, 114, 128, 0.5); |
735 | | -} |
736 | | - |
737 | | -/* Code preview specific scrollbar */ |
738 | | -.code-preview-scroll::-webkit-scrollbar { |
739 | | - width: 12px; |
740 | | - height: 12px; |
741 | | -} |
742 | | - |
743 | | -.code-preview-scroll::-webkit-scrollbar-track { |
744 | | - background: rgba(0, 0, 0, 0.2); |
745 | | - border-radius: 6px; |
746 | | -} |
747 | | - |
748 | | -.code-preview-scroll::-webkit-scrollbar-thumb { |
749 | | - background-color: rgba(107, 114, 128, 0.4); |
750 | | - border-radius: 6px; |
751 | | - border: 2px solid transparent; |
752 | | - background-clip: content-box; |
753 | | -} |
754 | | - |
755 | | -.code-preview-scroll::-webkit-scrollbar-thumb:hover { |
756 | | - background-color: rgba(107, 114, 128, 0.6); |
757 | | -} |
758 | | - |
759 | | -.code-preview-scroll::-webkit-scrollbar-thumb:active { |
760 | | - background-color: rgba(107, 114, 128, 0.8); |
761 | | -} |
762 | | - |
763 | | -.code-preview-scroll::-webkit-scrollbar-corner { |
764 | | - background: rgba(0, 0, 0, 0.2); |
765 | | - border-radius: 6px; |
766 | | -} |
767 | | - |
768 | | -/* Firefox scrollbar for code preview */ |
769 | | -.code-preview-scroll { |
770 | | - scrollbar-width: thin; |
771 | | - scrollbar-color: rgba(107, 114, 128, 0.4) rgba(0, 0, 0, 0.2); |
| 716 | +code::-webkit-scrollbar-thumb:hover { |
| 717 | + background-color: rgba(156, 163, 175, 0.6); |
772 | 718 | } |
773 | 719 |
|
774 | 720 | /* NFO Credits Scanlines Animation */ |
|
0 commit comments