Files
thrillwiki_django_no_react/static/css/inline-comment-panel.css

229 lines
3.8 KiB
CSS

/* Inline Comment Panel Styles */
.comment-panel {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
margin: 1rem 0;
}
.comment-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
border-bottom: 1px solid #e5e7eb;
background: #f9fafb;
}
.thread-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.anchor-info {
font-family: ui-monospace, monospace;
font-size: 0.875rem;
color: #4b5563;
}
.resolution-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
background: #dcfce7;
color: #166534;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
}
.resolve-button {
padding: 0.375rem 0.75rem;
background: #059669;
color: white;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;
}
.resolve-button:hover {
background: #047857;
}
.comments-container {
padding: 1rem;
}
.comment {
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e5e7eb;
}
.comment:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.comment.reply {
margin-left: 2rem;
padding: 0.75rem;
background: #f9fafb;
border-radius: 0.375rem;
border: none;
}
.comment-author {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.author-avatar {
width: 2rem;
height: 2rem;
border-radius: 9999px;
}
.author-name {
font-weight: 500;
color: #111827;
}
.comment-date {
font-size: 0.75rem;
color: #6b7280;
}
.comment-content {
font-size: 0.875rem;
line-height: 1.5;
color: #374151;
margin-bottom: 0.5rem;
}
.comment-content .mention {
color: #2563eb;
font-weight: 500;
}
.comment-content a {
color: #2563eb;
text-decoration: none;
}
.comment-content a:hover {
text-decoration: underline;
}
.comment-actions {
display: flex;
gap: 0.75rem;
}
.action-button {
font-size: 0.75rem;
color: #6b7280;
background: none;
border: none;
padding: 0;
cursor: pointer;
transition: color 0.2s;
}
.action-button:hover {
color: #374151;
}
.reply-form {
padding: 1rem;
border-top: 1px solid #e5e7eb;
background: #f9fafb;
}
.reply-form.nested {
margin-top: 0.75rem;
padding: 0.75rem;
border: 1px solid #e5e7eb;
border-radius: 0.375rem;
}
.reply-input,
.edit-input {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 0.875rem;
resize: vertical;
margin-bottom: 0.5rem;
}
.reply-input:focus,
.edit-input:focus {
outline: none;
border-color: #3b82f6;
ring: 2px solid rgba(59, 130, 246, 0.5);
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
.reply-button,
.save-button {
padding: 0.375rem 0.75rem;
background: #3b82f6;
color: white;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;
}
.reply-button:hover,
.save-button:hover {
background: #2563eb;
}
.cancel-button {
padding: 0.375rem 0.75rem;
background: #fff;
color: #4b5563;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s;
}
.cancel-button:hover {
background: #f3f4f6;
}
/* Responsive Design */
@media (max-width: 640px) {
.comment.reply {
margin-left: 1rem;
}
.comment-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.resolve-button {
width: 100%;
text-align: center;
}
}