2021-09-28 20:42:12 +08:00
|
|
|
@use './mixins' as *;
|
2021-09-17 00:18:50 +08:00
|
|
|
|
|
|
|
*,
|
|
|
|
::before,
|
|
|
|
::after {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
line-height: 1.4;
|
|
|
|
font-size: 16px;
|
2021-10-29 19:16:53 +08:00
|
|
|
text-size-adjust: 100%;
|
2021-09-17 00:18:50 +08:00
|
|
|
font-family: var(--font-family);
|
|
|
|
font-weight: 400;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 320px;
|
|
|
|
min-height: 100vh;
|
|
|
|
line-height: 1.4;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--text-color);
|
|
|
|
background-color: var(--bg-color);
|
|
|
|
direction: ltr;
|
|
|
|
font-synthesis: none;
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 1.25;
|
2022-04-01 16:11:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.doc-content {
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
2022-03-31 17:02:12 +08:00
|
|
|
|
2022-04-01 16:11:57 +08:00
|
|
|
// Special case for handling tagged header.
|
|
|
|
.el-tag {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
2022-03-31 17:02:12 +08:00
|
|
|
}
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6,
|
|
|
|
strong,
|
|
|
|
b {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1:hover .header-anchor,
|
|
|
|
h1:focus .header-anchor,
|
|
|
|
h2:hover .header-anchor,
|
|
|
|
h2:focus .header-anchor,
|
|
|
|
h3:hover .header-anchor,
|
|
|
|
h3:focus .header-anchor,
|
|
|
|
h4:hover .header-anchor,
|
|
|
|
h4:focus .header-anchor,
|
|
|
|
h5:hover .header-anchor,
|
|
|
|
h5:focus .header-anchor,
|
|
|
|
h6:hover .header-anchor,
|
|
|
|
h6:focus .header-anchor {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin-top: 1.5rem;
|
2022-03-14 23:41:39 +08:00
|
|
|
margin-bottom: 2rem;
|
2021-09-17 00:18:50 +08:00
|
|
|
font-size: 1.9rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include respond-to('sm') {
|
|
|
|
h1 {
|
|
|
|
font-size: 2.2rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
margin-top: 2.25rem;
|
|
|
|
margin-bottom: 1.25rem;
|
|
|
|
padding-bottom: 0.3rem;
|
|
|
|
line-height: 1.25;
|
|
|
|
font-size: 1.65rem;
|
|
|
|
/* overflow-x: auto; */
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 + h3 {
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
margin-top: 2rem;
|
|
|
|
font-size: 1.35rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.15rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p,
|
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
margin: 1rem 0;
|
|
|
|
line-height: 1.7;
|
|
|
|
}
|
|
|
|
|
|
|
|
a,
|
|
|
|
area,
|
|
|
|
button,
|
|
|
|
[role='button'],
|
|
|
|
input,
|
|
|
|
label,
|
|
|
|
select,
|
|
|
|
summary,
|
|
|
|
textarea {
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-03-14 23:41:39 +08:00
|
|
|
font-weight: 500;
|
2021-09-17 00:18:50 +08:00
|
|
|
text-decoration: inherit;
|
2021-09-18 00:34:56 +08:00
|
|
|
color: var(--brand-color);
|
2021-09-17 00:18:50 +08:00
|
|
|
|
|
|
|
&.header-anchor {
|
|
|
|
color: var(--brand-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a.header-anchor {
|
2022-03-31 17:02:12 +08:00
|
|
|
position: absolute;
|
2021-09-17 00:18:50 +08:00
|
|
|
margin-top: 0.125em;
|
|
|
|
margin-left: -0.87em;
|
|
|
|
padding-right: 0.23em;
|
|
|
|
font-size: 0.85em;
|
|
|
|
opacity: 0;
|
2022-04-10 14:04:46 +08:00
|
|
|
&:hover,
|
|
|
|
:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
padding-left: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li > ul,
|
|
|
|
li > ol {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-01-04 14:58:11 +08:00
|
|
|
.doc-content > div .vp-table {
|
|
|
|
width: 100%;
|
|
|
|
overflow-y: hidden;
|
|
|
|
overflow-x: auto;
|
|
|
|
margin-bottom: 45px;
|
|
|
|
& > table {
|
2021-09-17 00:18:50 +08:00
|
|
|
border-collapse: collapse;
|
2021-10-21 16:12:17 +08:00
|
|
|
width: 100%;
|
|
|
|
background-color: var(--bg-color);
|
2021-09-18 00:34:56 +08:00
|
|
|
font-size: 14px;
|
2021-10-21 16:12:17 +08:00
|
|
|
line-height: 1.5em;
|
2021-09-17 00:18:50 +08:00
|
|
|
|
|
|
|
tr {
|
2021-09-18 00:34:56 +08:00
|
|
|
td:nth-child(2) {
|
|
|
|
font-family: var(--font-family);
|
|
|
|
}
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
2021-09-18 00:34:56 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
2021-09-17 00:18:50 +08:00
|
|
|
padding: 0.6em 1em;
|
2021-09-18 00:34:56 +08:00
|
|
|
text-align: left;
|
2021-10-21 16:12:17 +08:00
|
|
|
max-width: 250px;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
thead tr:first-child th {
|
|
|
|
border-top: none;
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 1rem 0;
|
2022-03-14 23:41:39 +08:00
|
|
|
border-left: 0.2rem solid var(--el-border-color);
|
2021-09-17 00:18:50 +08:00
|
|
|
padding: 0.25rem 0 0.25rem 1rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
color: var(--text-color-lighter);
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote > p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-popover.is-light.translation-popup {
|
|
|
|
background-color: var(--bg-color) !important;
|
|
|
|
border-color: var(--border-color);
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 12px 0;
|
|
|
|
min-width: 192px;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
transition: background-color 0.5s;
|
|
|
|
}
|
|
|
|
|
2021-09-18 00:34:56 +08:00
|
|
|
#nprogress .bar {
|
|
|
|
background: var(--brand-color) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.custom-block {
|
|
|
|
.custom-block-title {
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
p:not(.custom-block-title) {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
}
|
|
|
|
&.tip {
|
|
|
|
padding: 8px 16px;
|
2022-02-21 21:36:34 +08:00
|
|
|
background-color: var(--block-tip-bg-color);
|
2021-09-18 00:34:56 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
border-left: 5px solid var(--el-color-primary);
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning {
|
|
|
|
padding: 8px 16px;
|
2022-02-21 21:36:34 +08:00
|
|
|
background-color: var(--block-warning-bg-color);
|
2021-09-18 00:34:56 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
border-left: 5px solid var(--el-color-danger);
|
|
|
|
margin: 20px 0;
|
|
|
|
}
|
|
|
|
}
|