Skip to content

Commit

Permalink
Make Kozea#130 work
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Jun 23, 2014
1 parent 66ba614 commit 383777c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
13 changes: 6 additions & 7 deletions pygal/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,35 @@
*/

{{ id }}.title {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.title }};
}

{{ id }}.legends .legend text {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.legend }};
}

{{ id }}.axis text {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.label }};
}

{{ id }}.axis text.major {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.major_label }};
}

{{ id }}.series text {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.value }};
}

{{ id }}.tooltip text {
font-family: {{ style.font_family }};
font-family: "{{ style.font_family }}";
font-size: {{ font_sizes.tooltip }};
}

{{ id }}text.no_data {
font-size: {{ font_sizes.no_data }};
}

3 changes: 2 additions & 1 deletion pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
foreground='#999',
foreground_light='#eee',
foreground_dark='#555',
font_family='monospace',
font_family='monospace', # Monospaced font is highly encouraged
opacity='.8',
opacity_hover='.9',
transition='250ms',
Expand All @@ -49,6 +49,7 @@ def __init__(
self.foreground = foreground
self.foreground_light = foreground_light
self.foreground_dark = foreground_dark
self.font_family = font_family
self.opacity = opacity
self.opacity_hover = opacity_hover
self.transition = transition
Expand Down

0 comments on commit 383777c

Please sign in to comment.