Skip to content

Commit

Permalink
modify the navbar for the dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Oct 11, 2023
1 parent f51695a commit d37decb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions ...artbootstrap-clean-blog/scss/_navbar.scss → _sass/navbar.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Styling for the navbar
#mainNav {
position: absolute;
border-bottom: 1px solid $gray-200;
background-color: white;
border-bottom: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
@include sans-serif-font;
.navbar-brand {
font-weight: 800;
color: $gray-800;
color: var(--bs-body-color);
}
.navbar-toggler {
font-size: 12px;
font-weight: 800;
padding: 13px;
text-transform: uppercase;
color: $gray-800;
color: var(--bs-body-color);
}
.navbar-nav {
> li.nav-item {
Expand All @@ -33,7 +33,7 @@
color: $white;
&:focus,
&:hover {
color: fade-out($white, .2);
color: $primary;
}
}
.navbar-nav {
Expand All @@ -43,7 +43,7 @@
color: $white;
&:focus,
&:hover {
color: fade-out($white, .2);
color: $primary;
}
}
}
Expand All @@ -63,14 +63,14 @@
&.is-fixed {
/* when the user scrolls down, we hide the header right above the viewport */
position: fixed;
top: -67px;
top: -70px;
-webkit-transition: -webkit-transform 0.2s;
-moz-transition: -moz-transform 0.2s;
transition: transform 0.2s;
border-bottom: 1px solid darken($white, .05);
background-color: fade-out($white, .1);
border-bottom: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
.navbar-brand {
color: $gray-900;
color: var(--bs-body-color);
&:focus,
&:hover {
color: $primary;
Expand All @@ -79,7 +79,7 @@
.navbar-nav {
> li.nav-item {
> a {
color: $gray-900;
color: var(--bs-body-color);
&:focus,
&:hover {
color: $primary;
Expand Down
2 changes: 2 additions & 0 deletions _sass/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Import Core Clean Blog SCSS
@import "../assets/vendor/startbootstrap-clean-blog/scss/clean-blog.scss";

@import "navbar.scss";

// Our css
body {
color: var(--bs-body-color);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import "variables.scss";
@import "mixins.scss";
@import "global.scss";
@import "navbar.scss";
@import "masthead.scss";
@import "post.scss";
@import "contact.scss";
Expand Down

0 comments on commit d37decb

Please sign in to comment.