element-plus/docs/.vitepress/vitepress/styles/content.scss
云游君 2caac7906e
refactor(docs): adjust style details & fix pages width (#6624)
* refactor(docs): adjust style details

* refactor(docs): add toc width

* refactor(docs): remove unused var

* fix(docs): typography & button etc pages width unify
2022-03-14 23:41:39 +08:00

37 lines
757 B
SCSS

@use './mixins' as *;
@use './content/doc-content';
@use './content/hero-content';
.page-content {
@include respond-to('lg') {
padding-top: var(--nav-height);
&.has-sidebar {
padding-left: var(--sidebar-width-sm);
@include respond-to('xlg') {
padding-left: var(--vp-sidebar-width-small);
}
@include respond-to('xxl') {
padding-left: calc(
(100vw - var(--vp-screen-max-width)) / 2 +
var(--vp-sidebar-width-small)
);
}
}
}
.doc-content a {
display: inline-flex;
align-items: center;
&.vp-link {
white-space: nowrap;
word-break: keep-all;
}
.link-icon {
margin-left: 0.25rem;
height: 1em;
width: 1em;
}
}
}