Skip to content

Commit

Permalink
Merge pull request Kozea#130 from makinacorpus/master
Browse files Browse the repository at this point in the history
Move font-family to style instead of hard-coded monospace
  • Loading branch information
paradoxxxzero committed Jun 23, 2014
2 parents 2c5a5e9 + a45c80b commit 7267eec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygal/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 }};
}

Expand Down
1 change: 1 addition & 0 deletions pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(
foreground='#999',
foreground_light='#eee',
foreground_dark='#555',
font_family='monospace',
opacity='.8',
opacity_hover='.9',
transition='250ms',
Expand Down

0 comments on commit 7267eec

Please sign in to comment.