UNPKG

@kangc/v-md-editor

Version:
400 lines (399 loc) 10.7 kB
.vuepress-markdown-body code[class*='v-md-prism-'], .vuepress-markdown-body pre[class*='v-md-prism-'] { color: #ccc; font-size: 1em; font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace; line-height: 1.5; white-space: pre; text-align: left; word-wrap: normal; word-break: normal; word-spacing: normal; tab-size: 4; -webkit-hyphens: none; hyphens: none; background: none; } .vuepress-markdown-body pre[class*='v-md-prism-'] { margin: 0.5em 0; padding: 1em; overflow: auto; } .vuepress-markdown-body :not(pre) > code[class*='v-md-prism-'], .vuepress-markdown-body pre[class*='v-md-prism-'] { background: #2d2d2d; } .vuepress-markdown-body :not(pre) > code[class*='v-md-prism-'] { padding: 0.1em; white-space: normal; border-radius: 0.3em; } .vuepress-markdown-body .token.block-comment, .vuepress-markdown-body .token.cdata, .vuepress-markdown-body .token.comment, .vuepress-markdown-body .token.doctype, .vuepress-markdown-body .token.prolog { color: #999; } .vuepress-markdown-body .token.punctuation { color: #ccc; } .vuepress-markdown-body .token.attr-name, .vuepress-markdown-body .token.deleted, .vuepress-markdown-body .token.namespace, .vuepress-markdown-body .token.tag { color: #e2777a; } .vuepress-markdown-body .token.function-name { color: #6196cc; } .vuepress-markdown-body .token.boolean, .vuepress-markdown-body .token.function, .vuepress-markdown-body .token.number { color: #f08d49; } .vuepress-markdown-body .token.class-name, .vuepress-markdown-body .token.constant, .vuepress-markdown-body .token.property, .vuepress-markdown-body .token.symbol { color: #f8c555; } .vuepress-markdown-body .token.atrule, .vuepress-markdown-body .token.builtin, .vuepress-markdown-body .token.important, .vuepress-markdown-body .token.keyword, .vuepress-markdown-body .token.selector { color: #cc99cd; } .vuepress-markdown-body .token.attr-value, .vuepress-markdown-body .token.char, .vuepress-markdown-body .token.regex, .vuepress-markdown-body .token.string, .vuepress-markdown-body .token.variable { color: #7ec699; } .vuepress-markdown-body .token.entity, .vuepress-markdown-body .token.operator, .vuepress-markdown-body .token.url { color: #67cdcc; } .vuepress-markdown-body .token.bold, .vuepress-markdown-body .token.important { font-weight: 700; } .vuepress-markdown-body .token.italic { font-style: italic; } .vuepress-markdown-body .token.entity { cursor: help; } .vuepress-markdown-body .token.inserted { color: green; } .vuepress-markdown-body code { margin: 0; padding: 0.25rem 0.5rem; color: #476582; font-size: 0.85em; background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; } .vuepress-markdown-body code .token.deleted { color: #ec5975; } .vuepress-markdown-body code .token.inserted { color: #3eaf7c; } .vuepress-markdown-body pre, .vuepress-markdown-body pre[class*='v-md-prism-'] { margin: 0.85rem 0; padding: 1.25rem 1.5rem; overflow: auto; line-height: 1.4; background-color: #282c34; border-radius: 6px; } .vuepress-markdown-body pre[class*='v-md-prism-'] code, .vuepress-markdown-body pre code { padding: 0; color: #fff; background-color: initial; border-radius: 0; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'] { position: relative; font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace; background-color: #282c34; border-radius: 6px; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'] pre, .vuepress-markdown-body div[class*='v-md-pre-wrapper-'] pre[class*='v-md-prism-'] { position: relative; z-index: 1; background: transparent; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-']::before { position: absolute; top: 0.8em; right: 1em; z-index: 3; color: hsla(0, 0%, 100%, 0.4); font-size: 0.75rem; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode::after { position: absolute; top: 0; left: 0; z-index: 2; width: 3.5rem; height: 100%; background-color: #282c34; border-right: 1px solid rgba(0, 0, 0, 0.66); border-radius: 6px 0 0 6px; content: ''; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-']:not(.line-numbers-mode) .line-numbers-wrapper { display: none; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode pre { padding-left: 4.5rem; vertical-align: middle; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode .line-numbers-wrapper { position: absolute; top: 0; width: 3.5rem; padding: 1.25rem 0; color: hsla(0, 0%, 100%, 0.3); line-height: 1.4; text-align: center; background: #282c34; border-right: 1px solid rgba(0, 0, 0, 0.66); } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode .line-numbers-wrapper br { -webkit-user-select: none; -ms-user-select: none; user-select: none; } .vuepress-markdown-body div[class*='v-md-pre-wrapper-'].line-numbers-mode .line-numbers-wrapper .line-number { position: relative; z-index: 4; font-size: 0.85em; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-js']::before { content: 'js'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-ts']::before { content: 'ts'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-html']::before { content: 'html'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-md']::before { content: 'md'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-vue']::before { content: 'vue'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-css']::before { content: 'css'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-sass']::before { content: 'sass'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-scss']::before { content: 'scss'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-less']::before { content: 'less'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-stylus']::before { content: 'stylus'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-go']::before { content: 'go'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-java']::before { content: 'java'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-c']::before { content: 'c'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-sh']::before { content: 'sh'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-yaml']::before { content: 'yaml'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-py']::before { content: 'py'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-docker']::before { content: 'docker'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-dockerfile']::before { content: 'dockerfile'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-makefile']::before { content: 'makefile'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-javascript']::before { content: 'js'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-typescript']::before { content: 'ts'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-markup']::before { content: 'html'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-markdown']::before { content: 'md'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-json']::before { content: 'json'; } .vuepress-markdown-body div[class~='v-md-pre-wrapperruby']::before { content: 'rb'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-python']::before { content: 'py'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-bash']::before { content: 'sh'; } .vuepress-markdown-body div[class~='v-md-pre-wrapper-php']::before { content: 'php'; } .vuepress-markdown-body { color: #2c3e50; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, Segoe UI Emoji, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; word-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .vuepress-markdown-body img { max-width: 100%; border: 0; } .vuepress-markdown-body a { font-weight: 500; text-decoration: none; } .vuepress-markdown-body a .v-md-icon-open-in-new { position: relative; display: inline-block; color: #aaa; font-size: 15px; vertical-align: bottom; } .vuepress-markdown-body a, .vuepress-markdown-body p a code { color: #3eaf7c; } .vuepress-markdown-body p a code { font-weight: 400; } .vuepress-markdown-body kbd { padding: 0 0.15em; background: #eee; border: 0.15rem solid #ddd; border-bottom: 0.25rem solid #ddd; border-radius: 0.15rem; } .vuepress-markdown-body blockquote { margin: 1rem 0; padding: 0.25rem 0 0.25rem 1rem; color: #999; font-size: 1rem; border-left: 0.2rem solid #dfe2e5; } .vuepress-markdown-body blockquote > p { margin: 0; } .vuepress-markdown-body ol, .vuepress-markdown-body ul { padding-left: 1.2em; } .vuepress-markdown-body strong { font-weight: 600; } .vuepress-markdown-body h1, .vuepress-markdown-body h2, .vuepress-markdown-body h3, .vuepress-markdown-body h4, .vuepress-markdown-body h5, .vuepress-markdown-body h6 { font-weight: 600; line-height: 1.25; } .vuepress-markdown-body h1:hover .header-anchor, .vuepress-markdown-body h2:hover .header-anchor, .vuepress-markdown-body h3:hover .header-anchor, .vuepress-markdown-body h4:hover .header-anchor, .vuepress-markdown-body h5:hover .header-anchor, .vuepress-markdown-body h6:hover .header-anchor { opacity: 1; } .vuepress-markdown-body h1 { font-size: 2.2rem; } .vuepress-markdown-body h2 { padding-bottom: 0.3rem; font-size: 1.65rem; border-bottom: 1px solid #eaecef; } .vuepress-markdown-body h3 { font-size: 1.35rem; } .vuepress-markdown-body a.header-anchor { float: left; margin-top: 0.125em; margin-left: -0.87em; padding-right: 0.23em; font-size: 0.85em; opacity: 0; } .vuepress-markdown-body a.header-anchor:hover { text-decoration: none; } .vuepress-markdown-body .line-number, .vuepress-markdown-body code, .vuepress-markdown-body kbd { font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace; } .vuepress-markdown-body ol, .vuepress-markdown-body p, .vuepress-markdown-body ul { line-height: 1.7; } .vuepress-markdown-body hr { border: 0; border-top: 1px solid #eaecef; } .vuepress-markdown-body table { display: block; margin: 1rem 0; overflow-x: auto; border-collapse: collapse; } .vuepress-markdown-body tr { border-top: 1px solid #dfe2e5; } .vuepress-markdown-body tr:nth-child(2n) { background-color: #f6f8fa; } .vuepress-markdown-body td, .vuepress-markdown-body th { padding: 0.6em 1em; border: 1px solid #dfe2e5; }