mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
8583c70fdc
* feat(theme-chalk): use @use instead of @import & remove /**/ comment * refactor(theme-chalk): refactor scss with @use module * fix(docs): scss in docs toggle to '@use' * docs: add custom theme on demand * docs: add unplugin-element-plus
70 lines
1.4 KiB
SCSS
70 lines
1.4 KiB
SCSS
@use '../mixins' as *;
|
|
|
|
.toc-wrapper {
|
|
display: none;
|
|
padding-left: 64px;
|
|
.toc-content {
|
|
position: sticky;
|
|
top: calc(var(--header-height) + 32px);
|
|
margin-top: 32px;
|
|
padding: 4px 8px 4px 12px;
|
|
margin-bottom: 32px;
|
|
width: var(--toc-width);
|
|
.toc-marker {
|
|
opacity: 0;
|
|
position: absolute;
|
|
background-color: var(--brand-color);
|
|
border-radius: 4px;
|
|
width: 4px;
|
|
height: 14px;
|
|
top: 30px;
|
|
left: 0;
|
|
z-index: 0;
|
|
transition: top 0.25s cubic-bezier(0, 1, 0.5, 1), opacity 0.25s,
|
|
background-color 0.5s;
|
|
}
|
|
|
|
&__heading {
|
|
font-size: 12px;
|
|
color: var(--text-color-light);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.toc-items {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 12px 0 0;
|
|
line-height: 1.2;
|
|
|
|
.toc-item {
|
|
margin-top: 10px;
|
|
font-size: 11px;
|
|
color: var(--text-color-lighter);
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
color: inherit;
|
|
|
|
.toc-link {
|
|
position: relative;
|
|
color: var(--text-color-lighter);
|
|
transition: color var(--el-transition-duration);
|
|
&.active {
|
|
color: var(--brand-color);
|
|
}
|
|
}
|
|
|
|
&.subitem {
|
|
padding-left: 1rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@include respond-to('xlg') {
|
|
display: block;
|
|
}
|
|
}
|