better wallabag in wallabag button (see #685)

This commit is contained in:
tcit 2014-05-16 15:34:13 +02:00
parent 4555c38d3b
commit 74e09e562b
2 changed files with 21 additions and 2 deletions

View file

@ -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;

View file

@ -88,7 +88,7 @@ $.fn.ready(function() {
========================================================================== */
$("article a[href^='http']").after(function() {
return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\">w</a> ";
return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\"></a> ";
});
$(".add-to-wallabag-link-after").click(function(event){