2016-09-14 11:21:53 +02:00
|
|
|
/*!
|
|
|
|
* jQuery contextMenu - Plugin for simple contextMenu handling
|
|
|
|
*
|
|
|
|
* Version: 1.6.5
|
|
|
|
*
|
|
|
|
* Authors: Rodney Rehm, Addy Osmani (patches for FF)
|
|
|
|
* Web: http://medialize.github.com/jQuery-contextMenu/
|
|
|
|
*
|
|
|
|
* Licensed under
|
|
|
|
* MIT License http://www.opensource.org/licenses/mit-license
|
|
|
|
* GPL v3 http://opensource.org/licenses/GPL-3.0
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
.context-menu-list {
|
2019-02-07 08:59:45 +01:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
min-width: 120px;
|
|
|
|
max-width: 250px;
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
list-style-type: none;
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 4px;
|
|
|
|
background: #eee;
|
|
|
|
|
|
|
|
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
|
|
|
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
|
|
|
-ms-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
|
|
|
-o-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
|
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
|
|
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
text-align: left;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item {
|
2019-02-07 08:59:45 +01:00
|
|
|
padding: 0px 2px 0px 24px;
|
|
|
|
background-color: #eee;
|
|
|
|
position: relative;
|
|
|
|
border-radius: 4px;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: -moz-none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
2021-03-11 15:40:23 +01:00
|
|
|
color: #111;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item span {
|
2019-02-07 08:59:45 +01:00
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
padding-left: 10px;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-separator {
|
2019-02-07 08:59:45 +01:00
|
|
|
padding-bottom: 0;
|
|
|
|
border-bottom: 1px solid #ddd;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item > label > input,
|
|
|
|
.context-menu-item > label > textarea {
|
2019-02-07 08:59:45 +01:00
|
|
|
-webkit-user-select: text;
|
|
|
|
-moz-user-select: text;
|
|
|
|
-ms-user-select: text;
|
|
|
|
user-select: text;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item.hover {
|
2019-02-07 08:59:45 +01:00
|
|
|
cursor: pointer;
|
2021-11-04 16:28:15 +01:00
|
|
|
background-color: #82b92e;
|
2019-02-07 08:59:45 +01:00
|
|
|
border-radius: 4px;
|
|
|
|
color: #fff;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item.disabled {
|
2019-02-07 08:59:45 +01:00
|
|
|
color: #666 !important;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-input.hover,
|
|
|
|
.context-menu-item.disabled.hover {
|
2019-02-07 08:59:45 +01:00
|
|
|
cursor: default;
|
|
|
|
background-color: #eee;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-submenu:after {
|
2019-02-07 08:59:45 +01:00
|
|
|
content: ">";
|
|
|
|
color: #666;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 3px;
|
|
|
|
z-index: 1;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* icons
|
|
|
|
#protip:
|
|
|
|
In case you want to use sprites for icons (which I would suggest you do) have a look at
|
|
|
|
http://css-tricks.com/13224-pseudo-spriting/ to get an idea of how to implement
|
|
|
|
.context-menu-item.icon:before {}
|
|
|
|
*/
|
2019-02-07 08:59:45 +01:00
|
|
|
.context-menu-item.icon {
|
|
|
|
min-height: 18px;
|
|
|
|
background-repeat: no-repeat;
|
2021-11-29 15:54:45 +01:00
|
|
|
background-position: 4px center;
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-edit {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/page_white_edit.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-cut {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/cut.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-copy {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/page_white_copy.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-paste {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/page_white_paste.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-delete {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/delete.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-add {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/page_white_add.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-quit {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/door.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-refresh {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/refresh.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-center {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/set_center.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-details {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/show_details.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-children {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/children.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-cancel_set_parent {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/link_delete.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-set_parent {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/father.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-add_node {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/add.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-refresh_holding_area {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/refresh_holding_area.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-restart_map {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/reset.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-interface_link_children {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/icono_link_hijo.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-interface_link_parent {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/icono_link_padre.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
|
|
|
.context-menu-item.icon-interface_link_cancel {
|
2019-03-05 15:33:27 +01:00
|
|
|
background-image: url(../../../images/link_abortar.png);
|
2019-02-07 08:59:45 +01:00
|
|
|
}
|
2021-11-29 15:54:45 +01:00
|
|
|
.context-menu-item.icon-show {
|
|
|
|
background-image: url(../../../images/eye_show.png);
|
|
|
|
}
|
2016-09-14 11:21:53 +02:00
|
|
|
|
|
|
|
/* vertically align inside labels */
|
2019-02-07 08:59:45 +01:00
|
|
|
.context-menu-input > label > * {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
2016-09-14 11:21:53 +02:00
|
|
|
|
|
|
|
/* position checkboxes and radios as icons */
|
|
|
|
.context-menu-input > label > input[type="checkbox"],
|
|
|
|
.context-menu-input > label > input[type="radio"] {
|
2019-02-07 08:59:45 +01:00
|
|
|
margin-left: -17px;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
.context-menu-input > label > span {
|
2019-02-07 08:59:45 +01:00
|
|
|
margin-left: 5px;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-input > label,
|
|
|
|
.context-menu-input > label > input[type="text"],
|
|
|
|
.context-menu-input > label > textarea,
|
|
|
|
.context-menu-input > label > select {
|
2019-02-07 08:59:45 +01:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-ms-box-sizing: border-box;
|
|
|
|
-o-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-input > label > textarea {
|
2019-02-07 08:59:45 +01:00
|
|
|
height: 100px;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
.context-menu-item > .context-menu-list {
|
2019-02-07 08:59:45 +01:00
|
|
|
display: none;
|
|
|
|
/* re-positioned by js */
|
|
|
|
right: -5px;
|
|
|
|
top: 5px;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-item.hover > .context-menu-list {
|
2019-02-07 08:59:45 +01:00
|
|
|
display: block;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.context-menu-accesskey {
|
2019-02-07 08:59:45 +01:00
|
|
|
text-decoration: underline;
|
2016-09-14 11:21:53 +02:00
|
|
|
}
|