mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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
|
||||
##########################################################################
|
||||
|
||||
_dragIndicatorBorderWidth = "1px"
|
||||
|
||||
_css = """
|
||||
tr { font-size: 12px; }
|
||||
a.deck { color: #000; text-decoration: none; }
|
||||
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; }
|
||||
tr.drag-hover td { border-bottom: 1px solid #aaa; }
|
||||
.extra { font-size: 90%; }
|
||||
tr.drag-hover td { border-bottom: %(width)s solid #aaa; }
|
||||
.extra { font-size: 90%%; }
|
||||
body { margin: 1em; -webkit-user-select: none; }
|
||||
"""
|
||||
""" % dict(width=_dragIndicatorBorderWidth)
|
||||
|
||||
_body = """
|
||||
<center>
|
||||
|
|
Loading…
Reference in a new issue