Files
org_web/assets/styles/components/comments.css
2026-07-08 22:28:43 +01:00

119 lines
1.8 KiB
CSS

.comments {
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid var(--border-muted, #ddd);
}
.comments h2 {
margin: 0 0 1rem 0;
font-size: 1.4rem;
}
.comments-list {
margin: 1.5rem 0 2rem;
}
.comments-empty {
font-style: italic;
color: var(--text-muted, #777);
}
.comment {
margin-bottom: 1.5rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--border-muted, #eee);
}
.comment:last-child {
border-bottom: none;
}
.comment strong {
display: block;
font-weight: 600;
margin-bottom: 0.25rem;
}
.comment p {
margin: 0.25rem 0 0.5rem;
}
.comment-date {
display: block;
font-size: 0.8rem;
color: var(--text-muted, #777);
}
.comment-children {
margin-top: 1rem;
margin-left: 1.25rem;
padding-left: 1rem;
border-left: 2px solid var(--border-muted, #ddd);
}
.comment-reply {
margin-top: 0.4rem;
padding: 0;
font-size: 0.85rem;
background: none;
border: none;
color: var(--text-muted, #555);
cursor: pointer;
}
.comment-reply:hover {
text-decoration: underline;
}
.comment-form {
max-width: 40rem;
}
.comment-author {
display: block;
margin-bottom: 1rem;
}
.comment-form span {
display: block;
margin-bottom: 0.25rem;
font-size: 0.85rem;
color: var(--fg);
}
.comment-form input,
.comment-form textarea {
width: 100%;
padding: 0;
font-family: inherit;
font-size: 1rem;
color: var(--fg);
background: var(--bg);
border: 1px solid var(--border-muted, #ccc);
border-radius: 3px;
}
.comment-form textarea {
min-height: 6rem;
resize: vertical;
}
.comment-form button {
margin-top: 0.75rem;
padding: 0.45rem 1rem;
font-family: inherit;
font-size: 0.9rem;
color: var(--fg);
background: transparent;
border: 1px solid var(--border-muted, #aaa);
cursor: pointer;
}