Skip to content

Commit 825fe04

Browse files
committed
feat(header): header styles
1 parent a0da158 commit 825fe04

File tree

4 files changed

+68
-18
lines changed

4 files changed

+68
-18
lines changed
Lines changed: 9 additions & 0 deletions
Loading

src/app/components/app-header/app-header.component.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
<a class="nav-item nav-logo" routerLink="/">
55
<img src="/images/abstruse-text-logo.svg">
66
</a>
7+
<div class="nav-search-container">
8+
<input type="text" placeholder="Search commits, builds by number, ...">
9+
<img src="/images/icons/search.svg" class="icon">
10+
</div>
711
</div>
8-
<div class="nav-center">
12+
<div class="nav-right">
913
<a class="nav-item is-hidden-mobile" routerLink="/dashboard" routerLinkActive="is-active" name="dashboard" *ngIf="user || demo">
1014
<span>Dashboard</span>
1115
</a>
@@ -18,8 +22,6 @@
1822
<a class="nav-item is-hidden-mobile" routerLink="/images" routerLinkActive="is-active" *ngIf="user">
1923
<span>Images</span>
2024
</a>
21-
</div>
22-
<div class="nav-right">
2325
<!-- <a class="nav-item notification-item is-hidden-mobile" *ngIf="user" (click)="toggleNotify()">
2426
<img src="//images/icons/notification.svg">
2527
<div class="notify-num-container" *ngIf="notifications?.length">

src/app/styles/colors.sass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$background: #F5F7FA
1+
$background: #FAFBFB
22
$background-secondary: #222C3C
33
$background-button: #F1F5F7
44
$color: #354052

src/app/styles/nav.sass

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ a.nav-item:not(.button)
5353
.nav-left,
5454
.nav-right
5555
+overflow-touch
56-
align-items: stretch
56+
align-items: center
5757
display: flex
5858
flex-grow: 1
5959
flex-shrink: 0
@@ -70,7 +70,7 @@ a.nav-item:not(.button)
7070
justify-content: flex-end
7171

7272
.nav-center
73-
align-items: stretch
73+
align-items: center
7474
display: flex
7575
flex-grow: 0
7676
flex-shrink: 0
@@ -79,23 +79,24 @@ a.nav-item:not(.button)
7979
margin-right: auto
8080

8181
.nav
82-
align-items: stretch
83-
background-color: $white
82+
align-items: center
8483
display: flex
8584
position: relative
8685
text-align: center
8786
z-index: 10
8887
& > .container
89-
align-items: stretch
9088
display: flex
9189
width: 100%
90+
height: 50px
91+
align-items: center
9292

9393
.nav
94-
height: 75px
94+
height: 50px
9595
width: 100%
9696
z-index: 90 !important
97-
background-color: $white
97+
background-color: #F9FAFB
9898
position: relative
99+
border-bottom: 1px solid #E0E0EA
99100

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

106107
.nav-item:not(.nav-logo)
107108
color: $color !important
108-
font-size: 14px
109-
margin-right: 15px
110-
font-weight: 700
109+
font-size: 12px
110+
margin-right: 8px
111111
font-family: $font-family-semibold
112112

113113
.icon
@@ -190,7 +190,7 @@ a.nav-item:not(.button)
190190
background: $background
191191

192192
&.user-item
193-
margin-top: 17px
193+
margin-top: 2px
194194
height: 40px
195195
min-height: 40px
196196
display: inline-flex
@@ -231,12 +231,13 @@ a.nav-item:not(.button)
231231
float: left
232232
margin-left: 10px
233233
color: $color
234+
margin-top: -10px
234235

235236
.nav-dropdown
236237
position: absolute
237238
z-index: 100
238239
width: 200px
239-
top: 65px
240+
top: 55px
240241
right: -8px
241242
padding-top: 12px
242243
background: $white
@@ -300,8 +301,6 @@ a.nav-item:not(.button)
300301
display: flex
301302
align-items: center
302303
z-index: 80 !important
303-
box-shadow: 1px 2px 5px rgba($black, 0.1)
304-
border-bottom: none
305304
height: 50px
306305

307306
+mobile
@@ -351,3 +350,43 @@ a.nav-item:not(.button)
351350
float: left
352351
margin-top: 10px
353352
margin-left: 5px
353+
354+
355+
.nav-search-container
356+
width: 500px
357+
background: $white
358+
height: 30px
359+
border-radius: 3px
360+
border: 1px solid #E0E0EA
361+
margin-left: 30px
362+
position: relative
363+
364+
.icon
365+
position: absolute
366+
right: 10px
367+
top: 2px
368+
width: 15px
369+
370+
input
371+
padding-top: 4px
372+
height: 26px
373+
width: 100%
374+
margin: 0
375+
padding-right: 40px
376+
padding-left: 10px
377+
font-size: 12px
378+
outline: none
379+
border: none
380+
color: #D5D6E3
381+
382+
&::-webkit-input-placeholder
383+
color: #D5D6E3
384+
385+
&::-moz-placeholder
386+
color: #D5D6E3
387+
388+
&:-ms-input-placeholder
389+
color: #D5D6E3
390+
391+
&:-moz-placeholder
392+
color: #D5D6E3

0 commit comments

Comments
 (0)