Удалён Consolas из исходников сайта, font-family заменены на более-менее похожие моноширные шрифты из соседних операционок

This commit is contained in:
ErickSkrauch 2017-01-28 14:54:39 +03:00
parent a33d0b66d0
commit 21f21daf60
5 changed files with 4 additions and 17 deletions

View File

@ -3,7 +3,6 @@ import ReactDOM from 'react-dom';
import { bsod } from './actions';
import BSoD from 'components/ui/bsod/BSoD';
import font from 'services/font';
let injectedStore;
let onBsod;
@ -12,11 +11,9 @@ export default function dispatchBsod(store = injectedStore) {
store.dispatch(bsod());
onBsod && onBsod();
font.load(['Consolas']).then(() =>
ReactDOM.render(
<BSoD store={store} />,
document.getElementById('app')
)
ReactDOM.render(
<BSoD store={store} />,
document.getElementById('app')
);
}

View File

@ -1,16 +1,6 @@
@import '~components/ui/colors.scss';
$font-family-monospaced: 'Consolas', monospace;
@font-face {
font-family: 'Consolas';
font-style: normal;
font-weight: 400;
src: local('Consolas'),
url('~fonts/consolas/consolas-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('~fonts/consolas/consolas-regular.woff') format('woff'), /* Modern Browsers */
url('~fonts/consolas/consolas-regular.ttf') format('truetype'); /* Safari, Android, iOS */
}
$font-family-monospaced: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Roboto Mono', monospace;
.body {
height: 100%;