Update bootstrap, cleanup css, make pages more responsive
This commit is contained in:
committed by
Andreas Hocevar
parent
4eab8ecd40
commit
9616dee9f7
7
config/jsdoc/api/template/static/scripts/bootstrap.bundle.min.js
vendored
Normal file
7
config/jsdoc/api/template/static/scripts/bootstrap.bundle.min.js
vendored
Normal file
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user