chore(ui): rename menu references to sidebar (#1212)
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
@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(--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(--surface-500);
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.expand-icon:hover {
|
||||
color: var(--surface-200);
|
||||
}
|
||||
}
|
||||
|
||||
@media #{variables.$mobile-shell-media-query} {
|
||||
.root-item-with-dropdown:focus-visible {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
outline: 2px solid var(--primary-color);
|
||||
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(--text-color-secondary);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user