mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -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):
|
def renderPreview(self):
|
||||||
c = self.card
|
c = self.card
|
||||||
styles = self.model.genCSS()
|
styles = self.model.genCSS()
|
||||||
|
styles += "\n.cloze { font-weight: bold; color: blue; }"
|
||||||
self.form.preview.setHtml(
|
self.form.preview.setHtml(
|
||||||
('<html><head>%s</head><body class="%s">' %
|
('<html><head>%s</head><body class="%s">' %
|
||||||
(getBase(self.deck), c.cssClass())) +
|
(getBase(self.deck), c.cssClass())) +
|
||||||
|
|
|
@ -354,6 +354,8 @@ div#filler {
|
||||||
.q { margin-bottom: 1em; }
|
.q { margin-bottom: 1em; }
|
||||||
.a { margin-top: 1em; }
|
.a { margin-top: 1em; }
|
||||||
.inv { visibility: hidden; }
|
.inv { visibility: hidden; }
|
||||||
|
|
||||||
|
.cloze { font-weight: bold; color: blue; }
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _styles(self):
|
def _styles(self):
|
||||||
|
|
Loading…
Reference in a new issue