Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce00350

Browse files
sinharaksh1tRakshit Sinha
and
Rakshit Sinha
authored
Make navbar sticky (#332)
Co-authored-by: Rakshit Sinha <rakshit.sinha@oracle.com>
1 parent 48c9580 commit ce00350

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

‎src/components/Navigation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import DarkMode from '../Dark-Mode';
1515

1616
const Navigation = () => {
1717
return (
18-
<Navbar className="navbar">
18+
<Navbar className="navbar sticky">
1919
<Container>
2020
<NavbarBrand
2121
onClick={() =>

‎src/components/Navigation/styles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.navbar.sticky {
2+
position: sticky;
3+
top: 0;
4+
z-index: 1;
5+
}
6+
17
body.light-mode .navbar {
28
background-color: #f7f8f9;
39
color: #000000;

‎src/components/Table/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ body.dark-mode .modal-content {
6262
> tr th {
6363
background: white;
6464
position: sticky;
65-
top: 0;
65+
top: 50px;
6666
text-wrap: nowrap;
6767
}
6868
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /