mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
Merge pull request #693 from tcitworld/dev
better wallabag in wallabag button (see #685)
This commit is contained in:
commit
7d5d9ea449
2 changed files with 21 additions and 2 deletions
|
@ -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 {
|
#bagit-form, #search-form {
|
||||||
|
@ -609,6 +609,25 @@ a#bagit-form-close:hover, a#search-form-close:hover {
|
||||||
padding: 0 3px 2px 3px;
|
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 {
|
#add-link-result {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -88,7 +88,7 @@ $.fn.ready(function() {
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
$("article a[href^='http']").after(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){
|
$(".add-to-wallabag-link-after").click(function(event){
|
||||||
|
|
Loading…
Reference in a new issue