| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- .layout-sidebar {
- position: fixed;
- width: 300px;
- height: calc(100vh - 9rem);
- z-index: 999;
- overflow-y: auto;
- user-select: none;
- top: 7rem;
- left: 2rem;
- transition: transform $transitionDuration, left $transitionDuration;
- background-color: var(--surface-overlay);
- border-radius: 12px;
- padding: 1.5rem;
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);
- }
-
- .layout-menu {
- list-style-type: none;
- margin: 0;
- padding: 0;
-
- li {
- &.layout-menuitem-category {
- margin-top: 0.75rem;
-
- &:first-child {
- margin-top: 0;
- }
- }
-
- .layout-menuitem-root-text {
- text-transform: uppercase;
- color: var(--surface-900);
- font-weight: 600;
- margin-bottom: 0.5rem;
- font-size: 0.875rem;
- }
-
- a {
- cursor: pointer;
- text-decoration: none;
- display: flex;
- align-items: center;
- color: var(--text-color);
- transition: color $transitionDuration;
- border-radius: $borderRadius;
- padding: 0.75rem 1rem;
- transition: background-color 0.15s;
-
- span {
- margin-left: 0.5rem;
- }
-
- .menuitem-toggle-icon {
- margin-left: auto;
- }
-
- &:focus {
- @include focused-inset();
- }
-
- &:hover {
- background-color: var(--surface-hover);
- }
-
- &.router-link-exact-active {
- font-weight: 700;
- color: var(--primary-color);
- }
-
- .p-badge {
- margin-left: auto;
- }
- }
-
- &.active-menuitem {
- > a {
- .menuitem-toggle-icon {
- &:before {
- content: '\e933';
- }
- }
- }
- }
-
- ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
-
- &.layout-submenu-wrapper-enter-from,
- &.layout-submenu-wrapper-leave-to {
- max-height: 0;
- }
-
- &.layout-submenu-wrapper-enter-to,
- &.layout-submenu-wrapper-leave-from {
- max-height: 1000px;
- }
-
- &.layout-submenu-wrapper-leave-active {
- overflow: hidden;
- transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
- }
-
- &.layout-submenu-wrapper-enter-active {
- overflow: hidden;
- transition: max-height 1s ease-in-out;
- }
-
- ul {
- padding-left: 1rem;
- }
- }
- }
- }
|