mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-180] Prevent header from covering media viewer controls (dspace theme)
(cherry picked from commit 0208a78437
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
0d0c2dac17
commit
5f46b638e4
@@ -1,3 +1,3 @@
|
||||
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}">
|
||||
<div [class.open]="!(isNavBarCollapsed | async)" id="header-navbar-wrapper">
|
||||
<ds-themed-header></ds-themed-header>
|
||||
</div>
|
||||
|
@@ -0,0 +1,7 @@
|
||||
:host {
|
||||
// The header-navbar-wrapper should not have a z-index, otherwise it would cover the media viewer despite its higher z-index
|
||||
position: relative;
|
||||
div#header-navbar-wrapper {
|
||||
border-bottom: 5px var(--ds-header-navbar-border-bottom-color) solid;
|
||||
}
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import { HeaderNavbarWrapperComponent as BaseComponent } from '../../../../app/h
|
||||
*/
|
||||
@Component({
|
||||
selector: 'ds-header-navbar-wrapper',
|
||||
styleUrls: ['../../../../app/header-nav-wrapper/header-navbar-wrapper.component.scss'],
|
||||
styleUrls: ['header-navbar-wrapper.component.scss'],
|
||||
templateUrl: 'header-navbar-wrapper.component.html',
|
||||
})
|
||||
export class HeaderNavbarWrapperComponent extends BaseComponent {
|
||||
|
@@ -1,7 +1,9 @@
|
||||
nav.navbar {
|
||||
border-top: 1px var(--ds-header-navbar-border-top-color) solid;
|
||||
border-bottom: 5px var(--ds-header-navbar-border-bottom-color) solid;
|
||||
align-items: baseline;
|
||||
|
||||
.navbar-inner-container {
|
||||
border-top: 1px var(--ds-header-navbar-border-top-color) solid;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
@@ -16,8 +18,10 @@ nav.navbar {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
height: 0;
|
||||
z-index: var(--ds-nav-z-index);
|
||||
&.open {
|
||||
height: 100vh; //doesn't matter because wrapper is sticky
|
||||
border-bottom: 5px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user