Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Import proper SF Display font, replace 'bold' with 'medium' (search)
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Apr 1, 2017
1 parent 0b91642 commit a2e9f59
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
Binary file added public/fonts/SFDisplay-Medium.otf
Binary file not shown.
Binary file added public/fonts/SFDisplay-Regular.otf
Binary file not shown.
Binary file removed public/fonts/SanFranciscoDisplay-Regular.otf
Binary file not shown.
13 changes: 10 additions & 3 deletions src/less/blocks/font.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@font-face {
font-family: 'San Francisco';
font-family: 'San Francisco Display';
font-style: normal;
font-weight: 400;
src: url(../../../public/fonts/SanFranciscoDisplay-Regular.otf) format('opentype');
src: url('../../../public/fonts/SFDisplay-Regular.otf') format('opentype');
}

@font-face {
font-family: 'San Francisco Display';
font-style: normal;
font-weight: 500;
src: url('../../../public/fonts/SFDisplay-Medium.otf') format('opentype');
}

.font {
Expand All @@ -44,6 +51,6 @@
}

&--family_san-francisco {
font-family: 'San Francisco', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, sans-serif;
font-family: 'San Francisco Display', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, sans-serif;
}
}
3 changes: 2 additions & 1 deletion src/less/blocks/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
html {
font-family: 'San Francisco', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, sans-serif;
font-family: 'San Francisco Display', 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, sans-serif;
color: @color__text;
font-size: @font__size;
font-weight: 400;
background: @color__page_background;
text-rendering: optimizeLegibility;
padding: 0;
Expand Down
8 changes: 4 additions & 4 deletions src/less/blocks/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
margin-bottom: 20px;
margin-left: 60px;
font-size: 14px;
font-weight: bold;
font-weight: 500;
}

.search__page-bar {
Expand All @@ -92,7 +92,7 @@

.search__page-input {
font-size: 18px;
font-weight: bold;
font-weight: 500;
color: #006cac;
}

Expand All @@ -101,7 +101,7 @@
border: none;
border-radius: 0;
font-size: 16px;
font-weight: bold;
font-weight: 500;
background-color: #4688cd;
box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
}
Expand Down Expand Up @@ -217,7 +217,7 @@
&-item {
display: inline-block;
font-size: 14px;
font-weight: bold;
font-weight: 500;

&:hover {
text-decoration: underline;
Expand Down

0 comments on commit a2e9f59

Please sign in to comment.