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

148 lines
2.2 KiB
SCSS
Raw Normal View History

2022-08-30 13:26:00 +02:00
main.layout {
height: 100%;
display: flex;
> .right-content {
overflow: auto;
display: flex;
flex-direction: column;
height: 100%;
flex: 1;
}
2022-08-30 13:26:00 +02:00
}
.menu {
&.as-popup {
position: fixed;
left: 0;
top: 0;
bottom: 0;
z-index: 10;
}
2022-08-30 13:26:00 +02:00
color: var(--box-fg-color);
width: 15rem;
transition: left 0.1s, margin-left 0.1s;
2022-08-30 13:26:00 +02:00
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 {
2024-03-29 21:42:09 +01:00
padding: 0em 0rem;
2022-08-30 13:26:00 +02:00
display: flex;
flex-direction: column;
2024-03-29 21:42:09 +01:00
font-size: 115%;
2022-08-30 13:26:00 +02:00
a {
text-decoration: none;
2024-03-29 21:42:09 +01:00
padding: 0.4rem 1rem;
display: flex;
color: var(--box-fg-color);
&.current {
background-color: var(--box-border-color);
}
2024-03-29 21:42:09 +01:00
&:hover {
background-color: var(--box-border-color);
}
2022-08-30 13:26:00 +02:00
}
}
}
.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;
height: 2.2rem;
2022-08-30 13:26:00 +02:00
background-color: var(--header-bg-color);
align-items: center;
2022-08-30 13:26:00 +02:00
> .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%;
}
}
}
}