Remove display:none from mark and flag, and preset hidden attribute instead

This commit is contained in:
Henrik Giesel 2021-04-13 01:00:09 +02:00
parent 74a9d0b0a1
commit c9fcf955f4
2 changed files with 3 additions and 5 deletions

View file

@ -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;
} }

View file

@ -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>&#x2605;</div> <div id="_mark" hidden>&#x2605;</div>
<div id=_flag>&#x2691;</div> <div id="_flag" hidden>&#x2691;</div>
{fade} {fade}
<div id=qa></div> <div id="qa"></div>
{extra} {extra}
""" """