test 2
This commit is contained in:
1 parent
f56f2a70ab
commit
ba91f06e05
3 files changed
+228
-230
No files matched your search
+17
-13
@@ -28,24 +28,29 @@
|
|||||||
<p>Welcome to my first website, I don't actually use here at all but maybe I'll consider putting more in the future.</p>
|
<p>Welcome to my first website, I don't actually use here at all but maybe I'll consider putting more in the future.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Bottom half: comments -->
|
<!-- Bottom half: Steam-style comments -->
|
||||||
<div id="comments-section">
|
<div id="comments-section">
|
||||||
|
|
||||||
<div class="comments-top-row">
|
<!-- Steam panel header -->
|
||||||
<h2 id="comments-title">Visitor Messages</h2>
|
<div class="steam-header">
|
||||||
<span class="comments-hint">No account needed — just type and post.</span>
|
<span class="steam-header-title">COMMENTS</span>
|
||||||
|
<span id="comments-title"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="firebase-setup-warning">
|
<div id="firebase-setup-warning">
|
||||||
⚠️ <strong>Setup needed:</strong> Open <code>js/comments.js</code> and follow the setup instructions at the top of the file.
|
⚠️ <strong>Setup needed:</strong> Open <code>js/comments.js</code> and follow the setup instructions at the top of the file.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Form -->
|
<!-- Comments feed -->
|
||||||
<div class="comment-form-box">
|
<div id="comments-list"></div>
|
||||||
|
|
||||||
<!-- Avatar color picker (optional) -->
|
<!-- Post form — at the bottom like Steam -->
|
||||||
|
<div class="steam-form-area">
|
||||||
|
<p class="steam-form-label">Leave a comment:</p>
|
||||||
|
|
||||||
|
<!-- Avatar colour picker -->
|
||||||
<div id="avatar-picker">
|
<div id="avatar-picker">
|
||||||
<span class="picker-label">Avatar colour</span>
|
<span class="picker-label">Colour</span>
|
||||||
<div class="picker-row">
|
<div class="picker-row">
|
||||||
<button type="button" class="av-opt selected" data-color="#5b6fde" style="background:#5b6fde"></button>
|
<button type="button" class="av-opt selected" data-color="#5b6fde" style="background:#5b6fde"></button>
|
||||||
<button type="button" class="av-opt" data-color="#3b82f6" style="background:#3b82f6"></button>
|
<button type="button" class="av-opt" data-color="#3b82f6" style="background:#3b82f6"></button>
|
||||||
@@ -60,16 +65,15 @@
|
|||||||
|
|
||||||
<form id="comment-form" autocomplete="off">
|
<form id="comment-form" autocomplete="off">
|
||||||
<input type="hidden" id="comment-avatar-color" value="#5b6fde">
|
<input type="hidden" id="comment-avatar-color" value="#5b6fde">
|
||||||
<input type="text" id="comment-name" placeholder="Name (optional — leave blank for Anonymous)" maxlength="32">
|
<input type="text" id="comment-name" placeholder="Name (optional)" maxlength="32">
|
||||||
<textarea id="comment-message" placeholder="Leave a message..." maxlength="300" required></textarea>
|
<textarea id="comment-message" placeholder="Write something..." maxlength="300" required></textarea>
|
||||||
<div class="comment-form-footer">
|
<div class="steam-submit-row">
|
||||||
<span id="char-count">300</span>
|
<span id="char-count">300</span>
|
||||||
<button type="submit" id="comment-submit">POST</button>
|
<button type="submit" id="comment-submit">Post Comment</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="comments-list"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
+1
-8
@@ -67,14 +67,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
listEl.innerHTML = '';
|
listEl.innerHTML = '';
|
||||||
|
|
||||||
if (titleEl) {
|
if (titleEl) {
|
||||||
const old = titleEl.querySelector('.comment-count-badge');
|
titleEl.textContent = snap.size > 0 ? `(${snap.size})` : '';
|
||||||
if (old) old.remove();
|
|
||||||
if (snap.size > 0) {
|
|
||||||
const badge = document.createElement('span');
|
|
||||||
badge.className = 'comment-count-badge';
|
|
||||||
badge.textContent = snap.size;
|
|
||||||
titleEl.appendChild(badge);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (snap.empty) {
|
if (snap.empty) {
|
||||||
|
|||||||
+210
-209
@@ -1,231 +1,109 @@
|
|||||||
/* ── About page two-part layout ──────────────────────────── */
|
/* ═══════════════════════════════════════════════════════════
|
||||||
|
STEAM PROFILE COMMENT STYLE
|
||||||
|
═══════════════════════════════════════════════════════════ */
|
||||||
|
|
||||||
|
/* ── About hero (top half) ──────────────────────────────── */
|
||||||
#about-hero {
|
#about-hero {
|
||||||
padding: 120px 20px 60px;
|
padding: 120px 20px 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stop the global h1 margin from pushing things */
|
|
||||||
#about-hero h1 {
|
#about-hero h1 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Comments panel ───────────────────────────────────────── */
|
/* ── Steam panel wrapper ─────────────────────────────────── */
|
||||||
#comments-section {
|
#comments-section {
|
||||||
background: rgba(5, 12, 24, 0.78);
|
max-width: 640px;
|
||||||
backdrop-filter: blur(18px);
|
margin: 0 auto 80px;
|
||||||
-webkit-backdrop-filter: blur(18px);
|
border: 1px solid rgba(0, 0, 0, 0.6);
|
||||||
border-top: 1px solid rgba(91, 111, 222, 0.3);
|
background: transparent;
|
||||||
padding: 40px 24px 60px;
|
font-family: 'Motiva Sans', Arial, Helvetica, sans-serif;
|
||||||
text-align: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comments-top-row {
|
/* ── Panel header bar ────────────────────────────────────── */
|
||||||
|
.steam-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
gap: 14px;
|
gap: 8px;
|
||||||
margin-bottom: 22px;
|
padding: 8px 14px;
|
||||||
flex-wrap: wrap;
|
background: rgba(0, 0, 0, 0.55);
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.steam-header-title {
|
||||||
|
font-size: 0.72rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #8b98a0;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#comments-title {
|
#comments-title {
|
||||||
font-size: 0.8rem;
|
font-size: 0.72rem;
|
||||||
color: #8aaabf;
|
color: #556772;
|
||||||
text-transform: uppercase;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
letter-spacing: 3px;
|
font-weight: normal;
|
||||||
font-weight: 600;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comments-hint {
|
/* ── Firebase warning ────────────────────────────────────── */
|
||||||
font-size: 0.78rem;
|
|
||||||
color: #3f5268;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Firebase warning ─────────────────────────────────────── */
|
|
||||||
#firebase-setup-warning {
|
#firebase-setup-warning {
|
||||||
background: rgba(255, 100, 60, 0.1);
|
background: rgba(180, 80, 30, 0.25);
|
||||||
border: 1px solid rgba(255, 100, 60, 0.4);
|
border-bottom: 1px solid rgba(180, 80, 30, 0.4);
|
||||||
border-radius: 10px;
|
padding: 10px 14px;
|
||||||
padding: 12px 18px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
color: #ffb89a;
|
color: #ffb89a;
|
||||||
font-size: 0.85rem;
|
|
||||||
line-height: 1.6;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Post form ────────────────────────────────────────────── */
|
|
||||||
.comment-form-box {
|
|
||||||
background: rgba(10, 20, 38, 0.7);
|
|
||||||
border: 1px solid rgba(91, 111, 222, 0.3);
|
|
||||||
border-radius: 12px;
|
|
||||||
padding: 18px 20px;
|
|
||||||
margin-bottom: 28px;
|
|
||||||
max-width: 680px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Avatar picker ────────────────────────────────────────── */
|
|
||||||
#avatar-picker {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 14px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.picker-label {
|
|
||||||
font-size: 0.78rem;
|
|
||||||
color: #4a6278;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.picker-row {
|
|
||||||
display: flex;
|
|
||||||
gap: 7px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.av-opt {
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
border-radius: 5px;
|
|
||||||
border: 2px solid transparent;
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0;
|
|
||||||
transition: transform 0.15s, border-color 0.15s;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.av-opt:hover {
|
|
||||||
transform: scale(1.18);
|
|
||||||
}
|
|
||||||
|
|
||||||
.av-opt.selected {
|
|
||||||
border-color: #fff;
|
|
||||||
transform: scale(1.22);
|
|
||||||
box-shadow: 0 0 8px rgba(255,255,255,0.35);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ── Form inputs ──────────────────────────────────────────── */
|
|
||||||
.comment-form-box input[type="text"],
|
|
||||||
.comment-form-box textarea {
|
|
||||||
width: 100%;
|
|
||||||
background: rgba(255, 255, 255, 0.05);
|
|
||||||
border: 1px solid rgba(91, 111, 222, 0.25);
|
|
||||||
border-radius: 7px;
|
|
||||||
color: #dce8f5;
|
|
||||||
padding: 9px 13px;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-bottom: 9px;
|
|
||||||
transition: border-color 0.2s, box-shadow 0.2s;
|
|
||||||
resize: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-form-box input[type="text"]::placeholder,
|
|
||||||
.comment-form-box textarea::placeholder {
|
|
||||||
color: #364858;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-form-box input[type="text"]:focus,
|
|
||||||
.comment-form-box textarea:focus {
|
|
||||||
outline: none;
|
|
||||||
border-color: #5b6fde;
|
|
||||||
box-shadow: 0 0 0 3px rgba(91,111,222,0.12);
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-form-box textarea {
|
|
||||||
height: 72px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment-form-footer {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#char-count {
|
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: #364858;
|
line-height: 1.5;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
display: none;
|
||||||
transition: color 0.2s;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#comment-submit {
|
/* ── Comment rows ────────────────────────────────────────── */
|
||||||
background: linear-gradient(135deg, #5b6fde, #3a52c4);
|
|
||||||
color: #fff;
|
|
||||||
border: none;
|
|
||||||
border-radius: 7px;
|
|
||||||
padding: 8px 26px;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
font-weight: 700;
|
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
cursor: pointer;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
|
|
||||||
box-shadow: 0 2px 12px rgba(91,111,222,0.35);
|
|
||||||
}
|
|
||||||
|
|
||||||
#comment-submit:hover:not(:disabled) {
|
|
||||||
opacity: 0.85;
|
|
||||||
box-shadow: 0 4px 18px rgba(91,111,222,0.55);
|
|
||||||
}
|
|
||||||
|
|
||||||
#comment-submit:active:not(:disabled) { transform: scale(0.97); }
|
|
||||||
#comment-submit:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
||||||
|
|
||||||
/* ── Comment bubbles (Steam layout) ──────────────────────── */
|
|
||||||
#comments-list {
|
#comments-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 6px;
|
|
||||||
max-width: 680px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-bubble {
|
.comment-bubble {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 0;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
background: rgba(10, 20, 38, 0.55);
|
background: rgba(0, 0, 0, 0.25);
|
||||||
border: 1px solid rgba(91, 111, 222, 0.15);
|
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
|
||||||
border-radius: 8px;
|
padding: 10px 14px;
|
||||||
padding: 12px 14px;
|
transition: background 0.15s;
|
||||||
animation: slideUp 0.25s ease forwards;
|
animation: fadeRow 0.2s ease forwards;
|
||||||
transition: border-color 0.2s, background 0.2s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-bubble:hover {
|
.comment-bubble:hover {
|
||||||
border-color: rgba(91,111,222,0.4);
|
background: rgba(0, 0, 0, 0.4);
|
||||||
background: rgba(10, 20, 38, 0.75);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideUp {
|
.comment-bubble:last-child {
|
||||||
from { opacity: 0; transform: translateY(8px); }
|
border-bottom: none;
|
||||||
to { opacity: 1; transform: translateY(0); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Steam-style square avatar */
|
@keyframes fadeRow {
|
||||||
|
from { opacity: 0; }
|
||||||
|
to { opacity: 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Square Steam-style avatar */
|
||||||
.comment-avatar {
|
.comment-avatar {
|
||||||
width: 42px;
|
width: 32px;
|
||||||
height: 42px;
|
height: 32px;
|
||||||
min-width: 42px;
|
min-width: 32px;
|
||||||
border-radius: 5px;
|
border-radius: 2px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 1.1rem;
|
font-size: 0.85rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
margin-right: 10px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-body {
|
.comment-body {
|
||||||
@@ -237,55 +115,178 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 3px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Steam cyan username */
|
||||||
.comment-name {
|
.comment-name {
|
||||||
font-weight: 700;
|
font-size: 0.82rem;
|
||||||
font-size: 0.9rem;
|
font-weight: bold;
|
||||||
color: #c6d4df;
|
color: #67c1f5;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-time {
|
.comment-time {
|
||||||
font-size: 0.76rem;
|
font-size: 0.72rem;
|
||||||
color: #344a5e;
|
color: #556772;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Comment text */
|
||||||
.comment-text {
|
.comment-text {
|
||||||
color: #8fafc8 !important;
|
color: #c6d4df !important;
|
||||||
font-size: 0.88rem !important;
|
font-size: 0.82rem !important;
|
||||||
line-height: 1.55 !important;
|
line-height: 1.5 !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: Arial, Helvetica, sans-serif !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-comments {
|
.no-comments {
|
||||||
color: #2e4156 !important;
|
color: #4a5c68 !important;
|
||||||
font-size: 0.85rem !important;
|
font-size: 0.8rem !important;
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
padding: 32px !important;
|
padding: 28px 14px !important;
|
||||||
font-style: italic;
|
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: Arial, Helvetica, sans-serif !important;
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Count badge next to title */
|
/* ── Post form (bottom, Steam style) ────────────────────── */
|
||||||
|
.steam-form-area {
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
border-top: 1px solid rgba(0, 0, 0, 0.5);
|
||||||
|
padding: 12px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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.35);
|
||||||
|
border: 1px solid #3d4b57;
|
||||||
|
border-radius: 2px;
|
||||||
|
color: #c6d4df;
|
||||||
|
padding: 7px 10px;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
resize: none;
|
||||||
|
transition: border-color 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: linear-gradient(to bottom, #4e7d10, #3a5e0c);
|
||||||
|
color: #d2e885;
|
||||||
|
border: none;
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: 6px 16px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
|
cursor: pointer;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
transition: filter 0.15s;
|
||||||
|
text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
#comment-submit:hover:not(:disabled) { filter: brightness(1.15); }
|
||||||
|
#comment-submit:active:not(:disabled) { filter: brightness(0.9); }
|
||||||
|
#comment-submit:disabled { opacity: 0.4; cursor: not-allowed; }
|
||||||
|
|
||||||
|
/* Comment count next to header */
|
||||||
.comment-count-badge {
|
.comment-count-badge {
|
||||||
display: inline-block;
|
|
||||||
background: rgba(91,111,222,0.2);
|
|
||||||
color: #5b7a9a;
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 1px 8px;
|
|
||||||
font-size: 0.72rem;
|
font-size: 0.72rem;
|
||||||
margin-left: 8px;
|
color: #556772;
|
||||||
vertical-align: middle;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user