arimelody.me/admin/static/admin.css

229 lines
3.4 KiB
CSS

@import url("/style/prideflag.css");
@import url("/font/inter/inter.css");
body {
width: 100%;
height: calc(100vh - 1em);
margin: 0;
padding: 0;
font-family: "Inter", sans-serif;
font-size: 16px;
color: #303030;
background: #f0f0f0;
}
nav {
width: min(720px, calc(100% - 2em));
height: 2em;
margin: 1em auto;
display: flex;
flex-direction: row;
justify-content: left;
background: #f8f8f8;
border-radius: 4px;
border: 1px solid #808080;
}
nav .icon {
height: 100%;
}
nav .title {
width: auto;
height: 100%;
margin: 0 1em 0 0;
display: flex;
line-height: 2em;
text-decoration: none;
color: inherit;
}
.nav-item {
width: auto;
height: 100%;
margin: 0px;
padding: 0 1em;
display: flex;
line-height: 2em;
}
.nav-item:hover {
background: #00000010;
text-decoration: none;
}
nav a {
text-decoration: none;
color: inherit;
}
nav #logout {
/* margin-left: auto; */
}
main {
width: min(720px, calc(100% - 2em));
margin: 0 auto;
padding: 1em;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a img.icon {
height: .8em;
}
code {
background: #303030;
color: #f0f0f0;
padding: .23em .3em;
border-radius: 4px;
}
.card {
margin-bottom: 1em;
}
.card h2 {
margin: 0 0 .5em 0;
}
.card-title {
margin-bottom: 1em;
display: flex;
gap: 1em;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.card-title h1,
.card-title h2,
.card-title h3 {
margin: 0;
}
.flex-fill {
flex-grow: 1;
}
@media screen and (max-width: 520px) {
body {
font-size: 12px;
}
}
#message,
#error {
margin: 0 0 1em 0;
padding: 1em;
border-radius: 4px;
background: #ffffff;
border: 1px solid #888;
}
#message {
background: #a9dfff;
border-color: #599fdc;
}
#error {
background: #ffa9b8;
border-color: #dc5959;
}
a.delete:not(.button) {
color: #d22828;
}
button, .button {
padding: .5em .8em;
font-family: inherit;
font-size: inherit;
border-radius: 4px;
border: 1px solid #a0a0a0;
background: #f0f0f0;
color: inherit;
}
button:hover, .button:hover {
background: #fff;
border-color: #d0d0d0;
}
button:active, .button:active {
background: #d0d0d0;
border-color: #808080;
}
.button, button {
color: inherit;
}
.button.new, button.new {
background: #c4ff6a;
border-color: #84b141;
}
.button.save, button.save {
background: #6fd7ff;
border-color: #6f9eb0;
}
.button.delete, button.delete {
background: #ff7171;
border-color: #7d3535;
}
.button:hover, button:hover {
background: #fff;
border-color: #d0d0d0;
}
.button:active, button:active {
background: #d0d0d0;
border-color: #808080;
}
.button[disabled], button[disabled] {
background: #d0d0d0 !important;
border-color: #808080 !important;
opacity: .5;
cursor: not-allowed !important;
}
form {
width: 100%;
display: block;
}
label {
width: 100%;
margin: 1rem 0 .5rem 0;
display: block;
color: #10101080;
}
input {
margin: .5rem 0;
padding: .3rem .5rem;
display: block;
border-radius: 4px;
border: 1px solid #808080;
font-size: inherit;
font-family: inherit;
color: inherit;
}
input[disabled] {
opacity: .5;
cursor: not-allowed;
}