Skip to content

Commit

Permalink
styles: Use "Ubuntu" font when "Avenir Next" isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
tohjustin committed Dec 20, 2019
1 parent bbe5b0d commit ec782a1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<Footer /> renders without crashing 1`] = `
<div
class="sc-bdVaJa gqvhCj"
class="sc-bdVaJa jzdqyt"
>
<span>
Powered by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exports[`<TableCompact /> renders without crashing 1`] = `
</div>
</div>
<select
class="sc-ifAKCX dKuzaW"
class="sc-ifAKCX dHqgrp"
>
<option
value="BTC"
Expand Down
7 changes: 6 additions & 1 deletion src/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
@font-face {
font-family: "Ubuntu";
src: url("https://fonts.googleapis.com/css?family=Ubuntu");
}

body {
background-image: linear-gradient(to bottom, #202B33, #4E5C6E);
background-attachment: fixed;
Expand All @@ -12,4 +17,4 @@ body {
display: flex;
flex-direction: row;
height: 100%;
}
}
19 changes: 3 additions & 16 deletions src/styles/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export const fontWeight = {
export const font = {
fontFamily: `
"Avenir Next",
"Ubuntu",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
Expand Down Expand Up @@ -157,19 +157,6 @@ export default {
zIndexDropdown: 100,
zIndexBackdrop: -10,

fontFamily: `"Avenir Next",
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
"Roboto",
"Oxygen",
"Ubuntu",
"Cantarell",
"Fira Sans",
"Droid Sans",
"Helvetica Neue",
sans-serif;`,

monospaceFontFamily: `
monospace;`,
fontFamily: fontFamily.regular,
monospaceFontFamily: fontFamily.monospace,
};
10 changes: 5 additions & 5 deletions src/views/MainView/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`<MainView/> [DESKTOP] renders without crashing 1`] = `
<div
class="sc-jWBwVP jIipSk sc-bdVaJa kiEYim"
class="sc-jWBwVP elYRdX sc-bdVaJa kiEYim"
>
<svg
class="sc-ifAKCX fWKbFX"
Expand Down Expand Up @@ -186,7 +186,7 @@ exports[`<MainView/> [DESKTOP] renders without crashing 1`] = `
</div>
</div>
<select
class="sc-hMqMXs iOLeJY"
class="sc-hMqMXs gaOMyA"
>
<option
value="BTC"
Expand Down Expand Up @@ -238,7 +238,7 @@ exports[`<MainView/> [DESKTOP] renders without crashing 1`] = `
</div>
</div>
<div
class="sc-bwzfXH jIYfKf"
class="sc-bwzfXH YTSlM"
>
<span>
Powered by
Expand All @@ -260,7 +260,7 @@ exports[`<MainView/> [DESKTOP] renders without crashing 1`] = `

exports[`<MainView/> [MOBILE] renders without crashing 1`] = `
<div
class="sc-jWBwVP jIipSk sc-bdVaJa kiEYim"
class="sc-jWBwVP elYRdX sc-bdVaJa kiEYim"
>
<svg
class="sc-ifAKCX fWKbFX"
Expand Down Expand Up @@ -624,7 +624,7 @@ exports[`<MainView/> [MOBILE] renders without crashing 1`] = `
</div>
</div>
<div
class="sc-bwzfXH jIYfKf"
class="sc-bwzfXH YTSlM"
>
<span>
Powered by
Expand Down

0 comments on commit ec782a1

Please sign in to comment.