2023-12-02 11:25:12 +00:00
|
|
|
:root {
|
|
|
|
--surface1: lch(90 0 0);
|
|
|
|
--surface2: lch(100 0 0);
|
|
|
|
--surface3: lch(98 0 0);
|
|
|
|
--surface4: lch(85 0 0);
|
|
|
|
|
|
|
|
--text1: lch(20 0 0);
|
|
|
|
--text2: lch(40 0 0);
|
|
|
|
|
|
|
|
--thumb-highlight-color: lch(0 0 0 / 20%);
|
|
|
|
|
|
|
|
--space-xxs: .25rem;
|
|
|
|
--space-sm: 1rem;
|
|
|
|
--space-md: 0.5rem;
|
2023-12-03 08:58:54 +00:00
|
|
|
--dashboard-value-offset: 5rem;
|
2023-12-02 11:25:12 +00:00
|
|
|
--space-xl: 3rem;
|
2023-12-03 08:58:54 +00:00
|
|
|
--space-xxl: 4rem;
|
2023-12-02 11:25:12 +00:00
|
|
|
|
|
|
|
--dashboard-section-width: 45ch;
|
|
|
|
|
|
|
|
--isLTR: 1;
|
|
|
|
--isRTL: -1;
|
|
|
|
|
|
|
|
&:dir(rtl) {
|
|
|
|
--isLTR: -1;
|
|
|
|
--isRTL: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
|
& {
|
|
|
|
--surface1: lch(10 0 0);
|
|
|
|
--surface2: lch(15 0 0);
|
|
|
|
--surface3: lch(20 0 0);
|
|
|
|
--surface4: lch(25 0 0);
|
|
|
|
|
|
|
|
--text1: lch(95 0 0);
|
|
|
|
--text2: lch(75 0 0);
|
|
|
|
|
|
|
|
--thumb-highlight-color: lch(100 0 0 / 20%);
|
|
|
|
}
|
|
|
|
} */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-01 15:49:39 +00:00
|
|
|
body {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
padding: 0rem;
|
|
|
|
/* SIDEBAR WIDTH */
|
|
|
|
margin-left: 10rem;
|
2023-12-03 11:35:34 +00:00
|
|
|
height: 100dvh;
|
2023-12-01 15:49:39 +00:00
|
|
|
transition: margin-left 500ms ease;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-sidebar-rail {
|
|
|
|
margin-left: 4rem;
|
|
|
|
transition: margin-left 500ms ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
display: none;
|
2023-12-03 11:35:34 +00:00
|
|
|
height: 100dvh;
|
2023-12-01 15:49:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-content-active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav {
|
|
|
|
position: fixed;
|
|
|
|
/* SIDEBAR WIDTH */
|
|
|
|
width: 10rem;
|
|
|
|
left: 0;
|
|
|
|
background-color: white;
|
2023-12-03 11:35:34 +00:00
|
|
|
height: 100dvh;
|
2023-12-01 15:49:39 +00:00
|
|
|
transition: width 500ms ease;
|
|
|
|
overflow: overlay;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-rail {
|
|
|
|
width: 4rem;
|
|
|
|
transition: width 500ms ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-nav {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-12-03 11:35:34 +00:00
|
|
|
height: 100dvh;
|
2023-12-01 15:49:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-item {
|
|
|
|
width: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-item-active {
|
|
|
|
width: 100%;
|
|
|
|
background-color: #eee;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-link {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
height: 4rem;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link-text {
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin: 0 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-item-filler {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.terminal {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-12-02 11:25:12 +00:00
|
|
|
/* Dashboard Settings */
|
|
|
|
.dashboard-section {
|
|
|
|
display: grid;
|
|
|
|
gap: var(--space-md);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard-section-header {
|
|
|
|
display: grid;
|
|
|
|
gap: var(--space-xxs);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard-view {
|
2023-12-03 11:35:34 +00:00
|
|
|
max-width: 89dvw;
|
2023-12-03 08:58:54 +00:00
|
|
|
padding-left: 1rem;
|
|
|
|
padding-right: 1rem;
|
2023-12-02 11:25:12 +00:00
|
|
|
display: grid;
|
|
|
|
gap: var(--space-xl) var(--space-xxl);
|
|
|
|
--repeat: auto-fit;
|
|
|
|
grid-template-columns:
|
|
|
|
repeat(var(--repeat), minmax(min(10ch, 100%), var(--dashboard-section-width)));
|
|
|
|
align-items: flex-start;
|
2023-12-03 08:58:54 +00:00
|
|
|
justify-content: center;
|
2023-12-02 11:25:12 +00:00
|
|
|
|
|
|
|
@media (orientation: landscape) and (width >=640px) {
|
|
|
|
& {
|
|
|
|
--repeat: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard-item {
|
|
|
|
background: var(--surface3);
|
|
|
|
transition: background .2s ease;
|
|
|
|
|
|
|
|
display: grid;
|
2023-12-03 08:58:54 +00:00
|
|
|
grid-template-columns: var(--dashboard-value-offset) 1fr;
|
2023-12-02 11:25:12 +00:00
|
|
|
gap: var(--space-md);
|
|
|
|
|
|
|
|
padding-block: var(--space-sm);
|
|
|
|
padding-inline: var(--space-md);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard-section {
|
|
|
|
border: 1px solid var(--surface4);
|
|
|
|
background: var(--surface4);
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
display: grid;
|
|
|
|
gap: 1px;
|
|
|
|
border-radius: var(--space-sm);
|
|
|
|
overflow: hidden;
|
|
|
|
transition: box-shadow 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2023-12-03 08:58:54 +00:00
|
|
|
.dashboard-section-title {
|
|
|
|
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
|
|
|
padding: 0.5rem;
|
|
|
|
margin: 0;
|
|
|
|
}
|