mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 08:10:45 +00:00
Additional fixes for lazyload
This commit is contained in:
parent
f50789508c
commit
1ae5b6ecf5
|
@ -55,7 +55,7 @@ class CitizenHooks {
|
||||||
$attribs['data-src'] = $attribs['src'];
|
$attribs['data-src'] = $attribs['src'];
|
||||||
|
|
||||||
// Replace src with small size image
|
// 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';
|
// $attribs['src'] = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
||||||
|
|
||||||
if (isset($attribs['srcset'])) {
|
if (isset($attribs['srcset'])) {
|
||||||
|
|
|
@ -675,6 +675,17 @@ figcaption,
|
||||||
>a {
|
>a {
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
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 {
|
&.new {
|
||||||
padding: @margin-side / 2;
|
padding: @margin-side / 2;
|
||||||
|
@ -690,6 +701,7 @@ figcaption,
|
||||||
transition: @transition-filter;
|
transition: @transition-filter;
|
||||||
|
|
||||||
&.lazy {
|
&.lazy {
|
||||||
|
display: block;
|
||||||
background-color: @base-90;
|
background-color: @base-90;
|
||||||
filter: blur(20px);
|
filter: blur(20px);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue