forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87bc923
commit 51f65ca
Showing
7 changed files
with
81 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
header { | ||
background-color: var(--ds-header-bg); | ||
} | ||
:host { | ||
header { | ||
background-color: var(--ds-header-bg); | ||
} | ||
|
||
.navbar-brand img { | ||
max-height: var(--ds-header-logo-height); | ||
max-width: 100%; | ||
@media screen and (max-width: map-get($grid-breakpoints, sm)) { | ||
max-height: var(--ds-header-logo-height-xs); | ||
.navbar-brand img { | ||
max-height: var(--ds-header-logo-height); | ||
max-width: 100%; | ||
@media screen and (max-width: map-get($grid-breakpoints, sm)) { | ||
max-height: var(--ds-header-logo-height-xs); | ||
} | ||
} | ||
} | ||
|
||
.navbar-toggler .navbar-toggler-icon { | ||
background-image: none !important; | ||
line-height: 1.5; | ||
} | ||
.navbar-toggler .navbar-toggler-icon { | ||
background-image: none !important; | ||
line-height: 1.5; | ||
} | ||
|
||
.navbar-toggler { | ||
border: none; | ||
color: var(--ds-header-icon-color); | ||
.navbar-toggler { | ||
border: none; | ||
color: var(--ds-header-icon-color); | ||
|
||
&:hover, &:focus { | ||
color: var(--ds-header-icon-color-hover); | ||
&:hover, &:focus { | ||
color: var(--ds-header-icon-color-hover); | ||
} | ||
} | ||
} | ||
|
||
.navbar { | ||
display: flex; | ||
gap: calc(var(--bs-spacer) / 3); | ||
align-items: center; | ||
.navbar { | ||
display: flex; | ||
gap: calc(var(--bs-spacer) / 3); | ||
align-items: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,51 @@ | ||
nav.navbar { | ||
:host { | ||
nav.navbar { | ||
background-color: var(--ds-navbar-bg); | ||
align-items: baseline; | ||
} | ||
border: solid 5px red !important; | ||
} | ||
|
||
/** Mobile menu styling **/ | ||
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) { | ||
/** Mobile menu styling **/ | ||
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) { | ||
.navbar { | ||
width: 100%; | ||
background-color: var(--bs-white); | ||
position: absolute; | ||
overflow: hidden; | ||
height: 0; | ||
z-index: var(--ds-nav-z-index); | ||
&.open { | ||
height: auto; | ||
min-height: 100vh; //doesn't matter because wrapper is sticky | ||
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border | ||
} | ||
width: 100%; | ||
background-color: var(--bs-white); | ||
position: absolute; | ||
overflow: hidden; | ||
height: 0; | ||
z-index: var(--ds-nav-z-index); | ||
&.open { | ||
height: auto; | ||
min-height: 100vh; //doesn't matter because wrapper is sticky | ||
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media screen and (min-width: map-get($grid-breakpoints, md)) { | ||
@media screen and (min-width: map-get($grid-breakpoints, md)) { | ||
.reset-padding-md { | ||
margin-left: calc(var(--bs-spacer) / -2); | ||
margin-right: calc(var(--bs-spacer) / -2); | ||
margin-left: calc(var(--bs-spacer) / -2); | ||
margin-right: calc(var(--bs-spacer) / -2); | ||
} | ||
} | ||
} | ||
|
||
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */ | ||
.navbar-expand-md.navbar-container { | ||
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */ | ||
.navbar-expand-md.navbar-container { | ||
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) { | ||
> .navbar-inner-container { | ||
padding: 0 var(--bs-spacer); | ||
} | ||
padding: 0; | ||
> .navbar-inner-container { | ||
padding: 0 var(--bs-spacer); | ||
} | ||
padding: 0; | ||
} | ||
} | ||
} | ||
|
||
.navbar-nav { | ||
::ng-deep a.nav-link { | ||
color: var(--ds-navbar-link-color); | ||
.navbar-nav { | ||
::ng-deep a.nav-link { | ||
color: var(--ds-navbar-link-color); | ||
|
||
&:hover, &:focus { | ||
color: var(--ds-navbar-link-color-hover); | ||
&:hover, &:focus { | ||
color: var(--ds-navbar-link-color-hover); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters