-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHORE: Removed dependency to component libraries menu header due to d…
…eprecation
- Loading branch information
Showing
8 changed files
with
131 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="header"> | ||
<div class="nav "> | ||
<div class="brand-bar"> | ||
<img class="full-height left mr-05" alt="{{brandName}}" [src]="brandLogoSource" /> | ||
<h2 class="brand-name">{{brandName}}</h2> | ||
</div> | ||
<ul class="main-menu block"> | ||
<ng-content select=".menu"></ng-content> | ||
</ul> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@import "variables"; | ||
@import "mixins"; | ||
|
||
$application-menu-background-color: #fff; | ||
$application-menu-brand-weight: 900; | ||
$application-menu-brand-color: $brand-teritiary; | ||
$brand-name-font: $base-heading-font-family-alternate !default; | ||
|
||
:host { | ||
position: fixed; | ||
width: 100%; | ||
top: 0px;; | ||
left: 0px; | ||
z-index: 1000; | ||
background-color: $application-menu-background-color; | ||
padding: 0px; | ||
margin: 0; | ||
border-bottom: 1px solid #E3E5E6; | ||
border-top: 1px solid #E3E5E6; | ||
border-radius: 0px 0px 5px 5px; | ||
z-index: 1005; | ||
|
||
.nav { | ||
display: block; | ||
justify-content: center; | ||
height: 100%; | ||
position: relative; | ||
padding: 0; | ||
|
||
.brand-bar { | ||
height: 25px; | ||
float: right; | ||
margin-right: 5px; | ||
|
||
img { | ||
margin-top: 3px; | ||
} | ||
} | ||
|
||
.brand-name { | ||
float: left; | ||
font-family: $brand-name-font; | ||
margin-top: -2px; | ||
font-weight: $application-menu-brand-weight; | ||
color: $application-menu-brand-color; | ||
} | ||
|
||
ul { | ||
float: left; | ||
bottom: 0; | ||
margin: 0px auto 0px auto; | ||
padding: 0px; | ||
} | ||
|
||
ul::ng-deep { | ||
> li { | ||
float: left; | ||
list-style: none; | ||
margin-right: 3px; | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'xn-application-menu', | ||
templateUrl: 'applicationMenu.html', | ||
styleUrls: ['applicationMenu.scss'], | ||
}) | ||
export class ApplicationMenuComponent { | ||
|
||
@Input() | ||
public brandLogoSource: string; | ||
|
||
@Input() | ||
public brandName: string; | ||
} |
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,79 +1,57 @@ | ||
@import 'variables'; | ||
@import 'mixins'; | ||
@import "variables"; | ||
@import "mixins"; | ||
|
||
xn-menu-header { | ||
padding: 0; | ||
} | ||
|
||
:host::ng-deep { | ||
xn-menu-header { | ||
border-top: 1px solid #E3E5E6; | ||
border-bottom: 1px solid #E3E5E6; | ||
} | ||
xn-menu-header .nav { | ||
.sub-menu { | ||
position: absolute; | ||
top: 29px; | ||
left: -1px; | ||
display: block; | ||
float: none; | ||
background-color: #333; | ||
z-index: 2006; | ||
margin: 0; | ||
padding: 0; | ||
|
||
ul { | ||
float: left; | ||
|
||
li { | ||
margin-right: 3px; | ||
} | ||
.sub-menu-container { | ||
@include shadow(0px 3px 5px 1px rgba(68, 68, 68, 0.45)); | ||
} | ||
|
||
.brand-bar { | ||
float: right; | ||
padding-right: 6px; | ||
padding-top: 0px; | ||
li { | ||
width: 200px; | ||
position: relative; | ||
padding: 10px; | ||
list-style: none; | ||
margin: 0; | ||
background-color: #f9f9f9; | ||
} | ||
|
||
img { | ||
margin-top: 3px; | ||
} | ||
li.section-divider { | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
z-index: -1; | ||
margin-top: -10px; | ||
} | ||
} | ||
} | ||
|
||
.sub-menu { | ||
position: absolute; | ||
top: 29px; | ||
left: -1px; | ||
display: block; | ||
float: none; | ||
background-color: #333; | ||
z-index: 2006; | ||
li:not(.section-divider):hover { | ||
background-color: $brand-teritiary; | ||
} | ||
|
||
.sub-menu-container { | ||
@include shadow(0px 3px 5px 1px rgba(68, 68, 68, 0.45)); | ||
li:last-child { | ||
border-bottom: none; | ||
} | ||
} | ||
|
||
li { | ||
width: 200px; | ||
position: relative; | ||
padding: 10px; | ||
list-style: none; | ||
.sub-sub-menu { | ||
padding: 0; | ||
margin: 0; | ||
background-color: #f9f9f9; | ||
} | ||
|
||
li.section-divider { | ||
padding-top: 0; | ||
padding-bottom: 0; | ||
position: absolute; | ||
top: 0px; | ||
left: 100%; | ||
z-index: -1; | ||
margin-top: -10px; | ||
} | ||
|
||
li:not(.section-divider):hover { | ||
background-color: $brand-teritiary; | ||
} | ||
|
||
li:last-child { | ||
border-bottom: none; | ||
} | ||
} | ||
|
||
.sub-sub-menu { | ||
position: absolute; | ||
top: 0px; | ||
left: 100%; | ||
z-index: -1; | ||
} |
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