mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
revert font changes due to update elsewhere already existing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
21db4e39fb
commit
e3193fe897
@ -233,7 +233,6 @@
|
|||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"mac-ca": "^1.0.4",
|
"mac-ca": "^1.0.4",
|
||||||
"marked": "^1.1.0",
|
"marked": "^1.1.0",
|
||||||
"material-design-icons-iconfont": "^6.1.0",
|
|
||||||
"md5-file": "^5.0.0",
|
"md5-file": "^5.0.0",
|
||||||
"mobx": "^5.15.5",
|
"mobx": "^5.15.5",
|
||||||
"mobx-observable-history": "^1.0.3",
|
"mobx-observable-history": "^1.0.3",
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
$material-design-icons-font-directory-path: '~material-design-icons-iconfont/dist/fonts/';
|
|
||||||
|
|
||||||
// Custom fonts
|
// Custom fonts
|
||||||
@import "~material-design-icons-iconfont/src/material-design-icons";
|
|
||||||
@import "~typeface-roboto/index.css";
|
@import "~typeface-roboto/index.css";
|
||||||
|
|
||||||
// Material Design Icons, used primarily in icon.tsx
|
// Material Design Icons, used primarily in icon.tsx
|
||||||
@ -20,4 +17,4 @@ $material-design-icons-font-directory-path: '~material-design-icons-iconfont/dis
|
|||||||
font-family: 'RobotoMono';
|
font-family: 'RobotoMono';
|
||||||
src: local('RobotoMono'),
|
src: local('RobotoMono'),
|
||||||
url('fonts/roboto-mono-nerd.ttf') format('truetype');
|
url('fonts/roboto-mono-nerd.ttf') format('truetype');
|
||||||
}
|
}
|
||||||
@ -132,4 +132,4 @@
|
|||||||
@extend .active;
|
@extend .active;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -9,7 +9,7 @@ import { TooltipDecoratorProps, withTooltip } from "../tooltip";
|
|||||||
import isNumber from "lodash/isNumber"
|
import isNumber from "lodash/isNumber"
|
||||||
|
|
||||||
export interface IconProps extends React.HTMLAttributes<any>, TooltipDecoratorProps {
|
export interface IconProps extends React.HTMLAttributes<any>, TooltipDecoratorProps {
|
||||||
material?: string; // material-icon, see available names at https://jossef.github.io/material-design-icons-iconfont/
|
material?: string; // material-icon, see available names at https://material.io/icons/
|
||||||
svg?: string; // svg-filename without extension in current folder
|
svg?: string; // svg-filename without extension in current folder
|
||||||
link?: LocationDescriptor; // render icon as NavLink from react-router-dom
|
link?: LocationDescriptor; // render icon as NavLink from react-router-dom
|
||||||
href?: string; // render icon as hyperlink
|
href?: string; // render icon as hyperlink
|
||||||
@ -32,7 +32,7 @@ export class Icon extends React.PureComponent<IconProps> {
|
|||||||
|
|
||||||
get isInteractive() {
|
get isInteractive() {
|
||||||
const { interactive, onClick, href, link } = this.props;
|
const { interactive, onClick, href, link } = this.props;
|
||||||
return !!(interactive || onClick || href || link);
|
return interactive || !!(onClick || href || link);
|
||||||
}
|
}
|
||||||
|
|
||||||
@autobind()
|
@autobind()
|
||||||
@ -87,7 +87,7 @@ export class Icon extends React.PureComponent<IconProps> {
|
|||||||
|
|
||||||
// render as inline svg-icon
|
// render as inline svg-icon
|
||||||
if (svg) {
|
if (svg) {
|
||||||
const svgIconText = require(`!!raw-loader!./${svg}.svg`).default;
|
const svgIconText = require("!!raw-loader!./" + svg + ".svg").default;
|
||||||
iconContent = <span className="icon" dangerouslySetInnerHTML={{ __html: svgIconText }}/>;
|
iconContent = <span className="icon" dangerouslySetInnerHTML={{ __html: svgIconText }}/>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9476,11 +9476,6 @@ matcher@^3.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
escape-string-regexp "^4.0.0"
|
escape-string-regexp "^4.0.0"
|
||||||
|
|
||||||
material-design-icons-iconfont@^6.1.0:
|
|
||||||
version "6.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/material-design-icons-iconfont/-/material-design-icons-iconfont-6.1.0.tgz#ffad21a71f2000336fd410cbeba36ddbf301f0f2"
|
|
||||||
integrity sha512-wRJtOo1v1ch+gN8PRsj0IGJznk+kQ8mz13ds/nuhLI+Qyf/931ZlRpd92oq0IRPpZIb+bhX8pRjzIVdcPDKmiQ==
|
|
||||||
|
|
||||||
md5-file@^5.0.0:
|
md5-file@^5.0.0:
|
||||||
version "5.0.0"
|
version "5.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/md5-file/-/md5-file-5.0.0.tgz#e519f631feca9c39e7f9ea1780b63c4745012e20"
|
resolved "https://registry.yarnpkg.com/md5-file/-/md5-file-5.0.0.tgz#e519f631feca9c39e7f9ea1780b63c4745012e20"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user