Additional fixes for lazyload

This commit is contained in:
alistair3149 2019-08-16 00:21:46 -04:00
parent f50789508c
commit 1ae5b6ecf5
2 changed files with 13 additions and 1 deletions

View file

@ -55,7 +55,7 @@ class CitizenHooks {
$attribs['data-src'] = $attribs['src'];
// Replace src with small size image
$attribs['src'] = preg_replace('/\/+(\d+)px-/s', '/10px-', $attribs['src']);
$attribs['src'] = preg_replace('#/\d+px-#', '/10px-', $attribs['src']);
// $attribs['src'] = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
if (isset($attribs['srcset'])) {

View file

@ -675,6 +675,17 @@ figcaption,
>a {
display: block;
overflow: hidden;
width: fit-content; // Get rid of extra pixels from thumbinner
transition: @transition-box-shadow-quick!important;
&:hover:not(.lazy) {
background: 0!important;
.boxshadow(2);
}
&:before {
content: none;
}
&.new {
padding: @margin-side / 2;
@ -690,6 +701,7 @@ figcaption,
transition: @transition-filter;
&.lazy {
display: block;
background-color: @base-90;
filter: blur(20px);
}