|
203 | 203 | color: inherit; |
204 | 204 | font-weight: 600; |
205 | 205 | text-decoration: underline; |
206 | | - transition: opacity .25s; |
| 206 | + transition: opacity 0.25s; |
207 | 207 | } |
208 | 208 |
|
209 | 209 | .vp-doc .custom-block a:hover { |
|
381 | 381 | background-position: 50%; |
382 | 382 | background-size: 20px; |
383 | 383 | background-repeat: no-repeat; |
384 | | - transition: opacity 0.25s; |
| 384 | + transition: opacity 0.4s; |
385 | 385 | } |
386 | 386 |
|
387 | 387 | .vp-doc [class*='language-']:hover > span.copy { |
|
414 | 414 | color: var(--vp-code-copy-code-active-text); |
415 | 415 | background-color: var(--vp-code-copy-code-hover-bg); |
416 | 416 | white-space: nowrap; |
417 | | - content: "Copied"; |
| 417 | + content: 'Copied'; |
418 | 418 | } |
419 | 419 |
|
420 | | -.vp-doc [class*='language-']:before { |
| 420 | +.vp-doc [class*='language-'] > span.lang { |
421 | 421 | position: absolute; |
422 | 422 | top: 6px; |
423 | 423 | right: 12px; |
424 | 424 | z-index: 2; |
425 | 425 | font-size: 12px; |
426 | 426 | font-weight: 500; |
427 | 427 | color: var(--vp-c-text-dark-3); |
428 | | - transition: color 0.5s, opacity 0.5s; |
| 428 | + transition: color 0.4s, opacity 0.4s; |
429 | 429 | } |
430 | 430 |
|
431 | | -.vp-doc [class*='language-']:hover:before { |
| 431 | +.vp-doc [class*='language-']:hover > span.lang { |
432 | 432 | opacity: 0; |
433 | 433 | } |
434 | 434 |
|
435 | | -.vp-doc [class~='language-c']:before { content: 'c'; } |
436 | | -.vp-doc [class~='language-css']:before { content: 'css'; } |
437 | | -.vp-doc [class~='language-go']:before { content: 'go'; } |
438 | | -.vp-doc [class~='language-html']:before { content: 'html'; } |
439 | | -.vp-doc [class~='language-java']:before { content: 'java'; } |
440 | | -.vp-doc [class~='language-javascript']:before { content: 'js'; } |
441 | | -.vp-doc [class~='language-js']:before { content: 'js'; } |
442 | | -.vp-doc [class~='language-json']:before { content: 'json'; } |
443 | | -.vp-doc [class~='language-jsx']:before { content: 'jsx'; } |
444 | | -.vp-doc [class~='language-less']:before { content: 'less'; } |
445 | | -.vp-doc [class~='language-markdown']:before { content: 'md'; } |
446 | | -.vp-doc [class~='language-md']:before { content: 'md' } |
447 | | -.vp-doc [class~='language-php']:before { content: 'php'; } |
448 | | -.vp-doc [class~='language-python']:before { content: 'py'; } |
449 | | -.vp-doc [class~='language-py']:before { content: 'py'; } |
450 | | -.vp-doc [class~='language-rb']:before { content: 'rb'; } |
451 | | -.vp-doc [class~='language-ruby']:before { content: 'rb'; } |
452 | | -.vp-doc [class~='language-rust']:before { content: 'rust'; } |
453 | | -.vp-doc [class~='language-sass']:before { content: 'sass'; } |
454 | | -.vp-doc [class~='language-scss']:before { content: 'scss'; } |
455 | | -.vp-doc [class~='language-sh']:before { content: 'sh'; } |
456 | | -.vp-doc [class~='language-bash']:before { content: 'sh'; } |
457 | | -.vp-doc [class~='language-stylus']:before { content: 'styl'; } |
458 | | -.vp-doc [class~='language-vue-html']:before { content: 'template'; } |
459 | | -.vp-doc [class~='language-typescript']:before { content: 'ts'; } |
460 | | -.vp-doc [class~='language-ts']:before { content: 'ts'; } |
461 | | -.vp-doc [class~='language-tsx']:before { content: 'tsx'; } |
462 | | -.vp-doc [class~='language-vue']:before { content: 'vue'; } |
463 | | -.vp-doc [class~='language-yaml']:before { content: 'yaml'; } |
464 | | - |
465 | 435 | /** |
466 | 436 | * Component: Team |
467 | 437 | * -------------------------------------------------------------------------- */ |
|
0 commit comments