mirror of https://github.com/vtrois/kratos
feat: reduce top margin to viewport of sticky sidebar (#388)
parent
30204e0394
commit
1dffb0e459
|
@ -84,8 +84,11 @@ function theme_autoload()
|
||||||
}
|
}
|
||||||
");
|
");
|
||||||
if (kratos_option('g_sticky', false)) {
|
if (kratos_option('g_sticky', false)) {
|
||||||
$sticky_css = ".sticky-sidebar{position: sticky;top: 25px;height:100%}";
|
wp_add_inline_style('kratos', '.sticky-sidebar {
|
||||||
wp_add_inline_style('kratos', $sticky_css);
|
position: sticky;
|
||||||
|
top: 8px;
|
||||||
|
height: 100%;
|
||||||
|
}');
|
||||||
}
|
}
|
||||||
// js
|
// js
|
||||||
wp_deregister_script('jquery');
|
wp_deregister_script('jquery');
|
||||||
|
|
Loading…
Reference in New Issue