Make style generator handle the default section properly. #3
@ -414,6 +414,10 @@ def get_option_groups():
|
|||||||
def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, indent=None):
|
def make_style(name, font=None, size=None, is_bold=None, is_centered=None, is_upper=None, indent=None):
|
||||||
"""Build a CSS style"""
|
"""Build a CSS style"""
|
||||||
styles = []
|
styles = []
|
||||||
|
if name == 'default':
|
||||||
|
styles.append('html, body, * {')
|
||||||
|
else:
|
||||||
|
styles.append('.{name} {{'.format(name=name))
|
||||||
if font:
|
if font:
|
||||||
styles.append(' font-family: \'{font}\';'.format(font=font))
|
styles.append(' font-family: \'{font}\';'.format(font=font))
|
||||||
if size:
|
if size:
|
||||||
|
Loading…
Reference in New Issue
Block a user