- Migrated all Pages from Material-UI to HTML+CSS (GroupsOverviewPage, ManagementPortalPage, ModerationGroupImagesPage, ModerationGroupsPage, PublicGroupImagesPage, SlideshowPage, MultiUploadPage) - Added comprehensive typography system in App.css (h1-h3, p, utility classes) - Added global Material-UI font overrides for Open Sans - Removed redundant fontFamily: 'roboto' from all components - Fixed button alignment in ImageGalleryCard (margin-top: auto) - Removed emojis from titles for cleaner UI - Standardized button padding (12px 30px) across application - Improved code consistency and maintainability with centralized CSS approach
323 lines
10 KiB
CSS
323 lines
10 KiB
CSS
/* Main shared styles for cards, buttons, modals used across pages */
|
|
|
|
/* ============================================
|
|
TYPOGRAPHY - Zentrale Schrift-Definitionen
|
|
============================================ */
|
|
body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
color: #333333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
h1, .h1 {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 28px;
|
|
color: #333333;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
h2, .h2 {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 24px;
|
|
color: #333333;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
h3, .h3 {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 20px;
|
|
color: #333333;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
p, .text-body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
color: #666666;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.text-subtitle {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 300;
|
|
font-size: 16px;
|
|
color: #666666;
|
|
}
|
|
|
|
.text-small {
|
|
font-size: 14px;
|
|
color: #666666;
|
|
}
|
|
|
|
.text-center { text-align: center; }
|
|
.text-left { text-align: left; }
|
|
.text-right { text-align: right; }
|
|
|
|
/* ============================================
|
|
LAYOUT & CONTAINERS
|
|
============================================ */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* ============================================
|
|
PAGE HEADERS
|
|
============================================ */
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.page-title {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 500;
|
|
font-size: 28px;
|
|
color: #333333;
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-weight: 300;
|
|
font-size: 16px;
|
|
color: #666666;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* ============================================
|
|
UTILITY CLASSES
|
|
============================================ */
|
|
.flex-center {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.text-center-block {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
}
|
|
|
|
/* Spacing utilities */
|
|
.mt-1 { margin-top: 8px; }
|
|
.mt-2 { margin-top: 16px; }
|
|
.mt-3 { margin-top: 24px; }
|
|
.mt-4 { margin-top: 32px; }
|
|
.mb-1 { margin-bottom: 8px; }
|
|
.mb-2 { margin-bottom: 16px; }
|
|
.mb-3 { margin-bottom: 24px; }
|
|
.mb-4 { margin-bottom: 32px; }
|
|
.p-2 { padding: 16px; }
|
|
.p-3 { padding: 24px; }
|
|
|
|
/* ============================================
|
|
SUCCESS BOX (Upload Success)
|
|
============================================ */
|
|
.success-box {
|
|
margin-top: 32px;
|
|
padding: 24px;
|
|
border-radius: 12px;
|
|
background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
|
|
color: white;
|
|
box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
|
|
animation: slideIn 0.5s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.success-box h2 {
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
margin-bottom: 8px;
|
|
color: white;
|
|
}
|
|
|
|
.success-box p {
|
|
font-size: 18px;
|
|
margin-bottom: 16px;
|
|
color: white;
|
|
}
|
|
|
|
.info-box {
|
|
background: rgba(255,255,255,0.2);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.info-box-highlight {
|
|
background: rgba(255,255,255,0.95);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
border: 2px solid rgba(255,255,255,0.3);
|
|
}
|
|
|
|
/* ============================================
|
|
EXISTING STYLES BELOW
|
|
============================================ */
|
|
|
|
/* Page-specific styles for GroupsOverviewPage */
|
|
.groups-overview-container { padding-top: 20px; padding-bottom: 40px; min-height: 80vh; }
|
|
.header-card { border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-bottom: 30px; text-align: center; padding: 20px; }
|
|
.header-title { font-family: 'Open Sans', sans-serif; font-weight: 500; font-size: 28px; color: #333333; margin-bottom: 10px; }
|
|
.header-subtitle { font-family: 'Open Sans', sans-serif; font-size: 16px; color: #666666; margin-bottom: 20px; }
|
|
@media (max-width:800px) { .nav__links, .cta { display:none; } }
|
|
|
|
/* Page-specific styles for ModerationPage */
|
|
.moderation-page { font-family: 'Open Sans', sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; }
|
|
h1 { font-family: 'Open Sans', sans-serif; text-align:left; color:#333; margin-bottom:30px; }
|
|
p { font-family: 'Open Sans', sans-serif; color:#555; line-height:1.6; }
|
|
.moderation-content h1 { font-family: 'Open Sans', sans-serif; text-align:left; color:#333; margin-bottom:30px; }
|
|
.moderation-loading, .moderation-error { text-align:center; padding:50px; font-size:18px; }
|
|
.moderation-error { color:#dc3545; }
|
|
|
|
.moderation-stats { display:flex; justify-content:center; gap:40px; margin-bottom:40px; padding:20px; background:#f8f9fa; border-radius:12px; }
|
|
.stat-item { text-align:center; }
|
|
.stat-number { display:block; font-size:2.5rem; font-weight:bold; color:#007bff; }
|
|
.stat-label { display:block; font-size:0.9rem; color:#6c757d; margin-top:5px; }
|
|
|
|
|
|
|
|
.moderation-section { margin-bottom:50px; }
|
|
.moderation-section h2 { color:#333; border-bottom:2px solid #e9ecef; padding-bottom:10px; margin-bottom:25px; }
|
|
.no-groups { text-align:center; color:#6c757d; font-style:italic; padding:30px; }
|
|
|
|
|
|
/* Background */
|
|
.allContainer {
|
|
/*background: url(../../../Images/background.svg) no-repeat center center fixed;
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;*/
|
|
background-size: cover;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.allContainerNoBackground {
|
|
background-size: cover;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: whitesmoke;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn { padding:12px 30px; border:none; border-radius:6px; cursor:pointer; font-size:16px; transition:background-color 0.2s; min-width:80px; }
|
|
.btn-secondary { background:#6c757d; color:white; }
|
|
.btn-secondary:hover { background:#5a6268; }
|
|
.btn-outline-secondary { background:transparent; border:1px solid #6c757d; color:#6c757d; }
|
|
.btn-outline-secondary:hover:not(:disabled) { background:#6c757d; color:white; }
|
|
.btn-success { background:#28a745; color:white; }
|
|
.btn-success:hover { background:#218838; }
|
|
.btn-warning { background:#ffc107; color:#212529; }
|
|
.btn-warning:hover { background:#e0a800; }
|
|
.btn-danger { background:#dc3545; color:white; }
|
|
.btn-danger:hover { background:#c82333; }
|
|
.btn:disabled { opacity:0.65; cursor:not-allowed; }
|
|
|
|
/* Modal */
|
|
.image-modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.8); display:flex; align-items:center; justify-content:center; z-index:1000; padding:20px; }
|
|
.image-modal { background:white; border-radius:12px; max-width:90vw; max-height:90vh; overflow:hidden; display:flex; flex-direction:column; }
|
|
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:20px; border-bottom:1px solid #e9ecef; background:#f8f9fa; }
|
|
.modal-header h2 { margin:0; color:#333; }
|
|
.close-btn { background:none; border:none; font-size:2rem; cursor:pointer; color:#6c757d; padding:0; width:40px; height:40px; display:flex; align-items:center; justify-content:center; }
|
|
.close-btn:hover { color:#333; }
|
|
.modal-body { padding:20px; overflow-y:auto; }
|
|
.group-details { background:#f8f9fa; padding:15px; border-radius:8px; margin-bottom:20px; }
|
|
.group-details p { margin:5px 0; }
|
|
.images-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:15px; }
|
|
.image-item { background:#f8f9fa; border-radius:8px; overflow:hidden; position:relative; }
|
|
.modal-image { width:100%; height:150px; object-fit:cover; display:block; }
|
|
.image-actions { padding:10px; display:flex; justify-content:space-between; align-items:center; background:white; }
|
|
.image-name { font-size:0.8rem; color:#6c757d; flex:1; margin-right:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
|
|
@media (max-width:768px) {
|
|
.moderation-stats { flex-direction:column; gap:20px; }
|
|
.btn { width:100%; }
|
|
.image-modal { max-width:95vw; max-height:95vh; }
|
|
.images-grid { grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); }
|
|
}
|
|
|
|
|
|
/* Common CTA / page-level utilities (moved from page CSS) */
|
|
.view-button { border-radius: 20px; text-transform: none; font-size: 12px; padding: 6px 16px; background: linear-gradient(45deg, #4CAF50 30%, #45a049 90%); color: white; border: none; cursor: pointer; }
|
|
.view-button:hover { background: linear-gradient(45deg, #45a049 30%, #4CAF50 90%); }
|
|
.action-buttons { display:flex; gap:15px; justify-content:center; flex-wrap: wrap; margin-top:20px; }
|
|
.primary-button { border-radius: 25px; padding: 12px 30px; font-size:16px; font-weight:500; text-transform:none; background: linear-gradient(45deg, #2196F3 30%, #1976D2 90%); color:white; border:none; cursor:pointer; }
|
|
.home-button { border-radius:25px; padding:12px 30px; font-size:16px; font-weight:500; text-transform:none; border:2px solid #4CAF50; color:#4CAF50; background-color: transparent; cursor:pointer; }
|
|
.empty-state { text-align:center; padding:60px 20px; }
|
|
.loading-container { text-align:center; padding:60px 20px; }
|
|
|
|
/* Admin Auth */
|
|
.admin-auth-wrapper { min-height: 70vh; display:flex; align-items:center; justify-content:center; padding:40px 16px; }
|
|
.admin-auth-card { width:100%; max-width:420px; box-shadow:0 8px 24px rgba(0,0,0,0.08); }
|
|
.admin-auth-form { width:100%; }
|
|
.admin-auth-error { max-width:420px; background:#fff3f3; border:1px solid #ffcdd2; padding:24px; border-radius:12px; text-align:center; color:#b71c1c; }
|
|
|
|
/* ============================================
|
|
MATERIAL-UI OVERRIDES - Globale Schriftart
|
|
============================================ */
|
|
/* TextField, Input, Textarea */
|
|
.MuiTextField-root input,
|
|
.MuiTextField-root textarea,
|
|
.MuiInputBase-root,
|
|
.MuiInputBase-input,
|
|
.MuiOutlinedInput-input {
|
|
font-family: 'Open Sans', sans-serif !important;
|
|
}
|
|
|
|
/* Labels */
|
|
.MuiFormLabel-root,
|
|
.MuiInputLabel-root,
|
|
.MuiTypography-root {
|
|
font-family: 'Open Sans', sans-serif !important;
|
|
}
|
|
|
|
/* Buttons */
|
|
.MuiButton-root {
|
|
font-family: 'Open Sans', sans-serif !important;
|
|
}
|
|
|
|
/* Checkbox Labels */
|
|
.MuiFormControlLabel-label {
|
|
font-family: 'Open Sans', sans-serif !important;
|
|
}
|