mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
ba4f5cb47d
commit
a440f60ea3
9 files changed
+109
-73
No files matched your search
@@ -33,18 +33,13 @@
|
||||
height: var(--big-size);
|
||||
}
|
||||
|
||||
> span {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
// material-icon
|
||||
&.material {
|
||||
> span {
|
||||
> .icon {
|
||||
font-family: "Material Icons";
|
||||
font-size: inherit;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-weight: inherit;
|
||||
font-style: inherit;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
text-transform: none;
|
||||
@@ -68,6 +63,11 @@
|
||||
&.svg {
|
||||
box-sizing: content-box;
|
||||
|
||||
> .icon {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
svg {
|
||||
pointer-events: none;
|
||||
width: 100%;
|
||||
|
||||
@@ -87,12 +87,12 @@ export class Icon extends React.PureComponent<IconProps> {
|
||||
// render as inline svg-icon
|
||||
if (svg) {
|
||||
const svgIconText = require("!!raw-loader!./" + svg + ".svg").default;
|
||||
iconContent = <span dangerouslySetInnerHTML={{ __html: svgIconText }}/>;
|
||||
iconContent = <span className="icon" dangerouslySetInnerHTML={{ __html: svgIconText }}/>;
|
||||
}
|
||||
|
||||
// render as material-icon
|
||||
if (material) {
|
||||
iconContent = <span className="material-icons">{material}</span>;
|
||||
iconContent = <span className="icon">{material}</span>;
|
||||
}
|
||||
|
||||
// wrap icon's content passed from decorator
|
||||
|
||||
Reference in new issue
Block a user