mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Clean up unnecessary CSS rules.
This commit is contained in:
parent
dc1bfe4d20
commit
d0e1f3d26d
@ -45,7 +45,6 @@ html, div, map, dt, isindex, form {
|
||||
|
||||
body {
|
||||
display: block;
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
p, dl, multicol {
|
||||
@ -59,7 +58,7 @@ dd {
|
||||
|
||||
blockquote {
|
||||
display: block;
|
||||
margin: 1em 40px;
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
address {
|
||||
@ -74,7 +73,7 @@ center {
|
||||
|
||||
blockquote[type=cite] {
|
||||
display: block;
|
||||
margin: 1em 0px;
|
||||
margin: 1em 0em;
|
||||
border-color: blue;
|
||||
border-width: thin;
|
||||
}
|
||||
@ -234,14 +233,6 @@ th {
|
||||
|
||||
/* inlines */
|
||||
|
||||
q:before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
q:after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
b, strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ class Stylizer(object):
|
||||
for _, _, cssdict, text, _ in rules:
|
||||
try:
|
||||
selector = CSSSelector(text)
|
||||
except ExpressionError:
|
||||
except ExpressionError, e:
|
||||
continue
|
||||
for elem in selector(tree):
|
||||
self.style(elem)._update_cssdict(cssdict)
|
||||
|
Loading…
x
Reference in New Issue
Block a user