diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-03-01 10:47:01 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-03-01 11:23:03 +0100 |
commit | 34047d23fb5e09b6bc2728f0f8827eaa038f02ea (patch) | |
tree | f13db75997d25db1cee52da3bd985259863e165b /inc/shaarli.css | |
parent | 7572cfbe9620b13569ee47337f7015bcad119332 (diff) | |
download | Shaarli-34047d23fb5e09b6bc2728f0f8827eaa038f02ea.tar.gz Shaarli-34047d23fb5e09b6bc2728f0f8827eaa038f02ea.tar.zst Shaarli-34047d23fb5e09b6bc2728f0f8827eaa038f02ea.zip |
Lazy load images with the light lib bLazy.js instead of jQuery:
* Remove jquery.lazyload lib
* Add blazy lib
* Add a bit of CSS animation
* Delete unused picwall2 template
Diffstat (limited to 'inc/shaarli.css')
-rw-r--r-- | inc/shaarli.css | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/inc/shaarli.css b/inc/shaarli.css index bb564e99..a88143ca 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css | |||
@@ -647,9 +647,21 @@ a.qrcode img { | |||
647 | float: left; | 647 | float: left; |
648 | } | 648 | } |
649 | 649 | ||
650 | .b-lazy { | ||
651 | -webkit-transition: opacity 500ms ease-in-out; | ||
652 | -moz-transition: opacity 500ms ease-in-out; | ||
653 | -o-transition: opacity 500ms ease-in-out; | ||
654 | transition: opacity 500ms ease-in-out; | ||
655 | opacity: 0; | ||
656 | } | ||
657 | .b-lazy.b-loaded { | ||
658 | opacity: 1; | ||
659 | } | ||
660 | |||
650 | .picwall_pictureframe img { | 661 | .picwall_pictureframe img { |
651 | max-width: 100%; | 662 | max-width: 100%; |
652 | height: auto; | 663 | height: auto; |
664 | color: transparent; | ||
653 | } /* Adapt the width of the image */ | 665 | } /* Adapt the width of the image */ |
654 | 666 | ||
655 | .picwall_pictureframe a { | 667 | .picwall_pictureframe a { |