diff options
-rwxr-xr-x | themes/baggy/css/main.css | 21 | ||||
-rwxr-xr-x | themes/default/js/saveLink.js | 2 |
2 files changed, 21 insertions, 2 deletions
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 { | |||
537 | } | 537 | } |
538 | 538 | ||
539 | /* ========================================================================== | 539 | /* ========================================================================== |
540 | 2.1 = "save a link" popup div related styles | 540 | 2.1 = "save a link" related styles |
541 | ========================================================================== */ | 541 | ========================================================================== */ |
542 | 542 | ||
543 | #bagit-form, #search-form { | 543 | #bagit-form, #search-form { |
@@ -609,6 +609,25 @@ a#bagit-form-close:hover, a#search-form-close:hover { | |||
609 | padding: 0 3px 2px 3px; | 609 | padding: 0 3px 2px 3px; |
610 | } | 610 | } |
611 | 611 | ||
612 | a.add-to-wallabag-link-after { | ||
613 | visibility: hidden; | ||
614 | position: absolute; | ||
615 | opacity: 0; | ||
616 | transition-duration: 2s; | ||
617 | transition-timing-function: ease-out; | ||
618 | } | ||
619 | |||
620 | #article article a:hover + a.add-to-wallabag-link-after, a.add-to-wallabag-link-after:hover { | ||
621 | opacity: 1; | ||
622 | visibility: visible; | ||
623 | transition-duration: .3s; | ||
624 | transition-timing-function: ease-in; | ||
625 | } | ||
626 | |||
627 | a.add-to-wallabag-link-after:after { | ||
628 | content: "w"; | ||
629 | } | ||
630 | |||
612 | #add-link-result { | 631 | #add-link-result { |
613 | font-weight: bold; | 632 | font-weight: bold; |
614 | margin-top: 10px; | 633 | 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() { | |||
88 | ========================================================================== */ | 88 | ========================================================================== */ |
89 | 89 | ||
90 | $("article a[href^='http']").after(function() { | 90 | $("article a[href^='http']").after(function() { |
91 | return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\">w</a> "; | 91 | return " <a href=\"" + $(this).attr('href') + "\" class=\"add-to-wallabag-link-after\" alt=\"add to wallabag\" title=\"add to wallabag\"></a> "; |
92 | }); | 92 | }); |
93 | 93 | ||
94 | $(".add-to-wallabag-link-after").click(function(event){ | 94 | $(".add-to-wallabag-link-after").click(function(event){ |