element-plus/docs/.vitepress/vitepress/styles/navbar.scss
云游君 8583c70fdc
feat(theme-chalk): use @use instead of @import & remove /**/ comment (#3696)
* 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
2021-09-28 20:42:12 +08:00

64 lines
1002 B
SCSS

@use './mixins' as *;
// import components
@use './nav/menu';
.navbar-wrapper {
@include with-bg;
position: relative;
border-bottom: 1px solid var(--border-color);
padding: 0 12px 0 24px;
height: var(--header-height);
top: 0;
@include respond-to('md') {
padding: 0 12px 0 32px;
}
@include respond-to('xlg') {
padding: 0 32px;
}
.container {
display: flex;
justify-content: space-between;
margin: 0 auto;
max-width: var(--app-max-width);
.content {
display: flex;
justify-content: flex-end;
align-items: center;
flex-grow: 1;
}
}
@include respond-to('md') {
.content {
padding-top: 1px;
}
}
}
.navbar {
top: 0;
left: 0;
position: relative;
z-index: var(--nav-z-index);
@include respond-to('lg') {
position: fixed;
width: 100%;
}
}
.menu + .appearance {
margin-left: 8px;
}
.menu + .social-links {
margin-left: 12px;
}
.appearance + .social-links {
margin-left: 12px;
}