primevue-mirror/assets/styles/app/_menu.scss

127 lines
3.1 KiB
SCSS
Raw Normal View History

2020-05-12 08:31:09 +00:00
.layout-sidebar {
position: fixed;
left: 0;
2021-03-02 11:09:38 +00:00
top: 0;
height: 100%;
background-color: var(--surface-overlay);
2020-05-12 08:31:09 +00:00
width: 250px;
2020-05-13 13:59:23 +00:00
user-select: none;
2020-07-04 13:23:25 +00:00
transition: transform .4s cubic-bezier(.05,.74,.2,.99);
2021-02-18 08:26:44 +00:00
display: flex;
flex-direction: column;
2020-05-12 08:31:09 +00:00
2021-03-02 11:09:38 +00:00
.logo {
min-height: 70px;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
&:focus {
outline: 0 none;
transition: box-shadow .2s;
box-shadow: 0 0 0 0.2rem $focusBorderColor;
}
}
2020-05-12 08:31:09 +00:00
.layout-menu {
2022-02-23 11:42:11 +00:00
padding: 0 2rem;
2021-02-18 08:26:44 +00:00
overflow-y: auto;
flex-grow: 1;
2020-06-17 19:21:22 +00:00
.menu-category {
2022-02-23 11:42:11 +00:00
display: flex;
align-items: center;
color: var(--surface-900);
2021-12-07 08:13:57 +00:00
font-weight: 700;
2020-05-12 08:31:09 +00:00
user-select: none;
2022-03-01 12:28:56 +00:00
padding: .5rem .25rem;
2020-06-17 19:21:22 +00:00
font-size: 0.857rem;
text-transform: uppercase;
2020-05-12 08:31:09 +00:00
2022-02-23 11:42:11 +00:00
.layout-menu-badge {
padding: .14rem .5rem;
font-size: .7rem;
line-height: 1.4;
2020-05-12 08:31:09 +00:00
}
}
2020-06-17 19:21:22 +00:00
.menu-items {
padding: 0 0 1rem 0;
2020-05-12 08:31:09 +00:00
display: flex;
flex-direction: column;
a {
2020-05-12 11:45:38 +00:00
color: var(--text-color);
display: flex;
align-items: center;
2022-02-23 11:42:11 +00:00
padding: .5rem .75rem;
border-radius: 10px;
2020-05-14 07:27:08 +00:00
cursor: pointer;
2022-02-23 11:42:11 +00:00
.layout-menu-badge {
padding: .14rem .5rem;
font-size: .7rem;
line-height: 1.4;
}
2020-05-12 08:31:09 +00:00
&:hover {
background-color: var(--surface-hover);
2020-05-12 08:31:09 +00:00
}
&:focus {
z-index: 1;
outline: 0 none;
transition: box-shadow .2s;
2022-02-23 11:42:11 +00:00
box-shadow: var(--focus-ring);
2020-05-12 08:31:09 +00:00
}
2020-05-13 14:26:30 +00:00
&.router-link-exact-active {
2020-05-12 08:31:09 +00:00
font-weight: 700;
2022-02-23 11:42:11 +00:00
color: var(--primary-color);
2020-05-12 08:31:09 +00:00
}
2020-11-24 09:24:39 +00:00
.p-tag {
padding-top:.125rem;
padding-bottom: .125rem;
margin-left: .5rem;
2020-11-24 09:24:39 +00:00
}
2020-05-12 08:31:09 +00:00
}
2020-05-13 07:58:42 +00:00
2020-05-15 15:43:15 +00:00
div {
2020-05-13 14:26:30 +00:00
&.router-link-exact-active {
2020-05-13 07:58:42 +00:00
> a {
font-weight: 700;
2020-07-04 07:31:47 +00:00
}
2020-05-13 07:58:42 +00:00
ul {
display: block;
}
}
ul {
padding: .5rem 0;
margin: 0;
list-style-type: none;
a {
2020-05-13 14:26:30 +00:00
font-size: .875rem;
padding: .475rem .5rem .475rem 2rem;
2020-05-13 07:58:42 +00:00
}
}
}
2020-05-12 08:31:09 +00:00
}
2021-07-27 08:59:25 +00:00
.menu-image {
padding: 0 0 1rem 0;
2021-08-05 13:03:27 +00:00
img {
width: 100%;
}
2021-07-27 08:59:25 +00:00
}
2020-05-12 08:31:09 +00:00
}
2021-02-18 08:26:44 +00:00
.layout-sidebar-filter {
2022-02-23 11:42:11 +00:00
padding: 1rem 2rem 2rem;
2021-02-18 08:26:44 +00:00
}
2020-05-12 08:31:09 +00:00
}