/** * @fileoverview Comment Component Styles for Rantii * @author retoor * @description Styles for comment items and forms * @keywords css, comment, form, styles */ comment-item { display: block; background-color: var(--color-surface); border-radius: var(--radius-md); transition: all var(--transition-fast); } comment-item.highlight { box-shadow: 0 0 0 2px var(--color-primary); } .comment-content { padding: var(--spacing-md); } .comment-header { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-sm); } .comment-meta { display: flex; align-items: center; gap: var(--spacing-sm); flex: 1; flex-wrap: wrap; } .comment-username { font-weight: 600; cursor: pointer; } .comment-username:hover { color: var(--color-primary); } .comment-score { font-size: var(--font-size-sm); color: var(--color-upvote); } .comment-time { font-size: var(--font-size-sm); color: var(--color-text-muted); } .comment-actions { display: flex; gap: var(--spacing-xs); } .action-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--color-text-muted); border-radius: var(--radius-sm); transition: all var(--transition-fast); } .action-btn:hover { color: var(--color-text); background-color: var(--color-surface-hover); } .action-btn.delete-btn:hover { color: var(--color-error); } .comment-body { margin-bottom: var(--spacing-sm); } .comment-footer { display: flex; align-items: center; } .comment-skeleton { height: 100px; background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-hover) 50%, var(--color-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); } .comment-edit { padding: var(--spacing-md); } .comment-edit-input { width: 100%; min-height: 100px; margin-bottom: var(--spacing-md); } .comment-edit-actions { display: flex; gap: var(--spacing-sm); justify-content: flex-end; } comment-form { display: block; } .comment-form-auth { text-align: center; padding: var(--spacing-lg); background-color: var(--color-surface); border-radius: var(--radius-md); } .comment-form-auth p { margin-bottom: var(--spacing-md); color: var(--color-text-secondary); } .comment-form-inner { background-color: var(--color-surface); border-radius: var(--radius-md); padding: var(--spacing-md); } .comment-input { width: 100%; min-height: 80px; margin-bottom: var(--spacing-sm); } .form-actions { display: flex; align-items: center; justify-content: space-between; } .char-count { font-size: var(--font-size-sm); color: var(--color-text-muted); }