mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
style clozes
This commit is contained in:
parent
0530db216c
commit
c3b0d51f1c
2 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,7 @@ class CardLayout(QDialog):
|
|||
def renderPreview(self):
|
||||
c = self.card
|
||||
styles = self.model.genCSS()
|
||||
styles += "\n.cloze { font-weight: bold; color: blue; }"
|
||||
self.form.preview.setHtml(
|
||||
('<html><head>%s</head><body class="%s">' %
|
||||
(getBase(self.deck), c.cssClass())) +
|
||||
|
|
|
@ -354,6 +354,8 @@ div#filler {
|
|||
.q { margin-bottom: 1em; }
|
||||
.a { margin-top: 1em; }
|
||||
.inv { visibility: hidden; }
|
||||
|
||||
.cloze { font-weight: bold; color: blue; }
|
||||
"""
|
||||
|
||||
def _styles(self):
|
||||
|
|
Loading…
Reference in a new issue