Skip to content

Commit

Permalink
Add stroke_opacity style, fix Kozea#321
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed May 31, 2016
1 parent 6948fce commit 15f7a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pygal/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@

{{ id }}.reactive {
fill-opacity: {{ style.opacity }};
stroke-opacity: {{ style.stroke_opacity }};
}

{{ id }}.ci {
Expand All @@ -102,6 +103,7 @@
{{ id }}.reactive.active,
{{ id }}.active .reactive {
fill-opacity: {{ style.opacity_hover }};
stroke-opacity: {{ style.stroke_opacity_hover }};
stroke-width: 4;
}

Expand Down Expand Up @@ -164,6 +166,7 @@

{{ id }}.map-element .reactive {
fill-opacity: inherit;
stroke-opacity: inherit;
}

{{ colors }}
Expand Down
4 changes: 4 additions & 0 deletions pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class Style(object):

opacity = '.7'
opacity_hover = '.8'

stroke_opacity = '.8'
stroke_opacity_hover = '.9'

transition = '150ms'
colors = (
'#F44336', # 0
Expand Down

0 comments on commit 15f7a72

Please sign in to comment.