mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
All draggable rows now have transparent border bottom, to prevent deck names from fidgeting during drag/drop
This commit is contained in:
parent
009d0c18e4
commit
b2608f5ea4
1 changed files with 7 additions and 4 deletions
|
@ -48,16 +48,19 @@ class DeckBrowser(object):
|
||||||
# HTML generation
|
# HTML generation
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
_dragIndicatorBorderWidth = "1px"
|
||||||
|
|
||||||
_css = """
|
_css = """
|
||||||
tr { font-size: 12px; }
|
tr { font-size: 12px; }
|
||||||
a.deck { color: #000; text-decoration: none; }
|
a.deck { color: #000; text-decoration: none; }
|
||||||
a.deck:hover { text-decoration: underline; }
|
a.deck:hover { text-decoration: underline; }
|
||||||
tr.deck td { border-bottom: thick solid transparent; }
|
tr.deck td { border-bottom: %(width)s solid transparent; }
|
||||||
|
tr.top-level-drag-row td { border-bottom: %(width)s solid transparent; }
|
||||||
td.opts { white-space: nowrap; }
|
td.opts { white-space: nowrap; }
|
||||||
tr.drag-hover td { border-bottom: 1px solid #aaa; }
|
tr.drag-hover td { border-bottom: %(width)s solid #aaa; }
|
||||||
.extra { font-size: 90%; }
|
.extra { font-size: 90%%; }
|
||||||
body { margin: 1em; -webkit-user-select: none; }
|
body { margin: 1em; -webkit-user-select: none; }
|
||||||
"""
|
""" % dict(width=_dragIndicatorBorderWidth)
|
||||||
|
|
||||||
_body = """
|
_body = """
|
||||||
<center>
|
<center>
|
||||||
|
|
Loading…
Reference in a new issue