提交 c5bbff41 编写于 作者: C Cole 提交者: Naoyuki Kanezawa

Update system font stacks on error pages (#157)

* Enhance system font stack on _error.js

`-apple-system` = SF on Safari (macOS/iOS)
`BlinkMacSystemFont` = SF on Chrome (macOS)
`Roboto` for Android
`Segoe UI` for Windows
`Fira Sans` for Firefox OS
`Avenir` for pre-SF macOS
`Helvetica Neue, Lucida Grande` for older macOS

* Enhance system font stacks on _error-debug.js

Updates fonts to use better quality system fonts where commonly available
上级 5595232f
......@@ -40,14 +40,14 @@ const styles = {
}),
message: style({
fontFamily: 'menlo-regular',
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace',
fontSize: '10px',
color: '#fff',
margin: 0
}),
heading: style({
fontFamily: 'sans-serif',
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
fontSize: '13px',
fontWeight: 'bold',
color: '#ff90c6',
......
......@@ -31,7 +31,7 @@ const styles = {
left: 0,
right: 0,
position: 'absolute',
fontFamily: '-apple-system, "SF UI Text", "Helvetica Neue", "Lucida Grande", sans-serif',
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
textAlign: 'center',
paddingTop: '20%'
}),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册