mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
c6bed151a5
* feat(website): init viteperss (#3162) * init vitepress * Finish homepage * relayout page * partial finish * update * update use lang * remove font weight; change font size * docs: optimize docs folder structure * reorganize project * fix ssr issue * fix build issues Co-authored-by: Kevin <sxzz@sxzz.moe> Co-authored-by: zouhang <zouhang@didiglobal.com> * feat(website) integrate with crowdin (#3218) - Introduce Crowdin CLI - Add script for fetching Crowdin token from env - Add script for local development * fix formatting * update codeblocks (#3249) * feat(docs): update website preview script - Update azure preview build script - Eliminate dead links * bootstrap docs * fix homepage layout issue * fix formating * Finish ToC and codepen integration * reorganized files and fix issue that causes demo unavailable after build * feat(docs): migration documentations (#3283) * feat(docs): migration documentations - Move documentations to docs/ * remove unused files * docs: [popconfirm] migrate document (#3285) * feat(docs): migrate documentation from space.md to upload.md (#3292) - Upload documentations acorrodingly * docs: [date-picker] migrate document (#3289) * docs: [date-picker] migrate document * fix: typo * docs: [slider] migrate document (#3287) * docs: migrate documents (#3290) * docs: migrate-datetime-picker * docs: migrate descriptions * docs: migrate dialog * docs: migrate divider * docs: migrate drawer * docs: migrate drapdown * docs: fix drapdown * docs: migrate empty * docs: migrate form * docs: add scoped for style * docs: simplify toRefs * chore: update doc (#3297) * chore: update doc * chore: update doc * chore: update doc * feat(docs): migrate documentations from infinite-scroll to page-header (#3303) - Update docs accordingly - Update CodePen icon to match style - Update component name to match others * docs: migrate documentions (#3293) migrate list: * image * popover * scrollbar * radio * rate * skeleton * select * select-v2 * reault * progress * pagination * chore: update doc (#3305) Co-authored-by: 0song <0song@gmail.com> * Fix broken pipeline * chore: update demo plugin * website perfection * fix hydration bug * docs: update guide (#3342) * WIP docs * docs: update docs * add dark mode * make dev fetch components from local instead of node_modules Co-authored-by: msidolphin <msidolphin@outlook.com> Co-authored-by: Aex <spryti@qq.com> Co-authored-by: 0song <82012629+0song@users.noreply.github.com> Co-authored-by: 0song <0song@gmail.com> Co-authored-by: zouhang <zouhang@didiglobal.com> Co-authored-by: 三咲智子 <sxzz@sxzz.moe> * fix(docs): fix codepen code example issue (#3380) * fix(docs): fix codepen code example issue - Add lang="ts" for all example files - Fix codepen import error * revert changes in resource.vue * feat(docs): complete crowdin integration (#3408) * Update mds for preparing the integration script * deprecate old website * update sponsors and even handler for resize * update build script for preview * fix preview-build error * fix preview-build error * fix preview-build error * fix preview-build error * fix preview-build error * update deploy script and some bugs * Fix existing issue * chore(project): add dev preview workflow * chore(project): rename dev to staging * update the size of toc * update staging-preview script * update preview scripts * enable website build for preview * fix build error * final commitment for update the details * remove azure pipeline * move docs ignores into docs and update date Co-authored-by: Kevin <sxzz@sxzz.moe> Co-authored-by: zouhang <zouhang@didiglobal.com> Co-authored-by: msidolphin <msidolphin@outlook.com> Co-authored-by: Aex <spryti@qq.com> Co-authored-by: 0song <82012629+0song@users.noreply.github.com> Co-authored-by: 0song <0song@gmail.com>
303 lines
4.8 KiB
SCSS
303 lines
4.8 KiB
SCSS
code {
|
|
margin: 0;
|
|
border-radius: 3px;
|
|
padding: 0.25rem 0.5rem;
|
|
font-family: var(--code-font-family);
|
|
font-size: 0.85em;
|
|
color: var(--code-text-color);
|
|
background-color: var(--code-bg-color);
|
|
}
|
|
|
|
code .token.deleted {
|
|
color: #ec5975;
|
|
}
|
|
|
|
code .token.inserted {
|
|
color: var(--c-brand);
|
|
}
|
|
|
|
div[class*='language-'] {
|
|
position: relative;
|
|
margin: 1rem -1.5rem;
|
|
background-color: var(--code-bg-color);
|
|
overflow-x: auto;
|
|
|
|
.dark & {
|
|
background-color: var(--bg-color-soft);
|
|
}
|
|
}
|
|
|
|
li > div[class*='language-'] {
|
|
border-radius: 6px 0 0 6px;
|
|
margin: 1rem -1.5rem 1rem -1.25rem;
|
|
}
|
|
|
|
@media (min-width: 420px) {
|
|
div[class*='language-'] {
|
|
margin: 1rem 0;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
li > div[class*='language-'] {
|
|
margin: 1rem 0 1rem 0rem;
|
|
border-radius: 6px;
|
|
}
|
|
}
|
|
|
|
[class*='language-'] pre,
|
|
[class*='language-'] code {
|
|
text-align: left;
|
|
white-space: pre;
|
|
word-spacing: normal;
|
|
word-break: normal;
|
|
word-wrap: normal;
|
|
-moz-tab-size: 4;
|
|
-o-tab-size: 4;
|
|
tab-size: 4;
|
|
-webkit-hyphens: none;
|
|
-moz-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
}
|
|
|
|
[class*='language-'] pre {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin: 0;
|
|
padding: 1.25rem 1.5rem;
|
|
background: transparent;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
[class*='language-'] code {
|
|
padding: 0;
|
|
line-height: var(--code-line-height);
|
|
font-size: var(--code-font-size);
|
|
color: var(--code-text-color);
|
|
}
|
|
|
|
/* Line highlighting */
|
|
|
|
.highlight-lines {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 1.25rem 0;
|
|
width: 100%;
|
|
line-height: var(--code-line-height);
|
|
font-family: var(--code-font-family);
|
|
font-size: var(--code-font-size);
|
|
user-select: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.highlight-lines .highlighted {
|
|
background-color: rgba(0, 0, 0, 0.66);
|
|
}
|
|
|
|
/* Line numbers mode */
|
|
|
|
div[class*='language-'].line-numbers-mode {
|
|
padding-left: 3.5rem;
|
|
}
|
|
|
|
.line-numbers-wrapper {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 3;
|
|
border-right: 1px solid rgba(0, 0, 0, 0.5);
|
|
padding: 1.25rem 0;
|
|
width: 3.5rem;
|
|
text-align: center;
|
|
line-height: var(--code-line-height);
|
|
font-family: var(--code-font-family);
|
|
font-size: var(--code-font-size);
|
|
color: #888;
|
|
}
|
|
|
|
/* Language marker */
|
|
|
|
div[class*='language-']:before {
|
|
position: absolute;
|
|
top: 0.6em;
|
|
right: 1em;
|
|
z-index: 2;
|
|
font-size: 0.8rem;
|
|
color: #888;
|
|
}
|
|
|
|
div[class~='language-html']:before,
|
|
div[class~='language-markup']:before {
|
|
content: 'html';
|
|
}
|
|
|
|
div[class~='language-md']:before,
|
|
div[class~='language-markdown']:before {
|
|
content: 'md';
|
|
}
|
|
|
|
div[class~='language-css']:before {
|
|
content: 'css';
|
|
}
|
|
|
|
div[class~='language-sass']:before {
|
|
content: 'sass';
|
|
}
|
|
|
|
div[class~='language-scss']:before {
|
|
content: 'scss';
|
|
}
|
|
|
|
div[class~='language-less']:before {
|
|
content: 'less';
|
|
}
|
|
|
|
div[class~='language-stylus']:before {
|
|
content: 'styl';
|
|
}
|
|
|
|
div[class~='language-js']:before,
|
|
div[class~='language-javascript']:before {
|
|
content: 'js';
|
|
}
|
|
|
|
div[class~='language-ts']:before,
|
|
div[class~='language-typescript']:before {
|
|
content: 'ts';
|
|
}
|
|
|
|
div[class~='language-json']:before {
|
|
content: 'json';
|
|
}
|
|
|
|
div[class~='language-rb']:before,
|
|
div[class~='language-ruby']:before {
|
|
content: 'rb';
|
|
}
|
|
|
|
div[class~='language-py']:before,
|
|
div[class~='language-python']:before {
|
|
content: 'py';
|
|
}
|
|
|
|
div[class~='language-sh']:before,
|
|
div[class~='language-bash']:before {
|
|
content: 'sh';
|
|
}
|
|
|
|
div[class~='language-php']:before {
|
|
content: 'php';
|
|
}
|
|
|
|
div[class~='language-go']:before {
|
|
content: 'go';
|
|
}
|
|
|
|
div[class~='language-rust']:before {
|
|
content: 'rust';
|
|
}
|
|
|
|
div[class~='language-java']:before {
|
|
content: 'java';
|
|
}
|
|
|
|
div[class~='language-c']:before {
|
|
content: 'c';
|
|
}
|
|
|
|
div[class~='language-yaml']:before {
|
|
content: 'yaml';
|
|
}
|
|
|
|
div[class~='language-dockerfile']:before {
|
|
content: 'dockerfile';
|
|
}
|
|
|
|
div[class~='language-vue']:before {
|
|
content: 'vue';
|
|
}
|
|
|
|
/**
|
|
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML.
|
|
* Based on https://github.com/chriskempson/tomorrow-theme
|
|
*
|
|
* @author Rose Pritchard
|
|
*/
|
|
.token.comment,
|
|
.token.block-comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: #848486;
|
|
}
|
|
|
|
.token.punctuation {
|
|
color: #a8a9cc;
|
|
}
|
|
|
|
.token.tag,
|
|
.token.attr-name,
|
|
.token.namespace,
|
|
.token.deleted {
|
|
color: #3182bd;
|
|
}
|
|
|
|
.token.function-name {
|
|
color: #6196cc;
|
|
}
|
|
|
|
.token.boolean,
|
|
.token.number,
|
|
.token.function {
|
|
color: #c25205;
|
|
}
|
|
|
|
.token.property,
|
|
.token.class-name,
|
|
.token.constant,
|
|
.token.symbol {
|
|
color: #717c11;
|
|
}
|
|
|
|
.token.selector,
|
|
.token.important,
|
|
.token.atrule,
|
|
.token.keyword,
|
|
.token.builtin {
|
|
color: #c792ea;
|
|
}
|
|
|
|
.token.string,
|
|
.token.char,
|
|
.token.attr-value,
|
|
.token.regex,
|
|
.token.variable {
|
|
color: #0b8235;
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url {
|
|
color: #67cdcc;
|
|
}
|
|
|
|
.token.important,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|
|
|
|
.token.inserted {
|
|
color: green;
|
|
}
|