small update to vert-icons - but not bringing them as in as <svg> but as base64

pull/1/head
Rob Stupay 6 years ago
parent 838135a75c
commit 1f8f76f27a
  1. 6
      src/app/components/vertical-icons-component.js

@ -27,6 +27,7 @@ class VerticalIconComponent {
addIcon (mod) {
let kind = mod.kind || 'other'
this.icons[mod.name] = yo`<div class="${css.icon}" onclick=${(e) => { this._iconClick(mod.name) }} title=${mod.name} ><img src="${mod.icon}" alt="${mod.name}" /></div>`
this.iconKind[kind].appendChild(this.icons[mod.name])
}
@ -132,6 +133,11 @@ const css = csjs`
height: 28px;
padding: 4px;
}
.icon svg {
width: 28px;
height: 28px;
padding: 4px;
}
.icon.active {
border: solid 3px hsla(229, 75%, 87%, 1);
border-radius: 8px;

Loading…
Cancel
Save