-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: put Single Stat default styles into stylesheet to prevent font f…
…lashing (#822)
- Loading branch information
Showing
14 changed files
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@import '../../style/variables.scss'; | ||
|
||
@font-face { | ||
font-family: 'Proxima Nova'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: url('../../fonts/ProximaNova-Light.woff2') format('woff2'); | ||
font-display: block; | ||
} | ||
@font-face { | ||
font-family: 'Proxima Nova'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('../../fonts/ProximaNova-Regular.woff2') format('woff2'); | ||
font-display: block; | ||
} | ||
@font-face { | ||
font-family: 'Proxima Nova'; | ||
font-style: normal; | ||
font-weight: 500; | ||
src: url('../../fonts/ProximaNova-Medium.woff2') format('woff2'); | ||
font-display: block; | ||
} | ||
@font-face { | ||
font-family: 'Proxima Nova'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('../../fonts/ProximaNova-Bold.woff2') format('woff2'); | ||
font-display: block; | ||
} | ||
@font-face { | ||
font-family: 'Proxima Nova'; | ||
font-style: normal; | ||
font-weight: 900; | ||
src: url('../../fonts/ProximaNova-Black.woff2') format('woff2'); | ||
font-display: block; | ||
} | ||
|
||
.giraffe-layer-single-stat { | ||
align-items: center; | ||
border-radius: 4px; | ||
bottom: 0; | ||
color: $c-laser; | ||
cursor: text; | ||
display: flex; | ||
font-family: 'Proxima Nova', Helvetica, Arial, Tahoma, Verdana, sans-serif; | ||
height: 100%; | ||
justify-content: center; | ||
left: 0; | ||
overflow: hidden; | ||
padding: 8px; | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
width: 100%; | ||
-moz-user-select: text; | ||
-ms-user-select: text; | ||
-webkit-user-select: text; | ||
user-select: text; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file is automatically generated. | ||
// Please do not change this file! | ||
interface CssExports { | ||
'giraffe-layer-single-stat': string; | ||
} | ||
export const cssExports: CssExports; | ||
export default cssExports; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters