mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
34 lines
497 B
SCSS
34 lines
497 B
SCSS
|
@import './mixins';
|
||
|
|
||
|
.sub-nav {
|
||
|
@include with-border;
|
||
|
@include with-bg;
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
z-index: var(--sub-nav-z-index);
|
||
|
overflow: hidden;
|
||
|
|
||
|
.sidebar-button,
|
||
|
.go-back-top {
|
||
|
padding: 0 16px;
|
||
|
}
|
||
|
|
||
|
.go-back-top {
|
||
|
transform: translateY(100%);
|
||
|
opacity: 0;
|
||
|
|
||
|
&.show {
|
||
|
transform: translateY(0);
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@include respond-to('lg') {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|