arimelody-web/admin/static/admin.css

361 lines
6.4 KiB
CSS
Raw Normal View History

@import url("/style/prideflag.css");
@import url("/font/inter/inter.css");
2025-10-19 05:01:55 +01:00
:root {
--bg-0: #101010;
--bg-1: #181818;
--bg-2: #282828;
--bg-3: #404040;
2025-10-19 05:01:55 +01:00
--fg-0: #b0b0b0;
--fg-1: #c0c0c0;
--fg-2: #d0d0d0;
--fg-3: #e0e0e0;
--col-shadow-0: #0002;
--col-shadow-1: #0004;
--col-shadow-2: #0006;
--col-highlight-0: #ffffff08;
--col-highlight-1: #fff1;
--col-highlight-2: #fff2;
--col-new: #b3ee5b;
--col-on-new: #1b2013;
--col-save: #6fd7ff;
--col-on-save: #283f48;
--col-delete: #ff7171;
--col-on-delete: #371919;
--col-warn: #ffe86a;
--col-on-warn: var(--bg-0);
--col-warn-hover: #ffec81;
--shadow-sm:
0 1px 2px var(--col-shadow-2),
inset 0 1px 1px var(--col-highlight-2);
--shadow-md:
0 2px 4px var(--col-shadow-1),
inset 0 2px 2px var(--col-highlight-1);
--shadow-lg:
0 4px 8px var(--col-shadow-0),
inset 0 4px 4px var(--col-highlight-0);
}
@media (prefers-color-scheme: light) {
:root {
--bg-0: #e8e8e8;
--bg-1: #f0f0f0;
--bg-2: #f8f8f8;
--bg-3: #ffffff;
--fg-0: #606060;
--fg-1: #404040;
--fg-2: #303030;
--fg-3: #202020;
--col-shadow-0: #0002;
--col-shadow-1: #0004;
--col-shadow-2: #0008;
--col-highlight-0: #fff2;
--col-highlight-1: #fff4;
--col-highlight-2: #fff8;
--col-warn: #ffe86a;
--col-on-warn: var(--fg-3);
--col-warn-hover: #ffec81;
}
}
body {
width: calc(100% - 180px);
height: calc(100vh - 1em);
margin: 0 0 0 180px;
padding: 0;
display: flex;
flex-direction: row;
font-family: "Inter", sans-serif;
font-size: 16px;
2025-10-19 05:01:55 +01:00
color: var(--fg-0);
background: var(--bg-0);
transition: background .1s ease-out, color .1s ease-out;
2025-10-19 05:01:55 +01:00
}
h1, h2, h3, h4, h5, h6 {
color: var(--fg-3);
}
header {
position: fixed;
left: 0;
height: 100vh;
display: flex;
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;
2025-10-19 05:01:55 +01:00
user-select: none;
}
nav .icon {
width: fit-content;
height: fit-content;
padding: 0;
margin: 0 auto 1em auto;
display: flex;
2025-10-19 05:01:55 +01:00
border-radius: 100%;
box-shadow: var(--shadow-sm);
overflow: clip;
}
2025-10-19 05:01:55 +01:00
nav .icon img {
width: 3em;
height: 3em;
}
.nav-item {
display: flex;
2025-10-19 05:01:55 +01:00
color: var(--fg-2);
line-height: 2em;
2025-10-19 05:01:55 +01:00
font-weight: 500;
transition: color .1s, background-color .1s;
}
.nav-item:hover {
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: .2em 1em;
text-decoration: none;
color: inherit;
width: 100%;
}
nav a.active {
border-left: 5px solid var(--fg-0);
padding-left: calc(1em - 5px);
}
nav hr {
width: calc(100% - 2em);
margin: .5em auto;
border: none;
border-bottom: 1px solid var(--fg-0);
2025-10-20 08:31:36 +01:00
}
nav .section-label {
margin: 8px 0 2px 15px;
font-size: 10px;
text-transform: uppercase;
font-weight: 600;
}
main {
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;
text-decoration: none;
}
2025-10-19 05:01:55 +01:00
/*
a:hover {
text-decoration: underline;
}
2025-10-19 05:01:55 +01:00
*/
2024-08-31 19:29:57 +01:00
a img.icon {
height: .8em;
}
code {
background: #303030;
color: #f0f0f0;
padding: .23em .3em;
border-radius: 4px;
}
.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;
}
.card h2 {
margin: 0 0 .5em 0;
}
.card-header {
margin-bottom: 1em;
display: flex;
gap: 1em;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.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;
}
}
#message,
#error {
margin: 0 0 1em 0;
padding: 1em;
2025-10-19 05:01:55 +01:00
border-radius: 8px;
background: #ffffff;
}
#message {
background: #a9dfff;
}
#error {
background: #ffa9b8;
}
a.delete:not(.button) {
color: #d22828;
}
2025-10-19 05:01:55 +01:00
.button, button {
padding: .5em .8em;
font-family: inherit;
font-size: inherit;
2025-10-19 05:01:55 +01:00
color: inherit;
2025-10-19 05:01:55 +01:00
background: var(--bg-2);
border: none;
border-radius: 10em;
box-shadow: var(--shadow-sm);
font-weight: 500;
transition: background .1s ease-out, color .1s ease-out;
cursor: pointer;
user-select: none;
}
button:hover, .button:hover {
background: #fff;
}
button:active, .button:active {
background: #d0d0d0;
}
.button.new, button.new {
2025-10-19 05:01:55 +01:00
color: var(--col-on-new);
background: var(--col-new);
}
.button.save, button.save {
2025-10-19 05:01:55 +01:00
color: var(--col-on-save);
background: var(--col-save);
}
.button.delete, button.delete {
2025-10-19 05:01:55 +01:00
color: var(--col-on-delete);
background: var(--col-delete);
}
.button:hover, button:hover {
2025-10-19 05:01:55 +01:00
color: var(--bg-3);
background: var(--fg-3);
}
.button:active, button:active {
2025-10-19 05:01:55 +01:00
color: var(--bg-2);
background: var(--fg-0);
}
.button[disabled], button[disabled] {
2025-10-19 05:01:55 +01:00
color: var(--fg-0) !important;
background: var(--bg-3) !important;
opacity: .5;
2025-10-19 05:01:55 +01:00
cursor: default !important;
}
form {
width: 100%;
display: block;
}
form label {
width: 100%;
margin: 1rem 0 .5rem 0;
display: block;
color: #10101080;
}
form input {
margin: .5rem 0;
padding: .3rem .5rem;
display: block;
border-radius: 4px;
font-size: inherit;
font-family: inherit;
color: inherit;
}
input[disabled] {
opacity: .5;
cursor: not-allowed;
}