Drop default Show Answer/Good highlight (#1820)
Feedback welcome. Discussion at
https://forums.ankiweb.net/t/2-1-5-border-around-good/19175
Partially reverts 301c9587d1
This commit is contained in:
parent
6f0d86b9a9
commit
27f2e39ff9
@ -49,12 +49,7 @@ button {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/**
|
||||
* We use .focus to recreate the highlight on the good button
|
||||
* while the actual focus is actually in the main webview
|
||||
*/
|
||||
:focus,
|
||||
.focus {
|
||||
:focus {
|
||||
outline: 1px auto var(--focus-color);
|
||||
|
||||
.nightMode & {
|
||||
@ -63,14 +58,6 @@ button {
|
||||
}
|
||||
}
|
||||
|
||||
#innertable:focus-within .focus:not(:focus) {
|
||||
outline: none;
|
||||
|
||||
.nightMode & {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nobold {
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
|
@ -763,7 +763,7 @@ time = %(time)d;
|
||||
def _showAnswerButton(self) -> None:
|
||||
middle = """
|
||||
<span class=stattxt>{}</span><br>
|
||||
<button title="{}" id="ansbut" class="focus" onclick='pycmd("ans");'>{}</button>""".format(
|
||||
<button title="{}" id="ansbut" onclick='pycmd("ans");'>{}</button>""".format(
|
||||
self._remaining(),
|
||||
tr.actions_shortcut_key(val=tr.studying_space()),
|
||||
tr.studying_show_answer(),
|
||||
@ -851,7 +851,7 @@ time = %(time)d;
|
||||
|
||||
def but(i: int, label: str) -> str:
|
||||
if i == default:
|
||||
extra = """id="defease" class="focus" """
|
||||
extra = """id="defease" """
|
||||
else:
|
||||
extra = ""
|
||||
due = self._buttonTime(i, v3_labels=labels)
|
||||
|
Loading…
Reference in New Issue
Block a user