Files
website/style/comments.css
T
2026-04-26 15:33:55 +03:00

423 lines
10 KiB
CSS

/* ═══════════════════════════════════════════════════════════
STEAM PROFILE COMMENT STYLE
═══════════════════════════════════════════════════════════ */
/* ── About hero (top half) ──────────────────────────────── */
#about-hero {
padding: 120px 20px 50px;
display: flex;
align-items: center;
justify-content: center;
gap: 40px;
}
.hero-text {
text-align: left;
}
#about-hero h1 {
margin-top: 0;
}
#click-counter-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
#yuuka-click-btn {
width: 200px;
cursor: pointer;
transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
user-select: none;
-webkit-user-drag: none;
}
#yuuka-click-btn:active {
transform: scale(0.9);
}
#click-counter-display {
color: #153dee;
font-size: 2.5rem;
font-weight: bold;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}
/* ── Steam panel wrapper ─────────────────────────────────── */
#comments-section {
width: 100%;
max-width: 100%;
margin: 50px 0 0 0;
padding: 0 20px 40px 20px;
box-sizing: border-box;
background: transparent;
font-family: 'Motiva Sans', Arial, Helvetica, sans-serif;
text-align: left;
}
/* ── Panel header bar ────────────────────────────────────── */
.steam-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 0;
background: transparent;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.steam-header-title {
font-size: 0.72rem;
font-weight: 700;
color: #8b98a0;
letter-spacing: 1px;
font-family: Arial, Helvetica, sans-serif;
}
#comments-title {
font-size: 0.72rem;
color: #556772;
font-family: Arial, Helvetica, sans-serif;
font-weight: normal;
margin: 0;
}
/* ── Firebase warning ────────────────────────────────────── */
#firebase-setup-warning {
background: rgba(180, 80, 30, 0.25);
border-bottom: 1px solid rgba(180, 80, 30, 0.4);
padding: 10px 14px;
color: #ffb89a;
font-size: 0.8rem;
line-height: 1.5;
display: none;
font-family: Arial, Helvetica, sans-serif;
}
/* ── Comment rows ────────────────────────────────────────── */
#comments-list {
display: flex;
flex-direction: column;
}
.comment-bubble {
display: flex;
gap: 0;
align-items: flex-start;
background: transparent;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
padding: 14px 0;
transition: background 0.15s;
animation: fadeRow 0.2s ease forwards;
}
.comment-bubble:hover {
background: rgba(255, 255, 255, 0.02);
}
.comment-bubble:last-child {
border-bottom: none;
}
@keyframes fadeRow {
from { opacity: 0; }
to { opacity: 1; }
}
/* Square Steam-style avatar */
.comment-avatar {
width: 32px;
height: 32px;
min-width: 32px;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 0.85rem;
color: #fff;
margin-right: 10px;
flex-shrink: 0;
font-family: Arial, Helvetica, sans-serif;
}
.comment-body {
flex: 1;
min-width: 0;
}
.comment-header {
display: flex;
align-items: baseline;
gap: 8px;
margin-bottom: 3px;
flex-wrap: wrap;
}
/* Steam cyan username -> Now Black */
.comment-name {
font-size: 0.85rem;
font-weight: bold;
color: #000000;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
}
.comment-time {
font-size: 0.72rem;
color: #556772;
margin-left: auto;
white-space: nowrap;
font-family: Arial, Helvetica, sans-serif;
}
/* Comment text */
.comment-text {
color: #000000 !important;
font-size: 0.85rem !important;
font-weight: 500 !important;
line-height: 1.5 !important;
margin: 0 !important;
max-width: 100% !important;
word-break: break-word;
font-family: Arial, Helvetica, sans-serif !important;
}
.no-comments {
color: #4a5c68 !important;
font-size: 0.8rem !important;
text-align: center !important;
padding: 28px 14px !important;
margin: 0 !important;
max-width: 100% !important;
font-family: Arial, Helvetica, sans-serif !important;
font-style: italic;
}
/* ── Post form (bottom, Steam style) ────────────────────── */
.steam-form-area {
background: transparent;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 20px 0 0 0;
margin-top: 10px;
}
.steam-form-label {
color: #8b98a0 !important;
font-size: 0.75rem !important;
margin: 0 0 8px 0 !important;
max-width: 100% !important;
font-family: Arial, Helvetica, sans-serif !important;
font-style: normal !important;
text-transform: uppercase;
letter-spacing: 1px;
}
/* ── Avatar colour picker ────────────────────────────────── */
#avatar-picker {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.picker-label {
font-size: 0.7rem;
color: #556772;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
letter-spacing: 1px;
flex-shrink: 0;
}
.picker-row {
display: flex;
gap: 5px;
flex-wrap: wrap;
}
.av-opt {
width: 18px;
height: 18px;
border-radius: 2px;
border: 2px solid transparent;
cursor: pointer;
padding: 0;
transition: transform 0.12s, border-color 0.12s;
flex-shrink: 0;
}
.av-opt:hover { transform: scale(1.2); }
.av-opt.selected {
border-color: #c6d4df;
transform: scale(1.25);
}
/* ── Form inputs ─────────────────────────────────────────── */
#comment-form input[type="text"],
#comment-form textarea {
width: 100%;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 2px;
color: #c6d4df;
padding: 10px;
font-size: 0.85rem;
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
margin-bottom: 10px;
resize: none;
transition: border-color 0.2s, background 0.2s;
}
#comment-form input[type="text"]::placeholder,
#comment-form textarea::placeholder {
color: #3d4b57;
}
#comment-form input[type="text"]:focus,
#comment-form textarea:focus {
outline: none;
border-color: #67c1f5;
}
#comment-form textarea {
height: 64px;
}
.steam-submit-row {
display: flex;
align-items: center;
justify-content: space-between;
}
#char-count {
font-size: 0.72rem;
color: #3d4b57;
font-family: Arial, Helvetica, sans-serif;
transition: color 0.2s;
}
/* Steam "Post Comment" button */
#comment-submit {
background: #02e3ff;
border: 1px solid #00c0d8;
color: #000000;
padding: 6px 12px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: bold;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
box-shadow: 0 0 10px rgba(2, 227, 255, 0.4);
}
#comment-submit:hover:not(:disabled) {
background: #ffffff;
box-shadow: 0 0 15px rgba(2, 227, 255, 0.8);
transform: scale(1.05);
}
#comment-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
/* Comment count next to header */
.comment-count-badge {
font-size: 0.72rem;
color: #556772;
font-family: Arial, Helvetica, sans-serif;
}
/* ── Custom PFP Upload ───────────────────────────────────── */
.custom-pfp-upload {
display: flex;
align-items: center;
gap: 8px;
}
.pfp-upload-btn {
background: #02e3ff;
border: 1px solid #00c0d8;
color: #000000;
padding: 6px 12px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: bold;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
box-shadow: 0 0 10px rgba(2, 227, 255, 0.4);
}
.pfp-upload-btn:hover {
background: #ffffff;
box-shadow: 0 0 15px rgba(2, 227, 255, 0.8);
transform: scale(1.05);
}
.pfp-preview {
width: 24px;
height: 24px;
border-radius: 2px;
background-size: cover;
background-position: center;
display: none;
border: 1px solid rgba(255, 255, 255, 0.4);
}
.pfp-clear {
background: transparent;
border: none;
color: #e05555;
font-size: 1.2rem;
cursor: pointer;
padding: 0;
line-height: 1;
display: none;
align-items: center;
justify-content: center;
transition: color 0.15s;
}
.pfp-clear:hover {
color: #ff7070;
}
/* ── Pagination ──────────────────────────────────────────── */
.steam-pagination {
display: flex;
justify-content: center;
gap: 5px;
margin-top: 20px;
flex-wrap: wrap;
}
.steam-page-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #c6d4df;
padding: 6px 12px;
border-radius: 2px;
font-size: 0.8rem;
cursor: pointer;
transition: background 0.15s, color 0.15s;
font-family: Arial, Helvetica, sans-serif;
}
.steam-page-btn:hover {
background: rgba(255, 255, 255, 0.2);
color: #fff;
}
.steam-page-btn.active {
background: #02e3ff;
border-color: #00c0d8;
color: #000;
font-weight: bold;
}