Skip to content

Commit

Permalink
Merge pull request #292 from Xpirix/fix_news_link
Browse files Browse the repository at this point in the history
Fix news link on mobile
  • Loading branch information
timlinux authored Jun 27, 2024
2 parents c38fe98 + 5497c52 commit a4f62ef
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion themes/hugo-bulma-blocks-theme/assets/js/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ window.onscroll = function () {
if (prevScrollpos > currentScrollPos) {
document.getElementById("context").style.top = "4rem";
} else {
document.getElementById("context").style.top = "0px";
document.getElementById("context").style.top = "-2em";
}
prevScrollpos = currentScrollPos;
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
top: 4rem
z-index: 100
transition: top 0.3s
@media screen and (max-width: 768px)
height: 6em
.container
@media screen and (max-width: 768px)
flex-direction: column
gap: 10px

input
background: #223745
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
height: 26px
align-items: center
+mobile
max-width: calc( 100% - 150px )
max-width: unset
a
color: $primary5
overflow: hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ $hero-colors: $colors !default
justify-content: space-between
padding-top: 40px
margin-top: -40px
@media screen and (max-width: 768px)
padding-top: 60px
margin-top: -40px

.navbar
background: none
.tabs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import "../utilities/mixins"

$section-padding: 3rem 1.5rem !default
$section-padding: 5rem 1.5rem !default
$section-padding-desktop: 3rem 3rem !default
$section-padding-medium: 9rem 4.5rem !default
$section-padding-large: 18rem 6rem !default
Expand Down

0 comments on commit a4f62ef

Please sign in to comment.