Skip to content

Commit

Permalink
#16 Icon addition from theme to node
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhya-metacell committed Jul 30, 2022
1 parent 7f18fb3 commit 9545f85
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Binary file removed src/components/assets/svg/MI.png
Binary file not shown.
3 changes: 3 additions & 0 deletions src/components/assets/svg/node/green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import vars from './components/assets/styles/variables';
import MI from './components/assets/svg/mechanism-yellow.svg';
import nodeGreen from './components/assets/svg/node/green.svg';

type ThemeVars = {
[key: string]: any;
Expand Down Expand Up @@ -88,20 +88,17 @@ const applicationTheme = (params: ThemeVars) => {
flex-direction: column;
}
.primary-node img {
margin-bottom: 0.25rem
.primary-node .icon {
width: 20px;
height: 20px;
margin: 0 auto 0.25rem;
background: url(data:image/svg+xml;base64,${new Buffer(nodeGreen).toString('base64')});
}
.primary-node .primary-node_header p {
color: ${nodeGreenTextColor};
}
.primary-node .primary-node_header img {
background: "url(data:image/svg+xml;base64,${new Buffer(
MI
).toString('base64')})";
}
.primary-node p {
font-weight: 500;
color: ${nodeTextColor};
Expand Down

0 comments on commit 9545f85

Please sign in to comment.