mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
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
This commit is contained in:
parent
5595232f58
commit
c5bbff412b
|
@ -40,14 +40,14 @@ const styles = {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
message: style({
|
message: style({
|
||||||
fontFamily: 'menlo-regular',
|
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace',
|
||||||
fontSize: '10px',
|
fontSize: '10px',
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
margin: 0
|
margin: 0
|
||||||
}),
|
}),
|
||||||
|
|
||||||
heading: style({
|
heading: style({
|
||||||
fontFamily: 'sans-serif',
|
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'bold',
|
||||||
color: '#ff90c6',
|
color: '#ff90c6',
|
||||||
|
|
|
@ -31,7 +31,7 @@ const styles = {
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
position: 'absolute',
|
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',
|
textAlign: 'center',
|
||||||
paddingTop: '20%'
|
paddingTop: '20%'
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue