chore(docs): update website table theme (#3985)

- Adjust current table to archived version
- Reverse the language list to put Chinese on the top
This commit is contained in:
jeremywu 2021-10-21 16:12:17 +08:00 committed by GitHub
parent 3786ba9993
commit a75cdde895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 14 deletions

View File

@ -25,7 +25,7 @@ const [show, toggle] = useToggle()
</ElButton>
<div v-show="show" class="translation-items">
<p
v-for="l in langs"
v-for="l in langs.reverse()"
:key="l"
:class="{ active: l === lang }"
class="translation-item"

View File

@ -21,7 +21,7 @@ const { switchLang, languageMap, langs, lang, helpTranslate } = useTranslation()
</ElIcon>
</template>
<div
v-for="l in langs"
v-for="l in langs.reverse()"
:key="l"
:class="{ language: true, selected: l === lang }"
@click="switchLang(l)"

View File

@ -169,27 +169,19 @@ li > ol {
.doc-content > div {
> table {
display: block;
border-collapse: collapse;
margin: 1rem 0;
overflow-x: auto;
font-family: var(--font-family-mono);
width: 100%;
background-color: var(--bg-color);
font-size: 14px;
margin-bottom: 45px;
line-height: 1.5em;
tr {
border-top: 1px solid var(--border-color);
td:nth-child(2) {
font-family: var(--font-family);
white-space: pre-wrap;
min-width: 11.62rem;
}
}
tr:nth-child(2n) {
background-color: var(--bg-color-mute);
}
th,
td {
white-space: nowrap;
@ -197,6 +189,12 @@ li > ol {
border-bottom: 1px solid var(--border-color);
padding: 0.6em 1em;
text-align: left;
max-width: 250px;
white-space: pre-wrap;
}
thead tr:first-child th {
border-top: none;
}
}
}