mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Remove display:none from mark and flag, and preset hidden attribute instead
This commit is contained in:
parent
74a9d0b0a1
commit
c9fcf955f4
2 changed files with 3 additions and 5 deletions
|
@ -27,7 +27,6 @@ img {
|
||||||
right: 10px;
|
right: 10px;
|
||||||
top: 0;
|
top: 0;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
display: none;
|
|
||||||
-webkit-text-stroke-width: 1px;
|
-webkit-text-stroke-width: 1px;
|
||||||
-webkit-text-stroke-color: black;
|
-webkit-text-stroke-color: black;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +37,6 @@ img {
|
||||||
top: 0;
|
top: 0;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: yellow;
|
color: yellow;
|
||||||
display: none;
|
|
||||||
-webkit-text-stroke-width: 1px;
|
-webkit-text-stroke-width: 1px;
|
||||||
-webkit-text-stroke-color: black;
|
-webkit-text-stroke-color: black;
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,10 +183,10 @@ class Reviewer:
|
||||||
if self.mw.pm.video_driver() == VideoDriver.Software:
|
if self.mw.pm.video_driver() == VideoDriver.Software:
|
||||||
fade = "<script>qFade=0;</script>"
|
fade = "<script>qFade=0;</script>"
|
||||||
return f"""
|
return f"""
|
||||||
<div id=_mark>★</div>
|
<div id="_mark" hidden>★</div>
|
||||||
<div id=_flag>⚑</div>
|
<div id="_flag" hidden>⚑</div>
|
||||||
{fade}
|
{fade}
|
||||||
<div id=qa></div>
|
<div id="qa"></div>
|
||||||
{extra}
|
{extra}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue