mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Co-authored-by: codecalm <codecalm@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: codecalm <1282324+codecalm@users.noreply.github.com>
42 lines
755 B
SCSS
42 lines
755 B
SCSS
@use '../config' as *;
|
|
|
|
// The wrapper is measured, so it must never size to the nav inside it
|
|
.nav-overflow {
|
|
contain: inline-size;
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
|
|
// Clip instead of hiding, so the nav stays usable when the script does not run
|
|
&:not(.nav-overflow-initialized) {
|
|
overflow: clip;
|
|
}
|
|
|
|
> .nav,
|
|
> .navbar-nav {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
min-width: 0;
|
|
|
|
> .nav-item {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-overflow-item {
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
.nav-overflow-toggle {
|
|
gap: var(--nav-link-icon-margin-end);
|
|
}
|
|
|
|
.nav-overflow-icon {
|
|
display: flex;
|
|
|
|
.icon {
|
|
width: var(--nav-link-icon-width, #{$nav-link-icon-size});
|
|
height: var(--nav-link-icon-height, #{$nav-link-icon-size});
|
|
}
|
|
}
|