Browse Source

Merge pull request #392 from invisiblek/master

style: allow modifying width of normal and hovered stroke lines
pull/340/merge
Mounier Florian 7 years ago committed by GitHub
parent
commit
a42cf70551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pygal/css/style.css
  2. 2
      pygal/style.py

3
pygal/css/style.css

@ -94,6 +94,7 @@
{{ id }}.reactive {
fill-opacity: {{ style.opacity }};
stroke-opacity: {{ style.stroke_opacity }};
stroke-width: {{ style.stroke_width }};
}
{{ id }}.ci {
@ -104,7 +105,7 @@
{{ id }}.active .reactive {
fill-opacity: {{ style.opacity_hover }};
stroke-opacity: {{ style.stroke_opacity_hover }};
stroke-width: 4;
stroke-width: {{ style.stroke_width_hover }};
}
{{ id }}.ci .reactive.active {

2
pygal/style.py

@ -69,7 +69,9 @@ class Style(object):
opacity_hover = '.8'
stroke_opacity = '.8'
stroke_width = '1'
stroke_opacity_hover = '.9'
stroke_width_hover = '4'
transition = '150ms'
colors = (

Loading…
Cancel
Save