Merge pull request #138 from susnux/fix/small-navigation
Fix navigation for small screens
This commit is contained in:
commit
455799670c
2 changed files with 5 additions and 2 deletions
|
|
@ -10,9 +10,12 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
max-width: 100vw;
|
||||||
|
width: fit-content;
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
background: var(--color-background);
|
background: var(--color-background);
|
||||||
width: 100%;
|
border-radius: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ var $sitehead = $("#site-head");
|
||||||
if (w >= Math.floor(g) && w <= Math.ceil(h)) {
|
if (w >= Math.floor(g) && w <= Math.ceil(h)) {
|
||||||
$(".fixed-nav").fadeOut("fast");
|
$(".fixed-nav").fadeOut("fast");
|
||||||
} else if ($(window).width() > 500) {
|
} else if ($(window).width() > 500) {
|
||||||
$(".fixed-nav").fadeIn("fast");
|
$(".fixed-nav").css("display", "flex").fadeIn("fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
$post.each(function () {
|
$post.each(function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue