tts: explicit colors on queued/loading buttons for dark mode
Default browser disabled-button styling washes out to near-invisible against dark backgrounds. Force --button-secondary background + white text + opacity 1 on .tts-queued and .tts-loading so the indicator stays legible in both themes.
This commit is contained in:
parent
adc4fd79d2
commit
211dfa0eba
1 changed files with 12 additions and 2 deletions
|
|
@ -1395,10 +1395,20 @@ a:hover {
|
||||||
|
|
||||||
/* TTS play-button states: queued (waiting in line) → loading (fetching) → playing.
|
/* TTS play-button states: queued (waiting in line) → loading (fetching) → playing.
|
||||||
Gives auto-play users a visible signal during the gap between message arrival
|
Gives auto-play users a visible signal during the gap between message arrival
|
||||||
and audio start, so the wait doesn't feel like a hang. */
|
and audio start, so the wait doesn't feel like a hang. Explicit colors keep
|
||||||
|
the disabled state legible in both light and dark themes (browser default
|
||||||
|
disabled greys out to near-invisible against dark backgrounds). */
|
||||||
|
.tts-queued,
|
||||||
|
.tts-loading,
|
||||||
|
.tts-queued:disabled,
|
||||||
|
.tts-loading:disabled {
|
||||||
|
background-color: var(--button-secondary);
|
||||||
|
color: #ffffff;
|
||||||
|
border: 1px solid var(--button-secondary);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
.tts-queued {
|
.tts-queued {
|
||||||
cursor: wait !important;
|
cursor: wait !important;
|
||||||
opacity: 0.85;
|
|
||||||
}
|
}
|
||||||
.tts-queued::after {
|
.tts-queued::after {
|
||||||
content: "•";
|
content: "•";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue