2021-02-20 13:09:41 +08:00
|
|
|
.nav-wrap
|
2021-02-19 23:33:19 +08:00
|
|
|
position: sticky
|
|
|
|
position: -webkit-sticky
|
|
|
|
margin-top: 1.75rem
|
|
|
|
top: -2px
|
|
|
|
background: var(--site-bg)
|
2021-02-25 13:12:04 +08:00
|
|
|
padding: 0.5rem 1rem 0.38rem
|
2021-02-19 23:33:19 +08:00
|
|
|
z-index: 1
|
2021-02-25 13:12:04 +08:00
|
|
|
|
2021-02-20 13:09:41 +08:00
|
|
|
nav.cap
|
|
|
|
display: flex
|
2021-02-19 23:33:19 +08:00
|
|
|
overflow: scroll
|
|
|
|
scrollbar(0, 0)
|
|
|
|
>p
|
|
|
|
margin: 0
|
|
|
|
a
|
|
|
|
padding: 0.5rem 0.75rem
|
2021-02-25 13:12:04 +08:00
|
|
|
margin-left: 0.25rem
|
2021-02-19 23:33:19 +08:00
|
|
|
color: var(--text-p3)
|
|
|
|
border-radius: 4px
|
2021-03-05 21:37:28 +08:00
|
|
|
font-weight: 500
|
2021-02-19 23:33:19 +08:00
|
|
|
white-space: nowrap
|
2021-02-25 13:12:04 +08:00
|
|
|
&.active, &:hover
|
2021-03-08 17:54:23 +08:00
|
|
|
background: var(--block-hover)
|
2021-02-19 23:33:19 +08:00
|
|
|
color: var(--text-p1)
|
2021-02-20 13:09:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: $device-tablet)
|
|
|
|
.nav-wrap
|
2021-02-22 23:07:12 +08:00
|
|
|
margin-top: 0
|