Put Q&A voting controls below the question on phones #52

Merged
gnilebein merged 1 commits from fix/qa-own-question-mobile into main 2026-11-11 15:02:54 +01:00
+6
View File
@@ -551,6 +551,12 @@ textarea { resize: vertical; }
.qa-stepper { flex: none; display: inline-flex; align-items: center; gap: 6px; } .qa-stepper { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.qa-stepper__count { min-width: 3.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); } .qa-stepper__count { min-width: 3.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.qa-stepper.is-active .qa-stepper__count { color: var(--qa); } .qa-stepper.is-active .qa-stepper__count { color: var(--qa); }
/* Phones: voting controls below the question, so the text keeps the full width. */
@media (max-width: 700px) {
.qa-item:has(.qa-stepper) { flex-wrap: wrap; row-gap: 8px; }
.qa-item:has(.qa-stepper) .qa-item__text { flex-basis: 100%; }
.qa-item:has(.qa-stepper) .qa-stepper { margin-left: auto; }
}
.qa-upvote { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--qa); background: var(--surface); color: var(--qa); font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; } .qa-upvote { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--qa); background: var(--surface); color: var(--qa); font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qa-upvote--up { background: var(--qa); color: var(--surface); } .qa-upvote--up { background: var(--qa); color: var(--surface); }
.qa-upvote:disabled { opacity: .45; cursor: not-allowed; } .qa-upvote:disabled { opacity: .45; cursor: not-allowed; }