From 27f2e39ff91ae166d26807818fedad3cedf6e352 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Apr 2022 19:26:16 +1000 Subject: [PATCH] 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 301c9587d1a71fab79c909ab3db5dd4a88c2458c --- qt/aqt/data/web/css/reviewer-bottom.scss | 15 +-------------- qt/aqt/reviewer.py | 4 ++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/qt/aqt/data/web/css/reviewer-bottom.scss b/qt/aqt/data/web/css/reviewer-bottom.scss index e124ce05f..67081ad45 100644 --- a/qt/aqt/data/web/css/reviewer-bottom.scss +++ b/qt/aqt/data/web/css/reviewer-bottom.scss @@ -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; diff --git a/qt/aqt/reviewer.py b/qt/aqt/reviewer.py index a6a35a350..e200b41a3 100644 --- a/qt/aqt/reviewer.py +++ b/qt/aqt/reviewer.py @@ -763,7 +763,7 @@ time = %(time)d; def _showAnswerButton(self) -> None: middle = """ {}
-""".format( +""".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)