mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* always preload app fonts at earliest stages, fix #5019 Signed-off-by: Roman <ixrock@gmail.com> * attempt to fix tests, clean up Signed-off-by: Roman <ixrock@gmail.com>
37 lines
985 B
SCSS
37 lines
985 B
SCSS
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
// Custom fonts
|
|
@import "~typeface-roboto/index.css";
|
|
|
|
// Material Design Icons, used primarily in icon.tsx
|
|
// Latest: https://github.com/google/material-design-icons/tree/master/font
|
|
@font-face {
|
|
font-family: "Material Icons";
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: block;
|
|
src: url("./fonts/MaterialIcons-Regular.ttf") format("truetype");
|
|
}
|
|
|
|
// Patched RobotoMono font with icons
|
|
// RobotoMono Windows Compatible for using in terminal
|
|
// https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/RobotoMono
|
|
@font-face {
|
|
font-family: 'RobotoMono';
|
|
font-display: block;
|
|
src: local('RobotoMono'), url('./fonts/roboto-mono-nerd.ttf') format('truetype');
|
|
}
|
|
|
|
#fonts-preloading {
|
|
> .icons {
|
|
@include font-preload("Material Icons");
|
|
}
|
|
|
|
> .terminal {
|
|
@include font-preload("RobotoMono");
|
|
}
|
|
}
|