scinote-web/app/assets/stylesheets/navigation/left_menu.scss

74 lines
1.5 KiB
SCSS
Raw Normal View History

// scss-lint:disable SelectorDepth unknownProperties
// scss-lint:disable NestingDepth SelectorFormat
.sci--layout--left-menu-container {
background-color: $color-white;
2023-06-12 20:23:26 +08:00
border-right: 1px solid var(--sn-sleepy-grey);
display: flex;
flex-direction: column;
height: 100%;
padding: 1.5rem 1rem;
width: 100%;
.sci--layout--menu-item {
@include font-small;
align-items: center;
2023-06-12 20:23:26 +08:00
border-radius: 4px;
color: $color-black;
cursor: pointer;
display: flex;
gap: 1em;
height: 36px;
2023-06-12 20:23:26 +08:00
margin: .375rem 0;
padding: .375rem .375rem .375rem .625rem;
text-decoration: none;
width: 100%;
2023-06-20 21:53:33 +08:00
.sn-icon-dot-small {
color: var(--sn-grey);
}
2023-05-17 20:18:16 +08:00
&:not([data-active='true']):hover {
background-color: var(--sn-super-light-grey);
2023-06-20 21:53:33 +08:00
.sn-icon-dot-small {
color: var(--sn-black);
}
2023-05-17 20:18:16 +08:00
}
.show-submenu {
cursor: pointer;
display: none;
margin-left: auto;
}
&[data-active='true'] {
2023-06-12 20:23:26 +08:00
background-color: var(--sn-super-light-blue);
}
&[data-disabled='true'] {
background-color: initial;
box-shadow: none;
cursor: not-allowed;
opacity: .65;
pointer-events: none;
}
&[data-submenu='true'] {
.show-submenu {
display: initial;
}
}
}
.sci--layout--menu-submenu {
height: 0;
overflow: hidden;
transition: .4s $timing-function-sharp;
&[data-collapsed=false] {
height: calc(var(--submenu-items) * (36px + .5em));
}
}
}