Less stroke shape jitter.
This commit is contained in:
parent
4a8345cf99
commit
e7e13160d9
|
@ -60,7 +60,7 @@ svg {
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<style>
|
<style>
|
||||||
polygon { stroke-width: 5px; }
|
polygon { stroke-width: 1px; }
|
||||||
</style>
|
</style>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
|
@ -273,6 +273,7 @@ function activateColor(el) {
|
||||||
// Force its stroke to be black. (Doing this with CSS doesn't work; the
|
// Force its stroke to be black. (Doing this with CSS doesn't work; the
|
||||||
// hover state is broken by mutating the DOM.)
|
// hover state is broken by mutating the DOM.)
|
||||||
el.style.stroke = 'black';
|
el.style.stroke = 'black';
|
||||||
|
el.style.strokeWidth = '5px';
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://stackoverflow.com/a/5624139/91238
|
// https://stackoverflow.com/a/5624139/91238
|
||||||
|
|
Loading…
Reference in New Issue