primevue-mirror/assets/styles/layout/_sidebar.scss

150 lines
4.2 KiB
SCSS
Raw Normal View History

2023-02-28 08:29:30 +00:00
.layout-sidebar {
2023-10-07 14:52:00 +00:00
position: sticky;
2023-02-28 08:29:30 +00:00
left: 0;
2023-10-09 07:21:14 +00:00
top: 6rem;
2023-10-07 19:43:10 +00:00
height: calc(100vh - 9rem);
2023-02-28 08:29:30 +00:00
user-select: none;
2023-10-07 19:43:10 +00:00
transition: transform .4s cubic-bezier(.05,.74,.2,.99), opacity .3s;
2023-02-28 08:29:30 +00:00
display: flex;
flex-direction: column;
2023-10-07 19:43:10 +00:00
padding: 0 0 0 0;
2023-10-07 15:46:59 +00:00
flex: 0 0 250px;
margin-right: 4rem;
2023-10-07 19:43:10 +00:00
overflow: auto;
2023-02-28 08:29:30 +00:00
.logo {
display: flex;
justify-content: center;
}
nav {
2023-10-07 14:52:00 +00:00
padding: 0;
2023-10-09 07:21:14 +00:00
margin: -.5rem 0 0 0;
2023-02-28 08:29:30 +00:00
flex-grow: 1;
}
.layout-menu {
list-style: none;
margin: 0;
padding: 0;
> li {
2023-09-16 12:01:29 +00:00
margin-bottom: .25rem;
2023-02-28 08:29:30 +00:00
> button,
> a {
display: flex;
width: 100%;
align-items: center;
2023-10-09 07:21:14 +00:00
padding: .5rem 0;
2023-02-28 08:29:30 +00:00
color: var(--surface-900);
font-weight: 600;
2023-09-16 12:01:29 +00:00
transition: all .2s;
2023-02-28 08:29:30 +00:00
.menu-icon {
width: 2rem;
height: 2rem;
border-radius: var(--border-radius);
margin-right: .5rem;
border: 1px solid var(--surface-border);
display: inline-flex;
align-items: center;
justify-content: center;
2023-09-16 12:01:29 +00:00
transition: all .2s;
2023-02-28 08:29:30 +00:00
i {
color: var(--surface-700);
2023-09-16 12:01:29 +00:00
transition: all .2s;
2023-02-28 08:29:30 +00:00
}
}
.menu-toggle-icon {
2023-09-16 12:01:29 +00:00
color: var(--surface-700);
2023-02-28 08:29:30 +00:00
margin-left: auto;
}
2023-09-16 12:01:29 +00:00
&:hover {
.menu-icon {
i {
color: var(--surface-900);
}
}
.menu-toggle-icon {
color: var(--surface-900);
}
}
&.router-link-active {
color: var(--primary-color);
> .menu-icon {
i {
color: var(--primary-color);
}
}
}
2023-02-28 08:29:30 +00:00
}
> div {
2023-09-16 12:01:29 +00:00
ol {
2023-02-28 08:29:30 +00:00
margin: 0 0 0 1.5rem;
2023-09-16 12:01:29 +00:00
padding: .25rem 0;
list-style: none;
li {
a {
color: var(--surface-700);
border-left: 1px solid var(--surface-border);
transition: all .2s;
2023-10-10 11:59:58 +00:00
font-weight: 450;
2023-09-16 12:01:29 +00:00
display: flex;
padding: .5rem .5rem .5rem 1rem;
color: var(--surface-700);
transition: all .2s;
&:focus-visible {
outline: 0 none;
box-shadow: inset var(--focus-ring);
}
&:hover {
color: var(--surface-900);
border-left-color: var(--surface-500);
}
2023-02-28 08:29:30 +00:00
2023-09-16 12:01:29 +00:00
&.router-link-active {
color: var(--primary-color);
border-left-color: var(--primary-color);
}
2023-02-28 08:29:30 +00:00
}
2023-09-16 12:01:29 +00:00
ol {
margin: 0;
padding: 0;
}
2023-02-28 08:29:30 +00:00
2023-09-16 12:01:29 +00:00
&:has(.menu-child-category) {
margin-top: 1rem;
}
&:has(.menu-child-category):first-child {
margin-top: 0rem;
}
}
2023-02-28 08:29:30 +00:00
}
}
}
.menu-child-category {
display: flex;
2023-09-16 12:01:29 +00:00
padding: .5rem .5rem .5rem 0;
2023-02-28 08:29:30 +00:00
font-size: .875rem;
2023-09-16 12:01:29 +00:00
font-weight: 600;
2023-02-28 08:29:30 +00:00
letter-spacing: 1px;
color: var(--surface-900);
margin-bottom: .25rem;
}
}
}