Skip to content

Commit

Permalink
Merge pull request #2441 from alexandrevryghem/header-and-navbar-css-…
Browse files Browse the repository at this point in the history
…fixes_contribute-7.6

Minor css variables fixes for header & navbar
  • Loading branch information
tdonohue authored Oct 26, 2023
2 parents 1d7147e + 2ca2a38 commit be59255
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/breadcrumbs/breadcrumbs.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.breadcrumb {
border-radius: 0;
margin-top: calc(-1 * var(--ds-content-spacing));
padding-bottom: var(--ds-content-spacing / 3);
padding-top: var(--ds-content-spacing / 3);
padding-bottom: calc(var(--ds-content-spacing) / 3);
padding-top: calc(var(--ds-content-spacing) / 3);
background-color: var(--ds-breadcrumb-bg);
}

Expand Down
4 changes: 4 additions & 0 deletions src/app/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
header {
background-color: var(--ds-header-bg);
}

.navbar-brand img {
max-height: var(--ds-header-logo-height);
max-width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@
}

.dropdown-menu {
background-color: var(--ds-expandable-navbar-bg);
overflow: hidden;
min-width: 100%;
border-top-left-radius: 0;
border-top-right-radius: 0;
::ng-deep a.nav-link {
color: var(--ds-expandable-navbar-link-color) !important;
padding-right: var(--bs-spacer);
padding-left: var(--bs-spacer);
white-space: nowrap;

&:hover, &:focus {
color: var(--ds-expandable-navbar-link-color-hover) !important;
}
}
}

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
4 changes: 4 additions & 0 deletions src/styles/_custom_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
--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};
--ds-navbar-link-color-hover: #{darken($cyan, 15%)};
--ds-expandable-navbar-bg: var(--ds-navbar-bg);
--ds-expandable-navbar-link-color: var(--ds-navbar-link-color);
--ds-expandable-navbar-link-color-hover: var(--ds-navbar-link-color-hover);

$admin-sidebar-bg: darken(#2B4E72, 17%);
$admin-sidebar-active-bg: darken($admin-sidebar-bg, 3%);
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 be59255

Please sign in to comment.