238 lines
3.9 KiB
CSS
238 lines
3.9 KiB
CSS
.forum-topbar {
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-card);
|
|
}
|
|
|
|
.forum-topbar-inner {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 0.85rem 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.forum-brand {
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
font-family: var(--font-mono);
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.forum-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.forum-nav a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.forum-nav a.active {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.forum-nav .forum-user {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.forum-main {
|
|
width: 100%;
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.forum-section {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1rem 1.1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.forum-section h1 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.8rem;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.forum-section h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.8rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.forum-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.post-list,
|
|
.comment-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.post-item,
|
|
.comment-item {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 0.9rem;
|
|
margin-bottom: 0.7rem;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.post-title {
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.post-title:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.post-meta,
|
|
.comment-meta {
|
|
margin-top: 0.45rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.post-content,
|
|
.comment-content {
|
|
white-space: pre-wrap;
|
|
margin-top: 0.8rem;
|
|
color: var(--text);
|
|
}
|
|
|
|
.forum-btn {
|
|
display: inline-block;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
border: none;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
padding: 0.5rem 0.9rem;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.forum-btn:hover {
|
|
background: var(--accent-dim);
|
|
}
|
|
|
|
.forum-btn-ghost {
|
|
background: var(--bg-elevated);
|
|
color: var(--text);
|
|
}
|
|
|
|
.forum-btn-ghost:hover {
|
|
background: var(--border);
|
|
}
|
|
|
|
.auth-card {
|
|
max-width: 420px;
|
|
margin: 1.8rem auto;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.1rem 1.2rem;
|
|
}
|
|
|
|
.auth-card h1 {
|
|
margin-top: 0;
|
|
margin-bottom: 1rem;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.auth-form .form-group,
|
|
.post-form .form-group,
|
|
.comment-form .form-group {
|
|
margin-bottom: 0.85rem;
|
|
}
|
|
|
|
.auth-form label,
|
|
.post-form label,
|
|
.comment-form label {
|
|
display: block;
|
|
margin-bottom: 0.3rem;
|
|
color: var(--text-muted);
|
|
font-size: 0.86rem;
|
|
}
|
|
|
|
.auth-form input,
|
|
.post-form input,
|
|
.post-form textarea,
|
|
.comment-form textarea {
|
|
width: 100%;
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 0.55rem 0.65rem;
|
|
font-size: 0.94rem;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.auth-form input:focus,
|
|
.post-form input:focus,
|
|
.post-form textarea:focus,
|
|
.comment-form textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.auth-form button,
|
|
.post-form button {
|
|
width: 100%;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.form-error {
|
|
color: var(--red);
|
|
font-size: 0.88rem;
|
|
margin: 0 0 0.8rem 0;
|
|
}
|
|
|
|
.form-success {
|
|
color: var(--green);
|
|
font-size: 0.88rem;
|
|
margin: 0 0 0.8rem 0;
|
|
}
|
|
|
|
.forum-empty {
|
|
color: var(--text-muted);
|
|
margin: 0.6rem 0;
|
|
}
|
|
|
|
.auth-switch {
|
|
margin-top: 0.9rem;
|
|
color: var(--text-muted);
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.auth-switch a {
|
|
color: var(--accent);
|
|
}
|