Browse Source

style: allow modifying width of normal and hovered stroke lines

pull/392/head
Dan Pasanen 8 years ago
parent
commit
51a96d34bf
  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

@ -67,7 +67,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