moved bg color from css to div as class

pull/3094/head
LianaHus 6 years ago
parent 5397580c92
commit 341eaa782f
  1. 5
      src/app/ui/contextMenu.js

@ -11,7 +11,6 @@ var css = csjs`
width:150px;
border-radius: 2px;
z-index: 1000;
background-color: var(--light)
}
.liitem
@ -54,11 +53,11 @@ module.exports = (event, items) => {
current.onclick = () => { hide(null, true); items[item]() }
return current
})
var container = yo`<div class=${css.container}><ul id='menuitems'>${menu}</ul></div>`
var container = yo`<div class="${css.container} bg-ligh"><ul id='menuitems'>${menu}</ul></div>`
container.style.left = event.pageX + 'px'
container.style.top = event.pageY + 'px'
container.style.display = 'block'
document.querySelector('body').appendChild(container)
setTimeout(() => {
window.addEventListener('click', hide)

Loading…
Cancel
Save