Make sure the "browser unsupported" message is styled properly

pull/885/merge
Thibaut Courouble 6 years ago
parent 847cfbb682
commit 6d5a278941

@ -1,4 +1,4 @@
._fail { ._fail { // Don't use CSS variables, in case the browser doesn't support them.
display: block; display: block;
position: relative; position: relative;
top: 1.5rem; top: 1.5rem;
@ -23,7 +23,7 @@
._fail-title { ._fail-title {
margin: 0 0 1rem; margin: 0 0 1rem;
font-size: 1rem; font-size: 1rem;
font-weight: var(--boldFontWeight); font-weight: bold;
} }
._fail-text, ._fail-list { ._fail-text, ._fail-list {

@ -1,6 +1,7 @@
html { html {
height: 100%; height: 100%;
font-size: 100%; font-size: 100%;
background: #fff; // fallback to show the error message to browsers that don't support CSS variables.
background: var(--documentBackground); background: var(--documentBackground);
@include mobile { font-size: 93.75%; } @include mobile { font-size: 93.75%; }
@ -15,8 +16,9 @@ body {
overflow: auto; overflow: auto;
font-size: 1em; font-size: 1em;
font-weight: normal; font-weight: normal;
font-family: var(--baseFont); font-family: $baseFont;
line-height: 1.7; line-height: 1.7;
color: $textColor; // fallback to show the error message to browsers that don't support CSS variables.
color: var(--textColor); color: var(--textColor);
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;

@ -1,5 +1,9 @@
// Variables needed to style the error message for browsers that don't support CSS variables.
$baseFont: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
$textColor: #333;
html { html {
--baseFont: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif; --baseFont: #{$baseFont};
--monoFont: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; --monoFont: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
--boldFontWeight: 500; --boldFontWeight: 500;
--bolderFontWeight: 600; --bolderFontWeight: 600;

Loading…
Cancel
Save