Commit 9590113ad8
Unsigned
Layout: unified · split
docs/.vitepress/theme/components/Tooltip.vue +1 −1
| @@ -24,7 +24,7 @@ withDefaults( | ||
| 24 | 24 | <VTooltip theme="vp-tooltip" @show="isOpen = true" @hide="isOpen = false"> |
| 25 | 25 | <button |
| 26 | 26 | aria-label="Tooltip" |
| 27 | class="size-3 p-0 select-none font-bold cursor-pointer" style="color: #a8f0cc" | |
| 27 | class="size-3 p-0 select-none font-bold cursor-pointer" style="color: var(--vp-custom-block-tip-text)" | |
| 28 | 28 | > |
| 29 | 29 | <div :class="isOpen ? 'i-ic-twotone-add-circle' : 'i-ic-twotone-add-circle-outline'" /> |
| 30 | 30 | </button> |
docs/.vitepress/theme/styles/style.scss +28 −3
| @@ -147,7 +147,7 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | .vp-doc a { |
| 150 | color: var(--vp-c-brand-1); | |
| 150 | color: var(--vp-c-brand-2); | |
| 151 | 151 | text-decoration: underline; |
| 152 | 152 | text-underline-offset: 4px; |
| 153 | 153 | text-decoration-style: dashed; |
| @@ -157,9 +157,19 @@ $ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0); | ||
| 157 | 157 | transition: text-decoration-color 0.25s; |
| 158 | 158 | |
| 159 | 159 | &:hover { |
| 160 | color: var(--vp-c-brand-2); | |
| 161 | text-decoration-color: var(--vp-c-brand-2); | |
| 162 | -webkit-text-decoration-color: var(--vp-c-brand-2); | |
| 163 | } | |
| 164 | ||
| 165 | .dark & { | |
| 160 | 166 | color: var(--vp-c-brand-1); |
| 161 | text-decoration-color: var(--vp-c-brand-1); | |
| 162 | -webkit-text-decoration-color: var(--vp-c-brand-1); | |
| 167 | ||
| 168 | &:hover { | |
| 169 | color: var(--vp-c-brand-1); | |
| 170 | text-decoration-color: var(--vp-c-brand-1); | |
| 171 | -webkit-text-decoration-color: var(--vp-c-brand-1); | |
| 172 | } | |
| 163 | 173 | } |
| 164 | 174 | } |
| 165 | 175 | |
| @@ -306,6 +316,21 @@ main figure figcaption { | ||
| 306 | 316 | --uno: "rounded-xl border-2"; |
| 307 | 317 | } |
| 308 | 318 | |
| 319 | :root:not(.dark) .details.custom-block a { | |
| 320 | color: var(--vp-custom-block-info-text); | |
| 321 | font-weight: 500; | |
| 322 | text-decoration: underline; | |
| 323 | text-underline-offset: 2px; | |
| 324 | text-decoration-style: dashed; | |
| 325 | text-decoration-thickness: 1px; | |
| 326 | transition: opacity 0.25s; | |
| 327 | } | |
| 328 | ||
| 329 | :root:not(.dark) .details.custom-block a:hover { | |
| 330 | opacity: 0.7; | |
| 331 | color: var(--vp-custom-block-info-text-deep); | |
| 332 | } | |
| 333 | ||
| 309 | 334 | .info.custom-block a { |
| 310 | 335 | color: var(--vp-custom-block-info-text); |
| 311 | 336 | font-weight: 500; |