Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Include Roboto font and font-family fallback (#1100)
Browse files Browse the repository at this point in the history
* Include Roboto font and font-family fallback

* Optimize loading of Roboto font
  • Loading branch information
vjanssens authored and nakhbari committed Jul 26, 2018
1 parent ddb16c7 commit 0434805
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
@@ -1,5 +1,5 @@
.fci-dialog-form-section {
font-family: 'Roboto';
font-family: 'Roboto', sans-serif;
padding-bottom: 16px;
&:last-child {
padding-bottom: 74px;
Expand Down
4 changes: 2 additions & 2 deletions web/global/input.scss
@@ -1,7 +1,7 @@
.fci-input-container {
padding-bottom: 16px;
label {
font-family: 'Roboto';
font-family: 'Roboto', sans-serif;
color: rgba(0, 0, 0, 0.54);
font-size: 13px;
display: block;
Expand Down Expand Up @@ -48,7 +48,7 @@
/** Font */
color: rgba(0, 0, 0, 0.87);
font-size: 16px;
font-family: 'Roboto';
font-family: 'Roboto', sans-serif;
font-weight: 400;
line-height: 24px;
/** Inner text inherits content wrapping */
Expand Down
3 changes: 2 additions & 1 deletion web/global/theme.scss
@@ -1,8 +1,9 @@
/* You can add global styles to this file, and also import other style files */

@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';

// TODO: using theme functions to set the themes instead of overriding manually
// TODO: Find out if Roboto is packaged in Angular Material

body {
margin: 0;
font-family: 'Google Sans', sans-serif; // Default font-family
Expand Down
2 changes: 2 additions & 0 deletions web/index.html
Expand Up @@ -8,7 +8,9 @@

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
</head>

<body>
Expand Down

0 comments on commit 0434805

Please sign in to comment.