diff --git a/src/app/ui/contextMenu.js b/src/app/ui/contextMenu.js new file mode 100644 index 0000000000..baa729cb21 --- /dev/null +++ b/src/app/ui/contextMenu.js @@ -0,0 +1,63 @@ +var yo = require('yo-yo') +// -------------- copyToClipboard ---------------------- +var csjs = require('csjs-inject') +var styleGuide = require('remix-lib').ui.themeChooser +var styles = styleGuide.chooser() + +var css = csjs` + .container + { + display: none; + position: fixed; + border: 1px solid ${styles.appProperties.solidBorderBox_BorderColor}; + width:150px; + background: ${styles.appProperties.solidBorderBox_BackgroundColor}; + border-radius: 2px; + } + + .liitem + { + padding: 3px; + padding-left: 10px; + cursor: pointer; + } + + #menuitems + { + list-style: none; + margin: 0px; + margin-top: 4px; + padding-left: 5px; + padding-right: 5px; + padding-bottom: 3px; + color: ${styles.appProperties.solidBorderBox_TextColor}; + } + + #menuitems :hover + { + background: ${styles.appProperties.highlight_BackgroundColor}; + border-radius: 2px; + } +` + +module.exports = (event, items) => { + event.preventDefault() + var menu = Object.keys(items).map((item, index) => { + var current = yo`