mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
468 lines
7.1 KiB
CSS
468 lines
7.1 KiB
CSS
:root {
|
|
--background-body: #3c856bff;
|
|
--background: #161f27;
|
|
--background-alt: #1a242f;
|
|
--selection: #1c76c5;
|
|
--text-main: #dbdbdb;
|
|
--text-bright: #fff;
|
|
--text-muted: #a9b1ba;
|
|
--links: #41adff;
|
|
--focus: #0096bfab;
|
|
--border: ;
|
|
--code: #ffbe85;
|
|
--animation-duration: 0.1s;
|
|
--button-base: #0c151c;
|
|
--button-hover: #040a0f;
|
|
--scrollbar-thumb: var(--button-hover);
|
|
--scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(-30%));
|
|
--form-placeholder: #a9a9a9;
|
|
--form-text: #fff;
|
|
--variable: #d941e2;
|
|
--highlight: #efdb43;
|
|
--select-arrow: svg-load("./assets/select-arrow.svg", fill: #efefef);
|
|
}
|
|
|
|
/* @media (prefers-color-scheme: dark) { */
|
|
/* --background-body: #202b38; */
|
|
/* --background: #161f27; */
|
|
/* --background-alt: #1a242f; */
|
|
/* --selection: #1c76c5; */
|
|
/* --text-main: #dbdbdb; */
|
|
/* --text-bright: #fff; */
|
|
/* --text-muted: #a9b1ba; */
|
|
/* --links: #41adff; */
|
|
/* --focus: #0096bfab; */
|
|
/* --border: #526980; */
|
|
/* --code: #ffbe85; */
|
|
/* --animation-duration: 0.1s; */
|
|
/* --button-base: #0c151c; */
|
|
/* --button-hover: #040a0f; */
|
|
/* --scrollbar-thumb: var(--button-hover); */
|
|
/* --scrollbar-thumb-hover: color-mod(var(--scrollbar-thumb) lightness(-30%)); */
|
|
/* --form-placeholder: #a9a9a9; */
|
|
/* --form-text: #fff; */
|
|
/* --variable: #d941e2; */
|
|
/* --highlight: #efdb43; */
|
|
/* --select-arrow: svg-load("./assets/select-arrow.svg", fill: #efefef); */
|
|
/* } */
|
|
|
|
/* Base Styles */
|
|
body {
|
|
margin: auto;
|
|
padding: 0;
|
|
background-color: var(--background-body);
|
|
color: var(--text-main);
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
header, main, footer {
|
|
margin: auto 2ch;
|
|
}
|
|
|
|
header, footer {
|
|
text-align: center;
|
|
}
|
|
|
|
main {
|
|
padding: 2ch;
|
|
max-width: 80vw;
|
|
margin: auto 1.2rem;
|
|
max-width: 800px;
|
|
margin: 20px auto;
|
|
padding: 0 10px;
|
|
position: relative;
|
|
}
|
|
table {
|
|
table-layout: auto;
|
|
margin: auto;
|
|
width: 95vw;
|
|
margin-left: calc(50% - 45vw);
|
|
/* margin: auto; */
|
|
}
|
|
table {
|
|
width: max-content;
|
|
min-width: 95vw; /* optional fallback */
|
|
table-layout: auto;
|
|
}
|
|
|
|
/* https://stackoverflow.com/questions/3084261/alternate-table-row-color-using-css */
|
|
|
|
tr:nth-child(even) {
|
|
background-color: #204639;
|
|
}
|
|
|
|
tr:nth-child(odd) {
|
|
background-color: #2f6a55;
|
|
}
|
|
|
|
nav {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
fieldset {
|
|
border: 1px solid;
|
|
border-radius: 6px;
|
|
margin: 0;
|
|
margin-bottom: 12px;
|
|
padding: 1em;
|
|
}
|
|
|
|
legend {
|
|
font-size: 0.9em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
label {
|
|
vertical-align: middle;
|
|
margin-bottom: 1em;
|
|
display: inline-block;
|
|
}
|
|
|
|
button,
|
|
select,
|
|
input[type="submit"],
|
|
input[type="reset"],
|
|
input[type="button"],
|
|
input[type="checkbox"],
|
|
input[type="range"],
|
|
input[type="radio"] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
input,
|
|
select {
|
|
display: block;
|
|
}
|
|
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
color: var(--form-text);
|
|
background-color: var(--background);
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
margin-right: 6px;
|
|
margin-bottom: 6px;
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
outline: none;
|
|
}
|
|
|
|
button,
|
|
input[type="submit"],
|
|
input[type="reset"],
|
|
input[type="button"] {
|
|
background-color: var(--button-base);
|
|
padding-right: 30px;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
/* Alert Messages */
|
|
.error-message,
|
|
.alert-error {
|
|
background: #fee;
|
|
border: 2px solid #c00;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 4px;
|
|
color: #c00;
|
|
}
|
|
|
|
.success-message,
|
|
.alert-success {
|
|
background: #efe;
|
|
border: 2px solid #0a0;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 4px;
|
|
color: #0a0;
|
|
}
|
|
|
|
.info-message {
|
|
background: #f5f5f5;
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.info-message pre {
|
|
margin: 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Lists */
|
|
/* ul.no-style { */
|
|
/* list-style: none; */
|
|
/* } */
|
|
|
|
/* Filters */
|
|
.filters {
|
|
padding: 1rem;
|
|
margin-bottom: 2rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.filters form {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
align-items: end;
|
|
}
|
|
|
|
.filters fieldset {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: none;
|
|
min-width: 200px;
|
|
}
|
|
|
|
/* Tables */
|
|
.thesis-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.thesis-table th,
|
|
.thesis-table td {
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.thesis-table th {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.thesis-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.thesis-subtitle {
|
|
font-style: italic;
|
|
color: #666;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.status-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 3px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.status-pending {
|
|
background: #ffd700;
|
|
color: #000;
|
|
}
|
|
|
|
.status-published {
|
|
background: #90ee90;
|
|
color: #000;
|
|
}
|
|
|
|
/* Buttons */
|
|
.actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 3px;
|
|
text-decoration: none;
|
|
font-size: 0.9em;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-view {
|
|
background: #4a90e2;
|
|
color: white;
|
|
}
|
|
|
|
.btn-edit {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.btn-publish {
|
|
background: #27ae60;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-unpublish {
|
|
background: #95a5a6;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.publish-form {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Statistics */
|
|
.stats {
|
|
display: flex;
|
|
gap: 2rem;
|
|
margin-bottom: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.stat-card {
|
|
background: darkslateblue;
|
|
padding: 1rem;
|
|
border-radius: 4px;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Bulk Actions */
|
|
.bulk-actions {
|
|
background: #f5f5f5;
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.bulk-actions-buttons {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-bulk-publish {
|
|
background: #27ae60;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.btn-bulk-unpublish {
|
|
background: #95a5a6;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.select-checkbox {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.select-all-checkbox {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#bulk-actions {
|
|
display: none;
|
|
}
|
|
|
|
#bulk-form {
|
|
display: none;
|
|
}
|
|
|
|
/* Thesis Info (Thanks page) */
|
|
.thesis-info {
|
|
/* background: #f5f5f5; */
|
|
border: 1px white solid;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
margin: 2rem 0;
|
|
}
|
|
|
|
.thesis-info h2 {
|
|
margin-top: 0;
|
|
border-bottom: 2px solid #333;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.thesis-info h3 {
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
/* color: #555; */
|
|
}
|
|
|
|
.thesis-info dl {
|
|
display: grid;
|
|
grid-template-columns: 200px 1fr;
|
|
gap: 0.5rem 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.thesis-info dt {
|
|
font-weight: bold;
|
|
/* color: #666; */
|
|
}
|
|
|
|
.thesis-info dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.thesis-info table {
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.thesis-info table th {
|
|
text-align: left;
|
|
background: #ddd;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.thesis-info table td {
|
|
padding: 0.5rem;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.submitted-date {
|
|
margin-top: 2rem;
|
|
font-style: italic;
|
|
color: #666;
|
|
}
|
|
|
|
.error {
|
|
background: #fee;
|
|
border: 2px solid #c00;
|
|
padding: 1.5rem;
|
|
border-radius: 8px;
|
|
color: #c00;
|
|
}
|
|
|
|
/* Form Elements */
|
|
label.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.thesis-info dl {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.thesis-info dt {
|
|
margin-top: 1rem;
|
|
}
|
|
}
|