Commit 1f8f76f2 authored by Rob Stupay's avatar Rob Stupay

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

parent 838135a7
...@@ -27,6 +27,7 @@ class VerticalIconComponent { ...@@ -27,6 +27,7 @@ class VerticalIconComponent {
addIcon (mod) { addIcon (mod) {
let kind = mod.kind || 'other' 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.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]) this.iconKind[kind].appendChild(this.icons[mod.name])
} }
...@@ -132,6 +133,11 @@ const css = csjs` ...@@ -132,6 +133,11 @@ const css = csjs`
height: 28px; height: 28px;
padding: 4px; padding: 4px;
} }
.icon svg {
width: 28px;
height: 28px;
padding: 4px;
}
.icon.active { .icon.active {
border: solid 3px hsla(229, 75%, 87%, 1); border: solid 3px hsla(229, 75%, 87%, 1);
border-radius: 8px; border-radius: 8px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment