Browse Source

Add stroke_opacity style, fix #321

pull/337/head
Florian Mounier 9 years ago
parent
commit
15f7a72860
  1. 3
      pygal/css/style.css
  2. 4
      pygal/style.py

3
pygal/css/style.css

@ -93,6 +93,7 @@
{{ id }}.reactive { {{ id }}.reactive {
fill-opacity: {{ style.opacity }}; fill-opacity: {{ style.opacity }};
stroke-opacity: {{ style.stroke_opacity }};
} }
{{ id }}.ci { {{ id }}.ci {
@ -102,6 +103,7 @@
{{ id }}.reactive.active, {{ id }}.reactive.active,
{{ id }}.active .reactive { {{ id }}.active .reactive {
fill-opacity: {{ style.opacity_hover }}; fill-opacity: {{ style.opacity_hover }};
stroke-opacity: {{ style.stroke_opacity_hover }};
stroke-width: 4; stroke-width: 4;
} }
@ -164,6 +166,7 @@
{{ id }}.map-element .reactive { {{ id }}.map-element .reactive {
fill-opacity: inherit; fill-opacity: inherit;
stroke-opacity: inherit;
} }
{{ colors }} {{ colors }}

4
pygal/style.py

@ -65,6 +65,10 @@ class Style(object):
opacity = '.7' opacity = '.7'
opacity_hover = '.8' opacity_hover = '.8'
stroke_opacity = '.8'
stroke_opacity_hover = '.9'
transition = '150ms' transition = '150ms'
colors = ( colors = (
'#F44336', # 0 '#F44336', # 0

Loading…
Cancel
Save