Skip to content

Commit 30979ce

Browse files
committed
Add font-face for fonts #184
* Remove import statements and add font-face for fonts Signed-off-by: Jillian Daguil <[email protected]>
1 parent a4791c0 commit 30979ce

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="row">
1010
<div class="col-md-12">
1111
<div class="version" style="text-align: center;">
12-
<h2 class="logo"><strong>About</strong>Code Manager</h2>
12+
<h2 class="logo"><strong class="strong-logo">About</strong>Code Manager</h2>
1313
<h4 id="version"></h4>
1414
</div>
1515
</div>

assets/css/main.css

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
/*---------------------------------------
22
Font source mapping
33
-----------------------------------------*/
4-
@import "../fonts/Raleway-Regular.ttf";
5-
@import "../fonts/Raleway-Medium.ttf";
6-
@import "../fonts/Raleway-SemiBold.ttf";
7-
@import "../fonts/Lato-Regular.ttf";
8-
@import "../fonts/Lato-Bold.ttf";
9-
@import "../fonts/Lato-Italic.ttf";
10-
@import "../fonts/Lato-Light.ttf";
4+
@font-face {
5+
font-family: 'Raleway';
6+
font-style: normal;
7+
font-weight: 400;
8+
src: url('../fonts/Raleway-Regular.ttf');
9+
src: local('?'),
10+
url('../fonts/Raleway-Regular.ttf') format('truetype');
11+
}
12+
13+
@font-face {
14+
font-family: 'Raleway Black';
15+
font-style: normal;
16+
font-weight: 800;
17+
src: url('../fonts/Raleway-Black.ttf');
18+
src: local('?'),
19+
url('../fonts/Raleway-Black.ttf') format('truetype');
20+
}
1121

22+
@font-face {
23+
font-family: 'Lato';
24+
font-style: normal;
25+
font-weight: 400;
26+
src: url('../fonts/Lato-Regular.ttf');
27+
src: local('?'),
28+
url('../fonts/Lato-Regular.ttf') format('truetype');
29+
}
1230
/*---------------------------------------
1331
General
1432
-----------------------------------------*/
@@ -24,6 +42,10 @@ body {
2442
color: #0064cd;
2543
}
2644

45+
.strong-logo {
46+
font-family: 'Raleway Black', Helvetica, san-serif;
47+
}
48+
2749
/*---------------------------------------
2850
Layout
2951
-----------------------------------------*/

assets/fonts/Raleway-Black.ttf

176 KB
Binary file not shown.

0 commit comments

Comments
 (0)