mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
48a056b051
* docs: modify layout style * docs: modify nav padding * docs: update style * feat: update * docs: upadte * docs: update * docs: modify layout style * docs: update style * feat: update * docs: upadte * docs: update * docs: update * docs: update * docs: remove empty script * docs: update --------- Co-authored-by: kooriookami <bingshuanglingluo@163.com> Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
73 lines
1.2 KiB
SCSS
73 lines
1.2 KiB
SCSS
@use './mixins' as *;
|
|
|
|
// import components
|
|
|
|
@use './nav/menu';
|
|
|
|
.navbar-wrapper {
|
|
position: relative;
|
|
border-bottom: 1px solid var(--border-color);
|
|
height: var(--header-height);
|
|
padding: 0 12px 0 24px;
|
|
background-image: radial-gradient(transparent 1px, var(--bg-color) 1px);
|
|
background-size: 4px 4px;
|
|
backdrop-filter: saturate(50%) blur(4px);
|
|
-webkit-backdrop-filter: saturate(50%) blur(4px);
|
|
top: 0;
|
|
|
|
@include respond-to('md') {
|
|
padding: 0 12px 0 32px;
|
|
}
|
|
|
|
@include respond-to('xlg') {
|
|
padding: 0 32px;
|
|
}
|
|
|
|
@include respond-to('max') {
|
|
padding: 0 48px;
|
|
}
|
|
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin: 0 auto;
|
|
|
|
.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: sticky;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.menu + .appearance {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.menu + .social-links {
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.appearance + .social-links {
|
|
margin-left: 12px;
|
|
}
|