Skip to content

Commit

Permalink
reacting on document resize
Browse files Browse the repository at this point in the history
  • Loading branch information
terpimost committed Nov 12, 2023
1 parent e703bea commit 055d45b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ <h4>Enterprise</h4>
}
onPlansScroll()
pricing_tabs.addEventListener('scroll', onPlansScroll)
window.addEventListener('resize', onPlansScroll)

</script>
</body>
Expand Down
19 changes: 9 additions & 10 deletions plans.css
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,15 @@ a.neworg-button:active {
.current-plan-button {
height: 52px;
}

#plans-left-button,
#plans-right-button {
display: block;
}
#plans-left-button._hidden,
#plans-right-button._hidden{
display: none;
}
}

@media (max-width: 940px) {
Expand Down Expand Up @@ -570,16 +579,6 @@ a.neworg-button:active {
margin-bottom: 12px;
font-size: 22px;
}

#plans-left-button,
#plans-right-button {
display: block;
}
#plans-left-button._hidden,
#plans-right-button._hidden{
display: none;
}

}

@media (max-width: 700px) {
Expand Down

0 comments on commit 055d45b

Please sign in to comment.