﻿#contextmenu {
  position: fixed;
  z-index: 300;
  display: none;
  padding: 0px;
  min-width: 100px;
  max-width: 300px;
  display: inline-block;
  visibility: hidden;
  list-style-type: none;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #727272;
  background: #fff;
  background-size: auto 100%;
  color: #333;
  text-shadow: 0 1px rgba(255,255,255,0.5);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

#contextmenu::selection {
  background: none;
}

#contextmenu li {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 3px 20px 3px 0;
}

#contextmenu li:first-of-type {
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
}

#contextmenu li:last-of-type {
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
}

#contextmenu li.separator {
  padding: 0;
}

#contextmenu li.disabled {
  color: #aaa;
}

#contextmenu li:not(.separator):not(.disabled):hover {
  background-color: #bbcef1;
  color: #000;
  text-shadow: none;
}

#contextmenu li:not(.separator):not(.disabled):active {
  background-color: #598bec;
  color: #fff;
}

#contextmenu hr {
  margin: 0;
  padding: 0;
  height: 1px;
  border: none;
  background-color: rgba(0,0,0,0.2);
  box-shadow: 0 1px #fff;
}

/* This is now general menu stuff, and should be moved to a menu.css */

.menu .menu-icon {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  width: 10px;
  height: 9px;
  margin: 0 4px;
  overflow: hidden;
}

.menu .check {
  background: transparent url("../ui-images/menu_check.png") 50% no-repeat;
}

.menu li:not(.disabled):active .check {
  background: transparent url("../ui-images/menu_check_selected.png");
}

.menu .radio {
  background: transparent url("../ui-images/menu_bullet.png") 50% no-repeat;
}

.menu li:not(.disabled):active .radio {
  background-image: url("../ui-images/menu_bullet_selected.png");
}

