From a45c80bd902937e3deadc81023fe66e3b24cccdc Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Fri, 20 Jun 2014 10:42:32 +0200 Subject: [PATCH] Move font-family to config --- pygal/css/base.css | 12 ++++++------ pygal/style.py | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pygal/css/base.css b/pygal/css/base.css index af27119..dd380b2 100644 --- a/pygal/css/base.css +++ b/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 }}; } diff --git a/pygal/style.py b/pygal/style.py index 379256d..d56a5c0 100644 --- a/pygal/style.py +++ b/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',