122 lines
2.3 KiB
SCSS
122 lines
2.3 KiB
SCSS
@use "../../../../assets/layout/styles/layout/variables";
|
|
|
|
:host {
|
|
display: block;
|
|
list-style: none;
|
|
}
|
|
|
|
.expand-icon-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
opacity: 1;
|
|
}
|
|
|
|
.root-item-with-dropdown {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: var(--sidebar-section-min-height);
|
|
min-height: var(--sidebar-section-min-height);
|
|
padding: 0 var(--sidebar-section-inline-end) 0 var(--sidebar-section-inline-start);
|
|
border: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
font: inherit;
|
|
color: inherit;
|
|
|
|
&:focus-visible {
|
|
background-color: var(--color-surface-hover);
|
|
box-shadow: var(--sidebar-focus-ring);
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
.root-item-label-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
gap: var(--sidebar-row-gap);
|
|
|
|
> span {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.expand-icon {
|
|
color: var(--color-surface-500);
|
|
}
|
|
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.expand-icon:hover {
|
|
color: var(--color-surface-200);
|
|
}
|
|
}
|
|
|
|
@media #{variables.$mobile-shell-media-query} {
|
|
.root-item-with-dropdown:focus-visible {
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
outline: 2px solid var(--color-primary);
|
|
outline-offset: -2px;
|
|
}
|
|
}
|
|
|
|
.root-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
box-sizing: border-box;
|
|
height: var(--sidebar-section-min-height);
|
|
min-height: var(--sidebar-section-min-height);
|
|
min-width: 0;
|
|
|
|
> div {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.submenu-container {
|
|
display: grid;
|
|
grid-template-rows: 0fr;
|
|
transition: grid-template-rows 400ms cubic-bezier(0.86, 0, 0.07, 1);
|
|
overflow: hidden;
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
transition: none;
|
|
}
|
|
|
|
> * {
|
|
overflow: hidden;
|
|
}
|
|
|
|
&.expanded {
|
|
grid-template-rows: 1fr;
|
|
}
|
|
}
|
|
|
|
@media #{variables.$mobile-shell-media-query} {
|
|
.expand-icon-button {
|
|
opacity: 1;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
margin-right: -0.25rem;
|
|
}
|
|
|
|
.expand-icon {
|
|
font-size: 1.125rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
}
|