Browse Source

Merge pull request #130 from makinacorpus/master

Move font-family to style instead of hard-coded monospace
pull/136/head
Mounier Florian 11 years ago
parent
commit
7267eec61c
  1. 12
      pygal/css/base.css
  2. 1
      pygal/style.py

12
pygal/css/base.css

@ -23,32 +23,32 @@
*/
{{ id }}.title {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.title }};
}
{{ id }}.legends .legend text {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.legend }};
}
{{ id }}.axis text {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.label }};
}
{{ id }}.axis text.major {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.major_label }};
}
{{ id }}.series text {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.value }};
}
{{ id }}.tooltip text {
font-family: monospace;
font-family: {{ style.font_family }};
font-size: {{ font_sizes.tooltip }};
}

1
pygal/style.py

@ -35,6 +35,7 @@ class Style(object):
foreground='#999',
foreground_light='#eee',
foreground_dark='#555',
font_family='monospace',
opacity='.8',
opacity_hover='.9',
transition='250ms',

Loading…
Cancel
Save