Skip to content
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

feat:sticky navbar #2973

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
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
9 changes: 7 additions & 2 deletions _styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ body {
font-weight: 400;
margin: 0;
min-height: 100vh;
overflow-x: hidden;
}

*,
Expand Down Expand Up @@ -245,6 +244,11 @@ nav {
min-width: 100%;
overflow-x: auto;
white-space: nowrap;
position: sticky;
position: -webkit-sticky;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure these two should be the other way around.

top: 0;
z-index: 10;
background-color: #fff;
}

@media (max-width: 768px) {
Expand Down Expand Up @@ -378,6 +382,7 @@ body {

#content-container {
flex-grow: 1;
overflow-x: hidden;
}

footer {
Expand Down Expand Up @@ -779,7 +784,7 @@ select,
.button {
appearance: none;
background-color: transparent;
background-image: linear-gradient(to bottom, transparent, transparent 50%, rgba(0, 0, 0, 0.04));
background-image: linear-gradient(to bottom, transparent, transparent 50%,rgba(0, 0, 0, 0.04));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this space is removed.

border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 3px;
box-shadow:
Expand Down