2020-03-21 23:04:01 +08:00
|
|
|
@require '../variables.styl'
|
|
|
|
|
|
|
|
$nav-font-size = 12px;
|
|
|
|
|
2020-03-14 16:17:04 +08:00
|
|
|
.nav {
|
2020-03-21 23:04:01 +08:00
|
|
|
position: relative
|
|
|
|
width: 100%
|
|
|
|
height: 100%
|
|
|
|
box-sizing: border-box
|
|
|
|
background: $background-color
|
|
|
|
border-bottom: 1px solid $border-color
|
2020-03-14 16:17:04 +08:00
|
|
|
padding: 20px;
|
2020-03-21 23:04:01 +08:00
|
|
|
font-size: $nav-font-size;
|
2020-03-14 16:17:04 +08:00
|
|
|
|
|
|
|
.menu-list {
|
2020-03-21 23:04:01 +08:00
|
|
|
position: absolute;
|
2020-03-14 16:17:04 +08:00
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2020-03-22 20:31:13 +08:00
|
|
|
margin-left: 30px;
|
2020-03-14 16:17:04 +08:00
|
|
|
|
|
|
|
.menu-item {
|
2020-03-21 23:04:01 +08:00
|
|
|
float: left;
|
2020-03-22 20:31:13 +08:00
|
|
|
margin-right: 20px;
|
2020-03-14 16:17:04 +08:00
|
|
|
|
2020-03-21 23:04:01 +08:00
|
|
|
.current {
|
|
|
|
padding-bottom: 20px;
|
|
|
|
border-bottom: 1px solid $nav-selected-color;
|
2020-03-14 16:17:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-22 20:31:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
.fold-left-side-btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
font-size 20px
|
|
|
|
color: $a-color
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-03-29 19:54:28 +08:00
|
|
|
.search-btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 20px;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
|
|
|
|
2020-03-22 20:31:13 +08:00
|
|
|
@media screen and (max-width: $media-max-width) {
|
|
|
|
.fold-left-side-btn {
|
|
|
|
display: none
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-list {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-14 16:17:04 +08:00
|
|
|
}
|