News-Ansicht aufgeräumt & vereinheitlicht
- CSS-Klassen und Benennungen überall einheitlich gemacht (news-card, login-success usw.) - Unnötige CSS-Regeln rausgeschmissen, Code jetzt viel schlanker - Cards sehen jetzt überall gleich aus, egal wie viel Text drinsteht - „Mehr lesen“-Link besser sichtbar gemacht - Bugfix: Langer News-Text läuft nicht mehr aus der Card raus - Generell: Viel code aufgeräumt, damit alles schicker und übersichtlicher ist!
This commit is contained in:
104
CSS/style.css
104
CSS/style.css
@@ -11,16 +11,6 @@ body {
|
||||
max-width: 100vw;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
#wrapper {
|
||||
flex: 1 0 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
margin-bottom: 20px;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
@@ -111,12 +101,6 @@ a {
|
||||
grid-column-end: 6;
|
||||
}
|
||||
|
||||
.container-rest {
|
||||
grid-column-start: 1;
|
||||
grid-column-end: 6;
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
.link-impressum {
|
||||
padding-left: 30px;
|
||||
|
||||
@@ -216,10 +200,6 @@ a {
|
||||
max-width: 100vw;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
#wrapper {
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
}
|
||||
#navigation {
|
||||
width: 100vw;
|
||||
min-width: 0;
|
||||
@@ -313,13 +293,10 @@ a {
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
}
|
||||
.desktop-only {
|
||||
display: none !important;
|
||||
}
|
||||
.mobile-only {
|
||||
display: block !important;
|
||||
}
|
||||
.login-container {
|
||||
.form-container {
|
||||
position: static;
|
||||
width: 95vw;
|
||||
max-width: 400px;
|
||||
@@ -328,7 +305,7 @@ a {
|
||||
padding: 16px 8px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.event-container {
|
||||
.content-container {
|
||||
position: static;
|
||||
width: 95vw;
|
||||
max-width: 400px;
|
||||
@@ -337,23 +314,23 @@ a {
|
||||
padding: 16px 8px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.login-container h1 {
|
||||
.form-container h1 {
|
||||
font-size: 1.5em;
|
||||
text-align: center;
|
||||
}
|
||||
.event-container h1 {
|
||||
.content-container h1 {
|
||||
font-size: 1.5em;
|
||||
text-align: center;
|
||||
}
|
||||
.login-container form,
|
||||
.login-container label,
|
||||
.login-container input {
|
||||
.form-container form,
|
||||
.form-container label,
|
||||
.form-container input {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.login-container button,
|
||||
.login-container a {
|
||||
.form-container button,
|
||||
.form-container a {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
margin-top: 8px;
|
||||
@@ -406,8 +383,6 @@ a {
|
||||
margin: 0 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tabellen-Design */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
@@ -470,7 +445,7 @@ td a:hover {
|
||||
justify-content: flex-start;
|
||||
margin: 24px 0;
|
||||
}
|
||||
.news-card {
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
|
||||
@@ -482,37 +457,86 @@ td a:hover {
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin: 0;
|
||||
overflow-wrap: break-word;
|
||||
overflow: hidden;
|
||||
}
|
||||
.news-card h3 {
|
||||
.card h3 {
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 1.2em;
|
||||
color: #222;
|
||||
}
|
||||
.news-card .news-date {
|
||||
.card .news-date {
|
||||
font-size: 0.95em;
|
||||
color: #888;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.news-card .news-desc {
|
||||
.card .news-desc {
|
||||
font-size: 1em;
|
||||
color: #333;
|
||||
margin-bottom: 14px;
|
||||
white-space: pre-line;
|
||||
}
|
||||
.news-card .admin-btn {
|
||||
.card .admin-btn {
|
||||
align-self: flex-end;
|
||||
margin: 0 0 0 8px;
|
||||
padding: 6px 12px;
|
||||
font-size: 0.97em;
|
||||
}
|
||||
.card--wide {
|
||||
max-width: 700px;
|
||||
width: 90vw;
|
||||
display: flex;
|
||||
overflow-wrap: break-word;
|
||||
overflow: hidden;
|
||||
}
|
||||
.news-desc a {
|
||||
color: #007b9e;
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
margin-left: 4px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.news-desc a:hover {
|
||||
color: #09add0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.news-card-actions {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
.news-desc {
|
||||
min-height: 80px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.news-cards {
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.news-card {
|
||||
.card {
|
||||
max-width: 98vw;
|
||||
min-width: unset;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.status-box {
|
||||
background: #ffe0e0;
|
||||
color: #b30000;
|
||||
border: 1px solid #ffb3b3;
|
||||
border-radius: 6px;
|
||||
padding: 10px 16px;
|
||||
margin-bottom: 18px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.error-box {
|
||||
background: #ffe0e0;
|
||||
color: #b30000;
|
||||
border: 1px solid #ffb3b3;
|
||||
border-radius: 6px;
|
||||
padding: 10px 16px;
|
||||
margin-bottom: 18px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
Reference in New Issue
Block a user