]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
better wallabag in wallabag button (see #685) 693/head
authortcit <tcit@tcit.fr>
Fri, 16 May 2014 13:34:13 +0000 (15:34 +0200)
committertcit <tcit@tcit.fr>
Fri, 16 May 2014 13:34:13 +0000 (15:34 +0200)
themes/baggy/css/main.css
themes/default/js/saveLink.js

index 52d8ecaa4320eaaa146a7019430ebde1ccd847e6..6d3a56e1766ebdfb6a8d45d335ca536065328065 100755 (executable)
@@ -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;
index bee453c09f9bce6f926d69800469a313fbcd5a1c..6dbce97eac5cf1ba1a62be4091750de86473e706 100755 (executable)
@@ -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){