Skip to content

Feat: Add persistence to the ad banner with local storage #707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: smooth transition
  • Loading branch information
byron-okta committed Oct 4, 2024
commit ee6c21c6871911f6c69442d75b48f7723cbb0254
10 changes: 6 additions & 4 deletions stylus/website/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ body {

&.top-banner-open {
margin-top: 5px;
transition: all 0.2s linear;
transition: all 0.4s linear;

+breakpoint('tablet') {
margin-top: 48px;
Expand Down Expand Up @@ -1848,13 +1848,14 @@ footer {
width: 100%;
height: 48px;
z-index: 100;
transition: all 0.4s linear;

&.closed {
visibility: hidden;
height: 0;
opacity: 0;
padding: 0;
transition: all 0.1s linear;
transition: all 0.4s linear;
}
}

Expand All @@ -1875,13 +1876,14 @@ footer {
left: 0;
right: 0;
overflow: hidden;
transition: all 0.4s linear;

&.closed {
visibility: hidden;
height: 0;
opacity: 0;
padding: 0;
transition: all 0.2s linear;
transition: all 0.4s linear;
}

.top-banner-container {
Expand Down Expand Up @@ -1947,6 +1949,6 @@ footer {

&.hide {
height: 0;
transition: all 0.2s linear;
transition: all 0.4s linear;
}
}