Show HTML toggle when PlainTextInput is active, regardless of hover/focus

This commit is contained in:
Matthias Metelka 2022-08-09 00:23:58 +02:00
parent 441956922b
commit 82dde941d2

View file

@ -67,8 +67,19 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
} }
.plain-text-toggle.on::before { .plain-text-toggle.on {
background: linear-gradient(to bottom, var(--frame-bg) 50%, var(--code-bg) 0%); opacity: 1;
color: var(--text-fg);
&::before {
right: 0px;
left: -1px;
background: linear-gradient(
to bottom,
var(--frame-bg) 50%,
var(--code-bg) 0%
);
}
} }
.plain-text-toggle.off::before { .plain-text-toggle.off::before {
background: linear-gradient( background: linear-gradient(
@ -89,9 +100,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
} }
} }
.plain-text-toggle.on {
color: var(--text-fg);
}
} }
.clickable { .clickable {