286 lines
5.5 KiB
CSS
286 lines
5.5 KiB
CSS
/* Container für den gesamten articleikel */
|
|
.article-view-container {
|
|
box-sizing: border-box;
|
|
max-width: 900px; /* Angenehme Lesebreite für längere Texte */
|
|
margin: 3rem auto;
|
|
padding: 0 2rem;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
color: #212529;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.article-view-container * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* --- KOPFDATEN-BEREICH --- */
|
|
.article-view-top-section {
|
|
margin-bottom: 2.5rem;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Kategorie-Badge */
|
|
.article-view-category {
|
|
display: inline-block;
|
|
background-color: #ebf8ff;
|
|
color: #2b6cb0;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 4px;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
/* Hauptüberschrift */
|
|
.article-view-title {
|
|
font-size: 2.5rem;
|
|
color: #1a202c;
|
|
line-height: 1.2;
|
|
margin: 0 0 0.75rem 0;
|
|
font-weight: 800;
|
|
}
|
|
|
|
/* Autoren-Zeile */
|
|
.article-view-meta {
|
|
font-size: 0.95rem;
|
|
color: #4a5568;
|
|
}
|
|
|
|
.article-view-author strong {
|
|
color: #2d3748;
|
|
}
|
|
|
|
/* --- INHALT --- */
|
|
.article-view-content {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.article-view-body {
|
|
font-size: 1.125rem;
|
|
color: #2d3748;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
/* --- TAG-BEREICH --- */
|
|
.article-view-bottom-section {
|
|
border-top: 1px solid #e2e8f0;
|
|
padding-top: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.article-view-tags-label {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: #718096;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.article-view-tags-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Einzelner Tag */
|
|
.article-view-tag-item {
|
|
background-color: #f1f5f9;
|
|
color: #475569;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
padding: 0.35rem 0.75rem;
|
|
border-radius: 6px;
|
|
border: 1px solid #e2e8f0;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
.article-view-tag-item:hover {
|
|
background-color: #e2e8f0;
|
|
color: #1e293b;
|
|
cursor: default;
|
|
}
|
|
|
|
.article-view-content {
|
|
margin-bottom: 3rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem; /* Erzeugt einen sauberen Abstand zwischen den einzelnen Blöcken */
|
|
width: 100%;
|
|
}
|
|
|
|
.article-view-body {
|
|
font-size: 1.125rem;
|
|
color: #2d3748;
|
|
width: 100%;
|
|
}
|
|
|
|
.article-view-body.block-text {
|
|
white-space: pre-line;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.article-view-body.block-image {
|
|
display: flex;
|
|
justify-content: center; /* Zentriert das Bild horizontal */
|
|
}
|
|
|
|
.article-view-body.block-image img {
|
|
max-width: 100%; /* Verhindert das Ausbrechen aus der Lesebreite */
|
|
height: auto; /* Behält das originale Seitenverhältnis bei */
|
|
border-radius: 6px; /* Optionale leichte Rundung für ein moderneres Layout */
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); /* Minimaler, eleganter Schatten */
|
|
}
|
|
|
|
/* Responsive Anpassungen unter 760px (für z.B. Smarticlephones) */
|
|
@media (max-width: 760px) {
|
|
.article-view-container {
|
|
margin: 1.5rem auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.article-view-title {
|
|
font-size: 1.85rem;
|
|
}
|
|
}
|
|
|
|
/* --- KOMMENTARE --- */
|
|
|
|
.article-comments-section {
|
|
margin-top: 3rem;
|
|
padding-top: 2rem;
|
|
border-top: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.article-comments-section h2 {
|
|
font-size: 2rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
#comments-list {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.comment-item {
|
|
background-color: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#comment-form {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
#comment-content {
|
|
width: 100%;
|
|
min-height: 130px;
|
|
padding: 1rem;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
#comment-form .button {
|
|
width: 100%;
|
|
}
|
|
|
|
.reply-button {
|
|
display: inline-block;
|
|
margin-top: 0.75rem;
|
|
background: none;
|
|
border: none;
|
|
color: #2563eb;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.reply-button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.comment-replies {
|
|
margin-top: 1rem;
|
|
margin-left: 2rem;
|
|
padding-left: 1rem;
|
|
border-left: 3px solid #cbd5e1;
|
|
}
|
|
|
|
.comment-reply {
|
|
background-color: #eef6ff;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.reply-info {
|
|
margin: 0.5rem 0;
|
|
color: #475569;
|
|
font-weight: 600;
|
|
}
|
|
.comment-login-hint {
|
|
margin-top: 2rem;
|
|
padding: 1.5rem;
|
|
background-color: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.comment-login-hint p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/*
|
|
Like-Button etc.
|
|
*/
|
|
|
|
.category-and-likes-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.article-view-likes {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.article-view-likes .like-count {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.article-view-likes .login-hint {
|
|
font-size: 0.8em;
|
|
color: #777;
|
|
}
|
|
|
|
/* Interaktiver Like/Unlike-Button */
|
|
.like-toggle-btn {
|
|
text-decoration: none;
|
|
padding: 4px 10px;
|
|
border: 1px solid #bbb;
|
|
border-radius: 4px;
|
|
background-color: #f5f5f5;
|
|
color: #333;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.like-toggle-btn:hover {
|
|
background-color: #eaeaea;
|
|
border-color: #999;
|
|
} |