kopia lustrzana https://github.com/friendica/friendica
Frio: Enable stiky aside only on desktop-size windows.
"Hack" to fix the "scroll back to top" problem with chrome-based browsers, sticky-kit and off-canvas asidepull/3472/head
rodzic
0afc732059
commit
0ffe426ff1
|
@ -126,9 +126,6 @@ code {
|
|||
aside.canvas-slid::before {
|
||||
opacity: 1;
|
||||
}
|
||||
aside + div {
|
||||
display:none!important;
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
|
|
|
@ -317,8 +317,9 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
/*
|
||||
* Sticky aside on page scroll
|
||||
* Sticky aside on page scroll, only on desktop
|
||||
*/
|
||||
if ($(window).width() > 976) {
|
||||
$("aside").stick_in_parent({
|
||||
offset_top: 100, // px, header + tab bar + spacing
|
||||
recalc_every: 10
|
||||
|
@ -328,6 +329,7 @@ $(document).ready(function(){
|
|||
$("aside").on("click", function(){
|
||||
$(document.body).trigger("sticky_kit:recalc");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function openClose(theID) {
|
||||
|
|
Ładowanie…
Reference in New Issue