diff --git a/aqt/main.py b/aqt/main.py index 9211522ba..42af82127 100755 --- a/aqt/main.py +++ b/aqt/main.py @@ -157,11 +157,20 @@ body { background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#bbb)); margin: 2em; } a:hover { background-color: #aaa; } -.but { font-size: 80%; padding: 3; background-color: #ccc; - border-radius: 5px; color: #000; margin: 0 5 0 5; text-decoration: - none; display: inline-block; --webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); -border: 1px solid #aaa; +.but { + -webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); + -webkit-user-drag: none; + -webkit-user-select: none; + background-color: #ccc; + border-radius: 5px; + border: 1px solid #aaa; + color: #000; + display: inline-block; + font-size: 80%; + margin: 0 5 0 5; + padding: 3; + text-decoration: none; + text-align: center; } .but:focus, .but:hover { background-color: #aaa; } .gbut { background-color: #7c7; } diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 0a40a79a8..bc9a9b7fe 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -62,15 +62,13 @@ class Reviewer(object): _css = """ a.ansbut { - display: block; position: fixed; - bottom: 1em; width: 250px; left: 50%; margin-left: -125px; - height: 40px; background-color: #ccc; - border-radius: 5px; - text-align: center; - color: #000; text-decoration: none; - -webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); - border: 1px solid #aaa; - + bottom: 1em; + height: 40px; + left: 50%; + margin-left: -125px; + position: fixed; + width: 250px; + font-size: 100%; } a.ansbut:focus { background: #c7c7c7; @@ -78,16 +76,15 @@ background: #c7c7c7; div.ansbut { position: relative; top: 25%; } -div#filler { - height: 20px; -} -""" - def _renderQA(self, card, text): - # we want to include enough space at the bottom to allow for the - # answer buttons - buf = "
" - self.web.stdHtml(text+buf, self._styles(), bodyClass=card.cssClass()) +div#filler { + height: 30px; +} + +.q { margin-bottom: 1em; } +.a { margin-top: 1em; } +.inv { visibility: hidden; } +""" def _styles(self): css = self.mw.sharedCSS @@ -99,9 +96,27 @@ div#filler { # Showing the question ########################################################################## - _qHtml = """ + _revHtml = """ +
%(q)s
-%(but)s"""
+ + +%(a)s + |