|
| 1 | +:root { |
| 2 | + --rp-c-brand: #f93920; |
| 3 | + --rp-c-brand-light: #fa6552; |
| 4 | + --rp-c-brand-lighter: #fc9183; |
| 5 | + --rp-c-brand-dark: #f82307; |
| 6 | + --rp-c-brand-darker: #e01f06; |
| 7 | + --rp-c-brand-tint: rgba(249, 57, 32, 0.15); |
| 8 | + --rp-c-text-code: var(--rp-c-text-1); |
| 9 | +} |
| 10 | + |
| 11 | +.dark { |
| 12 | + --rp-c-link: var(--rp-c-brand-light); |
| 13 | +} |
| 14 | + |
| 15 | +html:not(.dark) { |
| 16 | + --rp-c-text-2: #666; |
| 17 | +} |
| 18 | + |
| 19 | +.rp-sidebar-item:hover, |
| 20 | +.rp-sidebar-item--active, |
| 21 | +.rp-sidebar-item--active:hover { |
| 22 | + color: var(--rp-c-text-0); |
| 23 | + background-color: var(--rp-c-bg-mute); |
| 24 | +} |
| 25 | + |
| 26 | +.dark { |
| 27 | + .rp-sidebar-item:hover, |
| 28 | + .rp-sidebar-item--active, |
| 29 | + .rp-sidebar-item--active:hover { |
| 30 | + background-color: #1f1f1f; |
| 31 | + } |
| 32 | +} |
| 33 | + |
| 34 | +.rp-toc-item__text, |
| 35 | +.rp-toc-item__text code { |
| 36 | + color: var(--rp-c-text-2); |
| 37 | +} |
| 38 | + |
| 39 | +.rp-toc-item--active .rp-toc-item__text, |
| 40 | +.rp-toc-item--active .rp-toc-item__text code { |
| 41 | + color: var(--rp-c-text-0); |
| 42 | + font-weight: 500; |
| 43 | +} |
| 44 | + |
| 45 | +.rp-doc { |
| 46 | + .rp-link, |
| 47 | + .rp-link code { |
| 48 | + color: inherit; |
| 49 | + text-decoration-line: underline; |
| 50 | + text-underline-offset: 2px; |
| 51 | + text-decoration-color: rgba(0, 0, 0, 0.25); |
| 52 | + |
| 53 | + &:hover { |
| 54 | + opacity: 1; |
| 55 | + text-decoration-color: currentColor; |
| 56 | + border-bottom: none !important; |
| 57 | + } |
| 58 | + } |
| 59 | +} |
| 60 | + |
| 61 | +.dark { |
| 62 | + .rp-doc { |
| 63 | + .rp-link { |
| 64 | + text-decoration-color: rgba(255, 255, 255, 0.5); |
| 65 | + |
| 66 | + &:hover { |
| 67 | + text-decoration-color: currentColor; |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | +} |
0 commit comments