mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-06 10:07:48 +08:00
50 lines
1.1 KiB
SCSS
50 lines
1.1 KiB
SCSS
@import '../style/variable';
|
|
@import '../style/mixin';
|
|
|
|
$height: 40px;
|
|
|
|
.container {
|
|
.nav-bar-container {
|
|
@include absolute(100%, $height);
|
|
z-index: 100;
|
|
.nav-bar {
|
|
@include overflow-auto(x);
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--darker-background);
|
|
font-size: 0;
|
|
white-space: nowrap;
|
|
}
|
|
.nav-bar-item {
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
height: $height - 2;
|
|
line-height: $height - 2;
|
|
padding: 0 10px;
|
|
color: var(--foreground);
|
|
font-size: $font-size-s;
|
|
text-align: center;
|
|
text-transform: capitalize;
|
|
transition: all $anim-duration;
|
|
&:active {
|
|
background: var(--highlight);
|
|
color: var(--select-foreground);
|
|
}
|
|
&.active {
|
|
background: var(--highlight);
|
|
color: var(--select-foreground);
|
|
}
|
|
}
|
|
.bottom-bar {
|
|
transition: left $anim-duration, width $anim-duration;
|
|
height: 1px;
|
|
background: var(--accent);
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|