.moontalk { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: #333; line-height: 1.6; max-width: 800px; margin: 0 auto; } .moontalk-comment-outer { background-color: #fff; padding: 20px; } .moontalk a { color: #0066cc; text-decoration: none; transition: color 0.2s ease; cursor: pointer; } .moontalk a:hover { color: #004499; text-decoration: underline; } .moontalk a:focus { outline: 2px solid #0066cc; outline-offset: 2px; } .moontalk-latest-widget { margin-top: 24px; padding: 14px 16px; border: 1px solid #e6edf5; border-radius: 10px; background: #f8fbff; } .moontalk-latest-header { margin-bottom: 10px; } .moontalk-latest-title { font-size: 0.95rem; font-weight: 600; color: #1f2a37; } .moontalk-latest-loading, .moontalk-latest-empty { display: none; font-size: 0.9rem; color: #64748b; } .moontalk-latest-list { display: flex; flex-direction: column; gap: 8px; } .moontalk-latest-item { padding: 8px 10px; border-radius: 8px; background: #ffffff; border: 1px solid #ebf1f7; } .moontalk-latest-item-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .moontalk-latest-author { font-weight: 600; color: #111827; } .moontalk-latest-date { font-size: 0.8rem; color: #64748b; white-space: nowrap; } .moontalk-latest-content { font-size: 0.9rem; color: #334155; word-break: break-word; } .moontalk-latest-post { margin-top: 4px; font-size: 0.8rem; color: #64748b; } .moontalk-vote { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 400px; margin: 20px auto; padding: 15px; border-radius: 8px; background-color: #f8f9fa; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); text-align: center; } .vote-title { margin: 0 0 10px; font-size: 1rem; color: #333; } .vote-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; } .vote-btn { border: 1px solid transparent; background: #fff; padding: 8px 15px; border-radius: 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; transition: transform 0.2s ease, background-color 0.2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .vote-btn:hover { transform: translateY(-1px); } .vote-btn.active { color: #fff; } .vote-icon { display: inline-flex; align-items: center; justify-content: center; } .vote-icon svg { width: 18px; height: 18px; display: block; } .vote-icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .upvote { color: #2e7d32; border-color: #2e7d32; } .upvote:hover { background-color: #e8f5e9; } .upvote.active { background-color: #2e7d32; } .downvote { color: #c62828; border-color: #c62828; } .downvote:hover { background-color: #ffebee; } .downvote.active { background-color: #c62828; } .vote-count { font-weight: 700; } .moontalk .vote-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .moontalk-header { display: flex; align-items: center; margin-bottom: 20px; font-size: 1.5rem; font-weight: 600; } .moontalk-count { margin-left: 10px; color: #666; font-size: 1rem; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; } .moontalk-list { margin-bottom: 30px; } .moontalk-comment, .moontalk-subcomment { padding: 14px 0; border-bottom: 1px solid #eee; } .moontalk-comment:last-child, .moontalk-subcomment:last-child { border-bottom: none; } .moontalk-subcomment { margin-left: 42px; padding-left: 16px; border-left: 2px solid #e2e8f0; } .moontalk-comment-header { display: flex; align-items: center; margin-bottom: 8px; } .moontalk-comment-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; background: #eee; } .moontalk-subcomment .moontalk-comment-avatar { width: 28px; height: 28px; } .moontalk-comment-username { font-weight: 600; margin-right: 8px; } .moontalk-comment-date { color: #999; font-size: 0.85rem; } .moontalk-comment-content { margin-left: 42px; } .moontalk-subcomment .moontalk-comment-content { margin-left: 38px; } .moontalk-comment-text { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; } .moontalk-mention { font-weight: 700; } .moontalk-comment-reply { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; margin: 4px 0; font-size: 0.875rem; font-weight: 500; color: #4a5568; background-color: #f7fafc; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; } .moontalk-comment-reply::before { content: '\21A9'; margin-right: 6px; } .moontalk-comment-reply:hover { background-color: #edf2f7; border-color: #cbd5e0; } .moontalk-comment-reply:focus { outline: none; box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3); } .moontalk-empty { display: none; color: #999; text-align: center; padding: 30px 0; } .moontalk-loading { display: none; text-align: center; padding: 20px; color: #666; } .moontalk-loading-spinner { display: inline-flex; align-items: center; gap: 12px; padding: 10px 15px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; color: #334155; font-size: 0.9rem; } .moontalk-spinner { width: 20px; height: 20px; animation: rotate 1.4s linear infinite; } .moontalk-spinner-path { stroke: #3b82f6; stroke-linecap: round; animation: dash 1.4s ease-in-out infinite; } .moontalk-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0; } .moontalk-pagination button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e0e0e0; border-radius: 6px; background-color: #fff; color: #333; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .moontalk-pagination button:hover:not(:disabled) { background-color: #f5f5f5; border-color: #d0d0d0; } .moontalk-pagination button:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; } .moontalk-error { display: none; margin: 15px 20px 0; } .moontalk-error-wrapper { display: flex; align-items: center; padding: 10px 15px; background-color: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; color: #991b1b; font-size: 0.9rem; } .error-icon { width: 18px; height: 18px; margin-right: 8px; color: #ef4444; } .moontalk-success { display: none; margin: 15px 20px 0; } .success-message { display: flex; align-items: center; padding: 10px 15px; background-color: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; color: #166534; font-size: 0.9rem; } .success-icon { width: 18px; height: 18px; margin-right: 8px; color: #22c55e; } .moontalk-editor { background: #f9f9f9; border-radius: 8px; padding: 15px; margin-top: 20px; } .moontalk-editor-header { font-weight: 600; margin-bottom: 12px; } .moontalk-content { width: 100%; min-height: 100px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; resize: vertical; font-family: inherit; margin-bottom: 10px; } .moontalk-editor-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .moontalk-user input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; width: 200px; max-width: 100%; box-sizing: border-box; } .moontalk-submit { background: #1e5de5; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: 500; white-space: nowrap; } .moontalk-submit:hover { background: #1976d2; } .moontalk-submit:disabled { background: #ccc; cursor: not-allowed; } .moontalk.moontalk-theme-dark { color: #e5e7eb; } .moontalk.moontalk-theme-dark .moontalk-comment-outer { background-color: #111827; border: 1px solid #1f2937; border-radius: 10px; } .moontalk.moontalk-theme-dark a { color: #7cc4ff; } .moontalk.moontalk-theme-dark a:hover { color: #a9daff; } .moontalk.moontalk-theme-dark a:focus { outline-color: #7cc4ff; } .moontalk.moontalk-theme-dark .moontalk-latest-widget { border-color: #2d3a4d; background: #0b1220; } .moontalk.moontalk-theme-dark .moontalk-latest-title, .moontalk.moontalk-theme-dark .moontalk-latest-author { color: #f3f4f6; } .moontalk.moontalk-theme-dark .moontalk-latest-loading, .moontalk.moontalk-theme-dark .moontalk-latest-empty, .moontalk.moontalk-theme-dark .moontalk-latest-date, .moontalk.moontalk-theme-dark .moontalk-latest-post { color: #94a3b8; } .moontalk.moontalk-theme-dark .moontalk-latest-item { background: #111827; border-color: #273449; } .moontalk.moontalk-theme-dark .moontalk-latest-content { color: #cbd5e1; } .moontalk.moontalk-theme-dark .moontalk-vote { background-color: #0f172a; border: 1px solid #1f2937; box-shadow: none; } .moontalk.moontalk-theme-dark .vote-title { color: #e5e7eb; } .moontalk.moontalk-theme-dark .vote-btn { background: #111827; border-color: #334155; color: #e5e7eb; box-shadow: none; } .moontalk.moontalk-theme-dark .upvote { color: #4ade80; border-color: #4ade80; } .moontalk.moontalk-theme-dark .upvote.active { color: #052e16; background-color: #4ade80; border-color: #4ade80; } .moontalk.moontalk-theme-dark .upvote:hover { background-color: #12331f; } .moontalk.moontalk-theme-dark .downvote { color: #f87171; border-color: #f87171; } .moontalk.moontalk-theme-dark .downvote.active { color: #450a0a; background-color: #f87171; border-color: #f87171; } .moontalk.moontalk-theme-dark .downvote:hover { background-color: #3a1515; } .moontalk.moontalk-theme-dark .moontalk-count { color: #cbd5e1; background: #1f2937; } .moontalk.moontalk-theme-dark .moontalk-comment, .moontalk.moontalk-theme-dark .moontalk-subcomment { border-bottom-color: #1f2937; } .moontalk.moontalk-theme-dark .moontalk-subcomment { border-left-color: #334155; } .moontalk.moontalk-theme-dark .moontalk-comment-avatar { background: #334155; } .moontalk.moontalk-theme-dark .moontalk-comment-date, .moontalk.moontalk-theme-dark .moontalk-empty, .moontalk.moontalk-theme-dark .moontalk-loading { color: #9ca3af; } .moontalk.moontalk-theme-dark .moontalk-comment-reply { color: #cbd5e1; background-color: #111827; border-color: #334155; } .moontalk.moontalk-theme-dark .moontalk-comment-reply:hover { background-color: #1f2937; border-color: #475569; } .moontalk.moontalk-theme-dark .moontalk-comment-reply:focus { box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35); } .moontalk.moontalk-theme-dark .moontalk-loading-spinner { background-color: #111827; border-color: #334155; color: #cbd5e1; } .moontalk.moontalk-theme-dark .moontalk-spinner-path { stroke: #60a5fa; } .moontalk.moontalk-theme-dark .moontalk-pagination button { border-color: #334155; background-color: #111827; color: #e5e7eb; } .moontalk.moontalk-theme-dark .moontalk-pagination button:hover:not(:disabled) { background-color: #1f2937; border-color: #475569; } .moontalk.moontalk-theme-dark .moontalk-error-wrapper { background-color: #3b1212; border-color: #7f1d1d; color: #fecaca; } .moontalk.moontalk-theme-dark .error-icon { color: #f87171; } .moontalk.moontalk-theme-dark .success-message { background-color: #052e16; border-color: #166534; color: #bbf7d0; } .moontalk.moontalk-theme-dark .success-icon { color: #4ade80; } .moontalk.moontalk-theme-dark .moontalk-editor { background: #0b1220; } .moontalk.moontalk-theme-dark .moontalk-content, .moontalk.moontalk-theme-dark .moontalk-user input { border-color: #334155; background: #111827; color: #e5e7eb; } .moontalk.moontalk-theme-dark .moontalk-content::placeholder, .moontalk.moontalk-theme-dark .moontalk-user input::placeholder { color: #9ca3af; } .moontalk.moontalk-theme-dark .moontalk-submit { background: #2563eb; } .moontalk.moontalk-theme-dark .moontalk-submit:hover { background: #1d4ed8; } .moontalk.moontalk-theme-dark .moontalk-submit:disabled { background: #4b5563; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(270deg); } } @keyframes dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } } @media (max-width: 600px) { .moontalk-editor-footer { flex-direction: column; align-items: stretch; } .moontalk-user input, .moontalk-submit { width: 100%; } }