Skip to content

Commit

Permalink
Made topbar sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwoo-j committed May 23, 2024
1 parent c2b2d92 commit 9d1e4d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -898,8 +898,12 @@ $btn-mb: 0.5rem;
/* --- top-bar --- */

#topbar-wrapper {
height: $topbar-height;
background-color: var(--topbar-bg);
position: -webkit-sticky; /* For Safari */
position: sticky;
top: 0;
z-index: 1000; /* Ensures it stays above other elements */
height: $topbar-height; /* Existing height */
background-color: var(--topbar-bg); /* Existing background color */
}

#topbar {
Expand Down
2 changes: 1 addition & 1 deletion _sass/colors/typography-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
--avatar-border-color: rgb(206, 206, 206, 0.9);

/* Topbar */
--topbar-bg: rgb(27, 27, 30, 0.64);
--topbar-bg: rgb(27, 27, 30);
--topbar-text-color: var(--text-color);
--search-border-color: rgb(55, 55, 55);
--search-icon-color: rgb(100, 102, 105);
Expand Down
2 changes: 1 addition & 1 deletion _sass/colors/typography-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
--avatar-border-color: white;

/* Topbar */
--topbar-bg: rgb(255, 255, 255, 0.7);
--topbar-bg: rgb(255, 255, 255);
--topbar-text-color: rgb(78, 78, 78);
--search-border-color: rgb(240, 240, 240);
--search-icon-color: #c2c6cc;
Expand Down

0 comments on commit 9d1e4d0

Please sign in to comment.