Skip to content

Commit

Permalink
Move font-family to config
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jun 20, 2014
1 parent 2c5a5e9 commit a45c80b
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 a45c80b

Please sign in to comment.