style clozes

This commit is contained in:
Damien Elmes 2011-04-17 06:30:05 +09:00
parent 0530db216c
commit c3b0d51f1c
2 changed files with 3 additions and 0 deletions

View file

@ -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())) +

View file

@ -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):