graphicek/client/src/assets/components/_user-layout.scss

125 lines
1.8 KiB
SCSS
Raw Normal View History

2022-08-30 13:26:00 +02:00
main.layout {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
}
.menu {
position: fixed;
left: 0;
top: 0;
bottom: 0;
color: var(--box-fg-color);
width: 15rem;
transition: left 0.1s;
z-index: 2;
display: flex;
.inner {
background-color: var(--box-bg-color);
flex: 1;
2022-09-03 22:11:45 +02:00
border-right: 1px solid var(--box-border-color);
2022-08-30 13:26:00 +02:00
}
.shadow {
width: 8px;
background: var(--menu-shadow);
flex-shrink: 0;
flex-grow: 0;
}
.menu-close {
font-size: 150%;
cursor: pointer;
display: flex;
align-items: center;
}
.menu-header {
display: flex;
align-items: center;
margin-bottom: 1rem;
2022-09-03 22:11:45 +02:00
padding: 1rem 1rem;
border-bottom: 1px solid var(--box-border-color);
2022-08-30 13:26:00 +02:00
h2 {
font-size: 125%;
padding: 0;
margin: 0;
margin-left: 1rem;
font-weight: normal;
}
}
nav {
2022-09-03 22:11:45 +02:00
padding: 0em 1rem;
2022-08-30 13:26:00 +02:00
display: flex;
flex-direction: column;
a {
text-decoration: none;
}
}
}
.menu-overlay {
background-color: var(--modal-overlay-bg-color);
z-index: 1;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
header.header {
flex-grow: 0;
flex-shrink: 0;
2022-08-30 13:41:05 +02:00
border-bottom: 1px solid var(--box-border-color);
2022-08-30 13:26:00 +02:00
> .inner {
display: flex;
2022-09-04 11:11:07 +02:00
padding: 0.5rem 0.5rem 0.5rem 0;
2022-08-30 13:26:00 +02:00
background-color: var(--header-bg-color);
> .menu-button {
display: flex;
align-items: center;
font-size: 125%;
cursor: pointer;
2022-09-04 11:11:07 +02:00
padding: 0 0.75rem;
2022-08-30 13:26:00 +02:00
}
}
> .shadow {
position: absolute;
background: var(--header-shadow);
width: 100%;
height: 8px;
z-index: 1;
}
}
section.content {
flex: 1;
overflow: auto;
display: flex;
flex-direction: column;
}
2024-03-28 15:58:28 +01:00
@media only screen and (max-width: 800px) {
header.header {
> .inner > .menu-button {
font-size: 175%;
}
.dashboard-head {
> button,
.filter-button {
font-size: 150%;
}
}
}
}