Skip to content

Commit

Permalink
feat(fonts): Roboto fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Aug 20, 2017
1 parent 1f3f283 commit 41c00a0
Show file tree
Hide file tree
Showing 27 changed files with 35 additions and 36 deletions.
Binary file added src/app/assets/fonts/Roboto-Black.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-BlackItalic.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Light.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file added src/app/assets/fonts/Roboto-ThinItalic.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Black.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-BlackItalic.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Bold.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-BoldItalic.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-ExtraLight.ttf
Binary file not shown.
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Italic.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Light.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-LightItalic.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Regular.ttf
Binary file not shown.
Binary file removed src/app/assets/fonts/SourceSansPro-Semibold.ttf
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ <h1 class="bold">

<hr/>

<div class="column is-3">
<div class="column is-4">
<h2 *ngIf="build?.data?.pull_request">{{ build?.data?.pull_request?.title }}</h2>
<h2 *ngIf="!build?.data?.pull_request">{{ build?.data?.commits[0]?.message }}</h2>
</div>
<div class="column is-3">
<div class="column is-2">
<p>
<span class="icon">
<img src="images/icons/git-commit.svg">
Expand All @@ -50,7 +50,7 @@ <h2 *ngIf="!build?.data?.pull_request">{{ build?.data?.commits[0]?.message }}</h
<span *ngIf="!build?.data?.pull_request?.head?.sha">{{ build?.data?.after.slice(0, 7) }}</span>
</p>
</div>
<div class="column is-4">
<div class="column is-3">
<p>
<span class="icon">
<img [src]="build?.data?.sender?.avatar_url" class="avatar-img">
Expand All @@ -60,17 +60,15 @@ <h2 *ngIf="!build?.data?.pull_request">{{ build?.data?.commits[0]?.message }}</h
</p>
</div>
<div class="column is-2">
<div class="column is-12">
<p class="total-time">
<span class="icon">
<img src="images/icons/clock.svg">
</span>
<span>{{ totalTime }}</span>
</p>
</div>
<div class="column is-12" *ngIf="status === 'running' && approximatelyRemainingTime">
<p *ngIf="status === 'running' && approximatelyRemainingTime">
<span name="time-left">approximately {{ approximatelyRemainingTime }} remaining</span>
</div>
</p>
</div>
<div class="column is-1">
<p class="total-time">
<img src="images/icons/clock.svg">
<span>{{ totalTime }}</span>
</p>
</div>

<div *ngIf="build.runs && build.runs.length > 1" class="column is-12">
Expand Down
27 changes: 14 additions & 13 deletions src/app/styles/build-details.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
width: 100%
border: 3px solid $divider
border-radius: 4px
margin-bottom: 30px
margin-bottom: 10px
margin-top: 30px

&.green
Expand Down Expand Up @@ -34,7 +34,7 @@
float: left

hr
margin: 20px 0
margin: 5px 0

h1
font-size: 20px
Expand All @@ -56,12 +56,16 @@
text-overflow: ellipsis
white-space: nowrap
overflow: hidden
padding: 5px 20px 5px 0
padding: 10px 20px 5px 0

.column
display: flex
align-items: center

p
font-size: 14px
color: $white
padding: 5px 20px
padding: 0 20px
display: flex
align-items: center

Expand All @@ -84,20 +88,17 @@
display: flex
justify-content: flex-end
align-items: center
font-size: 16px
font-size: 18px
color: $white
font-weight: bold
padding-right: 0
margin-right: 0

.icon
margin-right: 5px
width: 16px
height: 16px

img
width: 16px
height: 16px
img
width: 24px
height: 24px
margin-right: 10px
margin-top: 2px

.right-buttons-top

Expand Down
20 changes: 10 additions & 10 deletions src/app/styles/fonts.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
font-weight: $weight
font-style: $style

+font-face('SourceSansPro-Light', '../assets/fonts/SourceSansPro-Light', 300, 'normal')
+font-face('SourceSansPro-Regular', '../assets/fonts/SourceSansPro-Regular', 400, 'normal')
+font-face('SourceSansPro-Semibold', '../assets/fonts/SourceSansPro-Semibold', 600, 'normal')
+font-face('SourceSansPro-Bold', '../assets/fonts/SourceSansPro-Bold', 700, 'normal')
+font-face('SourceSansPro-Black', '../assets/fonts/SourceSansPro-Black', 900, 'normal')
+font-face('Roboto-Light', '../assets/fonts/Roboto-Light', 300, 'normal')
+font-face('Roboto-Regular', '../assets/fonts/Roboto-Regular', 400, 'normal')
+font-face('Roboto-Semibold', '../assets/fonts/Roboto-Medium', 600, 'normal')
+font-face('Roboto-Bold', '../assets/fonts/Roboto-Bold', 700, 'normal')
+font-face('Roboto-Black', '../assets/fonts/Roboto-Black', 900, 'normal')

$font-family-light: 'SourceSansPro-Light', sans-serif
$font-family-regular: 'SourceSansPro-Regular', sans-serif
$font-family-semibold: 'SourceSansPro-Semibold', sans-serif
$font-family-bold: 'SourceSansPro-Bold', sans-serif
$font-family-black: 'SourceSansPro-Black', sans-serif
$font-family-light: 'Roboto-Light', sans-serif
$font-family-regular: 'Roboto-Regular', sans-serif
$font-family-semibold: 'Roboto-Medium', sans-serif
$font-family-bold: 'Roboto-Bold', sans-serif
$font-family-black: 'Roboto-Black', sans-serif

0 comments on commit 41c00a0

Please sign in to comment.