Skip to content

Commit

Permalink
feat(header): header styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Nov 6, 2017
1 parent a0da158 commit 825fe04
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 18 deletions.
9 changes: 9 additions & 0 deletions src/app/assets/public/images/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions src/app/components/app-header/app-header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
<a class="nav-item nav-logo" routerLink="/">
<img src="/images/abstruse-text-logo.svg">
</a>
<div class="nav-search-container">
<input type="text" placeholder="Search commits, builds by number, ...">
<img src="/images/icons/search.svg" class="icon">
</div>
</div>
<div class="nav-center">
<div class="nav-right">
<a class="nav-item is-hidden-mobile" routerLink="/dashboard" routerLinkActive="is-active" name="dashboard" *ngIf="user || demo">
<span>Dashboard</span>
</a>
Expand All @@ -18,8 +22,6 @@
<a class="nav-item is-hidden-mobile" routerLink="/images" routerLinkActive="is-active" *ngIf="user">
<span>Images</span>
</a>
</div>
<div class="nav-right">
<!-- <a class="nav-item notification-item is-hidden-mobile" *ngIf="user" (click)="toggleNotify()">
<img src="//images/icons/notification.svg">
<div class="notify-num-container" *ngIf="notifications?.length">
Expand Down
2 changes: 1 addition & 1 deletion src/app/styles/colors.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$background: #F5F7FA
$background: #FAFBFB
$background-secondary: #222C3C
$background-button: #F1F5F7
$color: #354052
Expand Down
67 changes: 53 additions & 14 deletions src/app/styles/nav.sass
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ a.nav-item:not(.button)
.nav-left,
.nav-right
+overflow-touch
align-items: stretch
align-items: center
display: flex
flex-grow: 1
flex-shrink: 0
Expand All @@ -70,7 +70,7 @@ a.nav-item:not(.button)
justify-content: flex-end

.nav-center
align-items: stretch
align-items: center
display: flex
flex-grow: 0
flex-shrink: 0
Expand All @@ -79,23 +79,24 @@ a.nav-item:not(.button)
margin-right: auto

.nav
align-items: stretch
background-color: $white
align-items: center
display: flex
position: relative
text-align: center
z-index: 10
& > .container
align-items: stretch
display: flex
width: 100%
height: 50px
align-items: center

.nav
height: 75px
height: 50px
width: 100%
z-index: 90 !important
background-color: $white
background-color: #F9FAFB
position: relative
border-bottom: 1px solid #E0E0EA

.nav-logo
margin-left: -10px
Expand All @@ -105,9 +106,8 @@ a.nav-item:not(.button)

.nav-item:not(.nav-logo)
color: $color !important
font-size: 14px
margin-right: 15px
font-weight: 700
font-size: 12px
margin-right: 8px
font-family: $font-family-semibold

.icon
Expand Down Expand Up @@ -190,7 +190,7 @@ a.nav-item:not(.button)
background: $background

&.user-item
margin-top: 17px
margin-top: 2px
height: 40px
min-height: 40px
display: inline-flex
Expand Down Expand Up @@ -231,12 +231,13 @@ a.nav-item:not(.button)
float: left
margin-left: 10px
color: $color
margin-top: -10px

.nav-dropdown
position: absolute
z-index: 100
width: 200px
top: 65px
top: 55px
right: -8px
padding-top: 12px
background: $white
Expand Down Expand Up @@ -300,8 +301,6 @@ a.nav-item:not(.button)
display: flex
align-items: center
z-index: 80 !important
box-shadow: 1px 2px 5px rgba($black, 0.1)
border-bottom: none
height: 50px

+mobile
Expand Down Expand Up @@ -351,3 +350,43 @@ a.nav-item:not(.button)
float: left
margin-top: 10px
margin-left: 5px


.nav-search-container
width: 500px
background: $white
height: 30px
border-radius: 3px
border: 1px solid #E0E0EA
margin-left: 30px
position: relative

.icon
position: absolute
right: 10px
top: 2px
width: 15px

input
padding-top: 4px
height: 26px
width: 100%
margin: 0
padding-right: 40px
padding-left: 10px
font-size: 12px
outline: none
border: none
color: #D5D6E3

&::-webkit-input-placeholder
color: #D5D6E3

&::-moz-placeholder
color: #D5D6E3

&:-ms-input-placeholder
color: #D5D6E3

&:-moz-placeholder
color: #D5D6E3

0 comments on commit 825fe04

Please sign in to comment.