From: tcit Date: Fri, 16 May 2014 13:34:13 +0000 (+0200) Subject: better wallabag in wallabag button (see #685) X-Git-Tag: 1.7.0^2~8^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=74e09e562ba46c52da364539aa4fc0414114ca87;p=github%2Fwallabag%2Fwallabag.git better wallabag in wallabag button (see #685) --- diff --git a/themes/baggy/css/main.css b/themes/baggy/css/main.css index 52d8ecaa..6d3a56e1 100755 --- a/themes/baggy/css/main.css +++ b/themes/baggy/css/main.css @@ -537,7 +537,7 @@ footer a { } /* ========================================================================== - 2.1 = "save a link" popup div related styles + 2.1 = "save a link" related styles ========================================================================== */ #bagit-form, #search-form { @@ -609,6 +609,25 @@ a#bagit-form-close:hover, a#search-form-close:hover { padding: 0 3px 2px 3px; } +a.add-to-wallabag-link-after { + visibility: hidden; + position: absolute; + opacity: 0; + transition-duration: 2s; + transition-timing-function: ease-out; +} + +#article article a:hover + a.add-to-wallabag-link-after, a.add-to-wallabag-link-after:hover { + opacity: 1; + visibility: visible; + transition-duration: .3s; + transition-timing-function: ease-in; +} + +a.add-to-wallabag-link-after:after { + content: "w"; +} + #add-link-result { font-weight: bold; margin-top: 10px; diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js index bee453c0..6dbce97e 100755 --- a/themes/default/js/saveLink.js +++ b/themes/default/js/saveLink.js @@ -88,7 +88,7 @@ $.fn.ready(function() { ========================================================================== */ $("article a[href^='http']").after(function() { - return " w "; + return " "; }); $(".add-to-wallabag-link-after").click(function(event){