2 * jQuery contextMenu - Plugin for simple contextMenu handling
6 * Authors: Rodney Rehm, Addy Osmani (patches for FF)
7 * Web: http://medialize.github.com/jQuery-contextMenu/
10 * MIT License http://www.opensource.org/licenses/mit-license
11 * GPL v3 http://opensource.org/licenses/GPL-3.0
21 display: inline-block;
23 list-style-type: none;
25 border: 1px solid #DDD;
28 -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
29 -moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
30 -ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
31 -o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
32 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
34 font-family: Verdana, Arial, Helvetica, sans-serif;
39 padding: 2px 2px 2px 24px;
40 background-color: #EEE;
42 -webkit-user-select: none;
43 -moz-user-select: -moz-none;
44 -ms-user-select: none;
48 .context-menu-separator {
50 border-bottom: 1px solid #DDD;
53 .context-menu-item > label > input,
54 .context-menu-item > label > textarea {
55 -webkit-user-select: text;
56 -moz-user-select: text;
57 -ms-user-select: text;
61 .context-menu-item.hover {
63 background-color: #39F;
66 .context-menu-item.disabled {
70 .context-menu-input.hover,
71 .context-menu-item.disabled.hover {
73 background-color: #EEE;
76 .context-menu-submenu:after {
87 In case you want to use sprites for icons (which I would suggest you do) have a look at
88 http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement
89 .context-menu-item.icon:before {}
91 .context-menu-item.icon { min-height: 18px; background-repeat: no-repeat; background-position: 4px 2px; }
92 .context-menu-item.icon-edit { background-image: url(../image/jquery.contextMenu/page_white_edit.png); }
93 .context-menu-item.icon-cut { background-image: url(../image/jquery.contextMenu/cut.png); }
94 .context-menu-item.icon-copy { background-image: url(../image/jquery.contextMenu/page_white_copy.png); }
95 .context-menu-item.icon-paste { background-image: url(../image/jquery.contextMenu/page_white_paste.png); }
96 .context-menu-item.icon-delete { background-image: url(../image/jquery.contextMenu/page_white_delete.png); }
97 .context-menu-item.icon-add { background-image: url(../image/jquery.contextMenu/page_white_add.png); }
98 .context-menu-item.icon-quit { background-image: url(../image/jquery.contextMenu/door.png); }
100 /* vertically align inside labels */
101 .context-menu-input > label > * { vertical-align: top; }
103 /* position checkboxes and radios as icons */
104 .context-menu-input > label > input[type="checkbox"],
105 .context-menu-input > label > input[type="radio"] {
108 .context-menu-input > label > span {
112 .context-menu-input > label,
113 .context-menu-input > label > input[type="text"],
114 .context-menu-input > label > textarea,
115 .context-menu-input > label > select {
119 -webkit-box-sizing: border-box;
120 -moz-box-sizing: border-box;
121 -ms-box-sizing: border-box;
122 -o-box-sizing: border-box;
123 box-sizing: border-box;
126 .context-menu-input > label > textarea {
129 .context-menu-item > .context-menu-list {
131 /* re-positioned by js */
136 .context-menu-item.hover > .context-menu-list {
140 .context-menu-accesskey {
141 text-decoration: underline;
144 .context-menu-item.context-menu-heading {
145 text-decoration: underline;