Skip to content

Commit

Permalink
Added support for changing the color of the navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Aug 16, 2023
1 parent 404ccd9 commit f6649e1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}

.dropdown-menu {
background-color: var(--ds-navbar-bg);
overflow: hidden;
min-width: 100%;
border-top-left-radius: 0;
Expand Down
1 change: 1 addition & 0 deletions src/app/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
nav.navbar {
background-color: var(--ds-navbar-bg);
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
align-items: baseline;
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
--ds-header-logo-height-xs: 50px;
--ds-header-icon-color: #{$link-color};
--ds-header-icon-color-hover: #{$link-hover-color};
--ds-navbar-bg: var(--ds-header-bg);
--ds-header-navbar-border-top-color: #{$white};
--ds-header-navbar-border-bottom-color: #{$gray-400};
--ds-navbar-link-color: #{$cyan};
Expand Down
4 changes: 4 additions & 0 deletions src/themes/dspace/app/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ nav.navbar {
align-items: baseline;
}

.navbar-nav {
background-color: var(--ds-navbar-bg);
}

/** Mobile menu styling **/
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
.navbar {
Expand Down

0 comments on commit f6649e1

Please sign in to comment.