Update bootstrap, cleanup css, make pages more responsive

This commit is contained in:
jeanpierre
2020-07-22 22:57:44 +02:00
committed by Andreas Hocevar
parent 4eab8ecd40
commit 9616dee9f7
23 changed files with 337 additions and 515 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -237,14 +237,27 @@ $(function () {
search.manualToggle(clsItem, show);
});
// Auto resizing on navigation
// Auto resizing on navigation
var _onResize = function () {
var height = $(window).height();
var height_w = $(window).height();
var height_s = $('section').height();
var $el = $('.navigation');
$el.height(height).find('.navigation-list').height(height - 133);
};
var dif_h = height_w - height_s;
if (window.matchMedia("(min-width: 768px)").matches) {
if (dif_h >=0){
$('.navigation').height(height_s+dif_h+74);
$('.navigation-list').height(height_s+dif_h)
}
else {
$('.navigation').height(height_s+74);
$('.navigation-list').height(height_s-60);
}
}
else{
$('.navigation').height(220);
$('.navigation-list').height(140);
}
}
$(window).on('resize', _onResize);
_onResize();