From 15f7a7286055fd21cdac89c9386f1d750af75830 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 31 May 2016 10:12:53 +0200 Subject: [PATCH] Add stroke_opacity style, fix #321 --- pygal/css/style.css | 3 +++ pygal/style.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pygal/css/style.css b/pygal/css/style.css index c7e9c2b..cd01f06 100644 --- a/pygal/css/style.css +++ b/pygal/css/style.css @@ -93,6 +93,7 @@ {{ id }}.reactive { fill-opacity: {{ style.opacity }}; + stroke-opacity: {{ style.stroke_opacity }}; } {{ id }}.ci { @@ -102,6 +103,7 @@ {{ id }}.reactive.active, {{ id }}.active .reactive { fill-opacity: {{ style.opacity_hover }}; + stroke-opacity: {{ style.stroke_opacity_hover }}; stroke-width: 4; } @@ -164,6 +166,7 @@ {{ id }}.map-element .reactive { fill-opacity: inherit; + stroke-opacity: inherit; } {{ colors }} diff --git a/pygal/style.py b/pygal/style.py index 6ac7983..3f5d35a 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -65,6 +65,10 @@ class Style(object): opacity = '.7' opacity_hover = '.8' + + stroke_opacity = '.8' + stroke_opacity_hover = '.9' + transition = '150ms' colors = ( '#F44336', # 0