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

Commit

Permalink
fix: make style not override developers code (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmonline authored Jun 27, 2019
1 parent 77b902b commit 5e37b6e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/styles/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ const WEIGHTS = {
extrabold: 800,
};

const FONT_FAMILY = '"Nordnet Sans Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
const FONT_FAMILY =
'"Nordnet Sans Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';

const commonFontStyles = {
fontFamily: FONT_FAMILY,
letterSpacing: 'normal'
}
letterSpacing: 'normal',
};

export default function createTypography() {
const ifSmallDevice = (smallFontSize, largeFontSize) => ({
...commonFontStyles,
fontSize: smallFontSize,
[`@media only screen and (min-width: ${SMALL_DEVICE}px)`]: {
[`@media only screen and (min-width: ${SMALL_DEVICE}px)/* override fix */`]: {
fontSize: largeFontSize,
},
});
Expand Down

1 comment on commit 5e37b6e

@vercel
Copy link

@vercel vercel bot commented on 5e37b6e Jun 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.