Skip to content

Commit f6649e1

Browse files
Added support for changing the color of the navbar
1 parent 404ccd9 commit f6649e1

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/app/navbar/expandable-navbar-section/expandable-navbar-section.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77

88
.dropdown-menu {
9+
background-color: var(--ds-navbar-bg);
910
overflow: hidden;
1011
min-width: 100%;
1112
border-top-left-radius: 0;

src/app/navbar/navbar.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
nav.navbar {
2+
background-color: var(--ds-navbar-bg);
23
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
34
align-items: baseline;
45
}

src/styles/_custom_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
--ds-header-logo-height-xs: 50px;
2525
--ds-header-icon-color: #{$link-color};
2626
--ds-header-icon-color-hover: #{$link-hover-color};
27+
--ds-navbar-bg: var(--ds-header-bg);
2728
--ds-header-navbar-border-top-color: #{$white};
2829
--ds-header-navbar-border-bottom-color: #{$gray-400};
2930
--ds-navbar-link-color: #{$cyan};

src/themes/dspace/app/navbar/navbar.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ nav.navbar {
44
align-items: baseline;
55
}
66

7+
.navbar-nav {
8+
background-color: var(--ds-navbar-bg);
9+
}
10+
711
/** Mobile menu styling **/
812
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
913
.navbar {

0 commit comments

Comments
 (0)