diff --git a/src/css/link.css b/src/css/link.css index 67d30304..1a7061f1 100755 --- a/src/css/link.css +++ b/src/css/link.css @@ -76,7 +76,7 @@ margin-right: 0.5em; } -.is-link-item-hoverscale .link-item.link-empty:hover { +.is-link-item-hoverscale-show .link-item.link-empty:hover { transform: scale(1); } @@ -102,13 +102,13 @@ outline: 0; } -.is-link-item-hoverscale .link-item:focus-within, -.is-link-item-hoverscale .link-item:focus, -.is-link-item-hoverscale .link-item:hover { +.is-link-item-hoverscale-show .link-item:focus-within, +.is-link-item-hoverscale-show .link-item:focus, +.is-link-item-hoverscale-show .link-item:hover { transform: scale(1.05); } -.is-link-item-hoverscale .link-item:active { +.is-link-item-hoverscale-show .link-item:active { transform: scale(1.04); transition: none; } diff --git a/src/js/control.js b/src/js/control.js index 3e49e23f..a1fa9ad8 100644 --- a/src/js/control.js +++ b/src/js/control.js @@ -2105,7 +2105,7 @@ var control = (function() { } }, { element: helper.e(".control-link-item-hoverscale"), - path: "link.item.hoverScale", + path: "link.item.hoverScale.show", type: "checkbox", func: function() { render.class(); @@ -2717,7 +2717,7 @@ var control = (function() { helper.removeClass(html, "is-link-item-url-show"); helper.removeClass(html, "is-link-item-line-show"); helper.removeClass(html, "is-link-item-shadow-show"); - helper.removeClass(html, "is-link-item-hoverscale"); + helper.removeClass(html, "is-link-item-hoverscale-show"); helper.removeClass(html, "is-link-item-alignment-left"); helper.removeClass(html, "is-link-item-alignment-center"); helper.removeClass(html, "is-link-item-alignment-right"); @@ -2748,8 +2748,8 @@ var control = (function() { if (state.get().link.item.shadow.show) { helper.addClass(html, "is-link-item-shadow-show"); }; - if (state.get().link.item.hoverScale) { - helper.addClass(html, "is-link-item-hoverscale"); + if (state.get().link.item.hoverScale.show) { + helper.addClass(html, "is-link-item-hoverscale-show"); }; if (state.get().link.item.border > 0) { helper.addClass(html, "is-link-item-border");