start huge dashboard rework; improve dark theme
This commit is contained in:
parent
14feb47640
commit
f324c249f6
21 changed files with 365 additions and 235 deletions
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
:root {
|
||||
--bg-0: #101010;
|
||||
--bg-1: #141414;
|
||||
--bg-2: #181818;
|
||||
--bg-3: #202020;
|
||||
--bg-1: #181818;
|
||||
--bg-2: #282828;
|
||||
--bg-3: #404040;
|
||||
|
||||
--fg-0: #b0b0b0;
|
||||
--fg-1: #c0c0c0;
|
||||
|
|
@ -67,77 +67,111 @@
|
|||
}
|
||||
|
||||
body {
|
||||
width: 100%;
|
||||
width: calc(100% - 180px);
|
||||
height: calc(100vh - 1em);
|
||||
|
||||
margin: 0;
|
||||
margin: 0 0 0 180px;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
font-family: "Inter", sans-serif;
|
||||
font-size: 16px;
|
||||
|
||||
color: var(--fg-0);
|
||||
background: var(--bg-0);
|
||||
|
||||
transition: background .1s ease-out, color .1s ease-out;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: var(--fg-3);
|
||||
}
|
||||
|
||||
nav {
|
||||
width: min(720px, calc(100% - 2em));
|
||||
height: 2em;
|
||||
margin: 1em auto;
|
||||
header {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-direction: column;
|
||||
width: 180px;
|
||||
background-color: var(--bg-1);
|
||||
box-shadow: var(--shadow-md);
|
||||
|
||||
transition: background .1s ease-out, color .1s ease-out;
|
||||
}
|
||||
nav {
|
||||
height: 100%;
|
||||
margin: 1em 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: left;
|
||||
gap: .5em;
|
||||
user-select: none;
|
||||
}
|
||||
nav .icon {
|
||||
height: 100%;
|
||||
border-radius: 100%;
|
||||
box-shadow: var(--shadow-sm);
|
||||
overflow: hidden;
|
||||
}
|
||||
nav .icon img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.nav-item {
|
||||
width: auto;
|
||||
height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
padding: 0;
|
||||
margin: 0 auto 1em auto;
|
||||
display: flex;
|
||||
|
||||
color: var(--fg-2);
|
||||
background: var(--bg-2);
|
||||
border-radius: 10em;
|
||||
border-radius: 100%;
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
overflow: clip;
|
||||
}
|
||||
nav .icon img {
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
}
|
||||
.nav-item {
|
||||
display: flex;
|
||||
color: var(--fg-2);
|
||||
line-height: 2em;
|
||||
font-weight: 500;
|
||||
transition: color .1s, background-color .1s;
|
||||
}
|
||||
.nav-item:hover {
|
||||
background: var(--bg-1);
|
||||
background: var(--bg-2);
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-item.active {
|
||||
border-left: 4px solid var(--fg-2);
|
||||
}
|
||||
.nav-item.active a {
|
||||
padding-left: calc(1em - 4px);
|
||||
}
|
||||
nav a {
|
||||
padding: 0 1em;
|
||||
padding: .2em 1em;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
width: 100%;
|
||||
}
|
||||
nav a.icon {
|
||||
padding: 0;
|
||||
nav a.active {
|
||||
border-left: 5px solid var(--fg-0);
|
||||
padding-left: calc(1em - 5px);
|
||||
}
|
||||
nav #logout {
|
||||
/* margin-left: auto; */
|
||||
nav hr {
|
||||
width: calc(100% - 2em);
|
||||
margin: .5em auto;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--fg-0);
|
||||
}
|
||||
nav .section-label {
|
||||
margin: 8px 0 2px 15px;
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
main {
|
||||
width: min(720px, calc(100% - 2em));
|
||||
width: min(calc(100% - 16px), 720px);
|
||||
height: fit-content;
|
||||
min-height: calc(100vh - 2em);
|
||||
margin: 0 auto;
|
||||
padding: 1em;
|
||||
}
|
||||
main.dashboard {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
|
|
@ -163,7 +197,24 @@ code {
|
|||
|
||||
|
||||
|
||||
.cards {
|
||||
width: 100%;
|
||||
height: fit-content;
|
||||
display: flex;
|
||||
gap: 2em;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.card {
|
||||
flex-basis: 40em;
|
||||
padding: 1em;
|
||||
background: var(--bg-1);
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow-lg);
|
||||
|
||||
transition: background .1s ease-out, color .1s ease-out;
|
||||
}
|
||||
main:not(.dashboard) .card {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +222,7 @@ code {
|
|||
margin: 0 0 .5em 0;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
.card-header {
|
||||
margin-bottom: 1em;
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
|
|
@ -179,17 +230,31 @@ code {
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-title h1,
|
||||
.card-title h2,
|
||||
.card-title h3 {
|
||||
.card-header h1,
|
||||
.card-header h2,
|
||||
.card-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
.card-header a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.card-header small {
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
transform: translateY(-2px);
|
||||
color: var(--fg-0);
|
||||
}
|
||||
|
||||
.flex-fill {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.artists-group {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 1em;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 520px) {
|
||||
body {
|
||||
font-size: 12px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue