UNPKG

vue-markdown-shiki

Version:

A Vue 3 component library that provides integration with Shiki and Markdown-it.

69 lines (60 loc) 1.54 kB
/* 小于640之后全是0 */ @media (max-width: 639px) { .vp-doc div[class*='language-'] { border-radius: 0; /* margin: 16px 0; */ } } @media (min-width: 640px) { .vp-doc { min-width: 320px; } .vp-doc div[class*='language-'] { border-radius: 0 0 8px 8px; /* margin: 16px 0; */ } .vp-header { border-radius: 8px 8px 0 0; } } .dark { color-scheme: dark; } .vp-doc { margin: 0; width: 100%; /* min-height: 100vh; */ line-height: 24px; font-family: var(--vp-font-family-base); font-size: 16px; font-weight: 400; color: var(--vp-c-text-1); /* background-color: var(--vp-c-bg); */ direction: ltr; font-synthesis: style; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .vp-doc div:first-child p { padding-top: 0; margin-top: 0; } @keyframes blink { to { visibility: hidden; } } /* .result-streaming> body p:not(ol):not(ul):not(pre):last-child:after, */ /* .result-streaming li:last-child:not(:empty):not(:has(div)):not(:has(p)):after, */ .result-streaming .line:last-child > span:last-child:after, .result-streaming > body > :last-child:not(ol):not(ul):not(pre):not(:has(.line)):after, .result-streaming > body > ul:last-child > li:last-child::after /* .result-streaming > body > :last-child > *:last-child::after */ { -webkit-animation: blink 1s steps(5, start) infinite; animation: blink 1s steps(5, start) infinite; content: '▋'; margin-left: 0.25rem; vertical-align: baseline; }