Browse Source

Merge pull request #389 from smalawi/dot-alpha

Added dot_opacity style option; fixes #387
pull/340/merge
Mounier Florian 7 years ago committed by GitHub
parent
commit
1594807b72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pygal/css/graph.css
  2. 2
      pygal/style.py

3
pygal/css/graph.css

@ -107,7 +107,8 @@
{{ id }}.dot { {{ id }}.dot {
stroke-width: 1px; stroke-width: 1px;
fill-opacity: 1; fill-opacity: {{ style.dot_opacity }};
stroke-opacity: {{ style.dot_opacity }};
} }
{{ id }}.dot.active { {{ id }}.dot.active {

2
pygal/style.py

@ -73,6 +73,8 @@ class Style(object):
stroke_opacity_hover = '.9' stroke_opacity_hover = '.9'
stroke_width_hover = '4' stroke_width_hover = '4'
dot_opacity = '1'
transition = '150ms' transition = '150ms'
colors = ( colors = (
'#F44336', # 0 '#F44336', # 0

Loading…
Cancel
Save