mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
admin css: expand stylesheet with reusable component classes
This commit is contained in:
@@ -1,7 +1,59 @@
|
|||||||
|
/* Base Styles */
|
||||||
|
body {
|
||||||
|
max-width: 95vw;
|
||||||
|
margin: auto;
|
||||||
|
/* background-color: yellow; */
|
||||||
|
}
|
||||||
main {
|
main {
|
||||||
margin: 1.2rem 0;
|
max-width: 80vw;
|
||||||
|
margin: auto 1.2rem;
|
||||||
|
/* background-color: yellow; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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 {
|
.filters {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
@@ -22,6 +74,7 @@ main {
|
|||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tables */
|
||||||
.thesis-table {
|
.thesis-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
@@ -31,18 +84,12 @@ main {
|
|||||||
.thesis-table td {
|
.thesis-table td {
|
||||||
padding: 0.75rem;
|
padding: 0.75rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
/* border-bottom: 1px solid #ddd; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.thesis-table th {
|
.thesis-table th {
|
||||||
/* background: #f0f0f0; */
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thesis-table tr:hover {
|
|
||||||
/* background: #f9f9f9; */
|
|
||||||
}
|
|
||||||
|
|
||||||
.thesis-title {
|
.thesis-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -53,6 +100,7 @@ main {
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Status Badges */
|
||||||
.status-badge {
|
.status-badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
@@ -70,6 +118,7 @@ main {
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Buttons */
|
||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
@@ -112,6 +161,7 @@ main {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Statistics */
|
||||||
.stats {
|
.stats {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
@@ -129,14 +179,13 @@ main {
|
|||||||
.stat-number {
|
.stat-number {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
/* color: #4a90e2; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-label {
|
.stat-label {
|
||||||
/* color: #666; */
|
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bulk Actions */
|
||||||
.bulk-actions {
|
.bulk-actions {
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
@@ -177,3 +226,97 @@ main {
|
|||||||
.select-all-checkbox {
|
.select-all-checkbox {
|
||||||
cursor: pointer;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: white;
|
background-color: yellow;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user