245 lines
6.9 KiB
CSS
245 lines
6.9 KiB
CSS
|
|
||
|
/* ContextMenu - main menu */
|
||
|
|
||
|
div.jsoneditor-contextmenu-root {
|
||
|
position: relative;
|
||
|
width: 0;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu {
|
||
|
position: absolute;
|
||
|
box-sizing: content-box;
|
||
|
z-index: 99999;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul,
|
||
|
div.jsoneditor-contextmenu li {
|
||
|
box-sizing: content-box;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul {
|
||
|
position: relative;
|
||
|
left: 0;
|
||
|
top: 0;
|
||
|
width: 124px;
|
||
|
|
||
|
background: white;
|
||
|
border: 1px solid #d3d3d3;
|
||
|
box-shadow: 2px 2px 12px rgba(128, 128, 128, 0.3);
|
||
|
|
||
|
list-style: none;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
width: 124px;
|
||
|
height: 24px;
|
||
|
border: none;
|
||
|
cursor: pointer;
|
||
|
color: #4d4d4d;
|
||
|
background: transparent;
|
||
|
|
||
|
font-size: 10pt;
|
||
|
font-family: arial, sans-serif;
|
||
|
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
line-height: 26px;
|
||
|
text-align: left;
|
||
|
}
|
||
|
|
||
|
/* Fix button padding in firefox */
|
||
|
div.jsoneditor-contextmenu ul li button::-moz-focus-inner {
|
||
|
padding: 0;
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button:hover,
|
||
|
div.jsoneditor-contextmenu ul li button:focus {
|
||
|
color: #1a1a1a;
|
||
|
background-color: #f5f5f5;
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-default {
|
||
|
width: 92px;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-expand {
|
||
|
float: right;
|
||
|
width: 32px;
|
||
|
height: 24px;
|
||
|
border-left: 1px solid #e5e5e5;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu div.jsoneditor-icon {
|
||
|
float: left;
|
||
|
width: 24px;
|
||
|
height: 24px;
|
||
|
border: none;
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
background-image: url('img/jsoneditor-icons.svg');
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button div.jsoneditor-expand {
|
||
|
float: right;
|
||
|
width: 24px;
|
||
|
height: 24px;
|
||
|
padding: 0;
|
||
|
margin: 0 4px 0 0;
|
||
|
background: url('img/jsoneditor-icons.svg') 0 -72px;
|
||
|
opacity: 0.4;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button:hover div.jsoneditor-expand,
|
||
|
div.jsoneditor-contextmenu ul li button:focus div.jsoneditor-expand,
|
||
|
div.jsoneditor-contextmenu ul li.jsoneditor-selected div.jsoneditor-expand,
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-expand:hover div.jsoneditor-expand,
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-expand:focus div.jsoneditor-expand {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu div.jsoneditor-separator {
|
||
|
height: 0;
|
||
|
border-top: 1px solid #e5e5e5;
|
||
|
padding-top: 5px;
|
||
|
margin-top: 5px;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-remove > div.jsoneditor-icon {
|
||
|
background-position: -24px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-remove:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-remove:focus > div.jsoneditor-icon {
|
||
|
background-position: -24px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-append > div.jsoneditor-icon {
|
||
|
background-position: 0 -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-append:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-append:focus > div.jsoneditor-icon {
|
||
|
background-position: 0 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-insert > div.jsoneditor-icon {
|
||
|
background-position: 0 -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-insert:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-insert:focus > div.jsoneditor-icon {
|
||
|
background-position: 0 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-duplicate > div.jsoneditor-icon {
|
||
|
background-position: -48px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-duplicate:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-duplicate:focus > div.jsoneditor-icon {
|
||
|
background-position: -48px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-asc > div.jsoneditor-icon {
|
||
|
background-position: -168px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-asc:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-asc:focus > div.jsoneditor-icon {
|
||
|
background-position: -168px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-desc > div.jsoneditor-icon {
|
||
|
background-position: -192px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-desc:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-sort-desc:focus > div.jsoneditor-icon {
|
||
|
background-position: -192px 0;
|
||
|
}
|
||
|
|
||
|
/* ContextMenu - sub menu */
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-selected,
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-selected:hover,
|
||
|
div.jsoneditor-contextmenu ul li button.jsoneditor-selected:focus {
|
||
|
color: white;
|
||
|
background-color: #ee422e;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li {
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li ul {
|
||
|
display: none;
|
||
|
position: relative;
|
||
|
left: -10px;
|
||
|
top: 0;
|
||
|
|
||
|
border: none;
|
||
|
box-shadow: inset 0 0 10px rgba(128, 128, 128, 0.5);
|
||
|
padding: 0 10px;
|
||
|
|
||
|
/* TODO: transition is not supported on IE8-9 */
|
||
|
-webkit-transition: all 0.3s ease-out;
|
||
|
-moz-transition: all 0.3s ease-out;
|
||
|
-o-transition: all 0.3s ease-out;
|
||
|
transition: all 0.3s ease-out;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li.jsoneditor-selected ul {
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li ul li button {
|
||
|
padding-left: 24px;
|
||
|
animation: all ease-in-out 1s;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu ul li ul li button:hover,
|
||
|
div.jsoneditor-contextmenu ul li ul li button:focus {
|
||
|
background-color: #f5f5f5;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-string > div.jsoneditor-icon {
|
||
|
background-position: -144px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-string:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-string:focus > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-string.jsoneditor-selected > div.jsoneditor-icon{
|
||
|
background-position: -144px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-auto > div.jsoneditor-icon {
|
||
|
background-position: -120px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-auto:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-auto:focus > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-auto.jsoneditor-selected > div.jsoneditor-icon {
|
||
|
background-position: -120px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-object > div.jsoneditor-icon {
|
||
|
background-position: -72px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-object:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-object:focus > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-object.jsoneditor-selected > div.jsoneditor-icon{
|
||
|
background-position: -72px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-array > div.jsoneditor-icon {
|
||
|
background-position: -96px -24px;
|
||
|
}
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-array:hover > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-array:focus > div.jsoneditor-icon,
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-array.jsoneditor-selected > div.jsoneditor-icon{
|
||
|
background-position: -96px 0;
|
||
|
}
|
||
|
|
||
|
div.jsoneditor-contextmenu button.jsoneditor-type-modes > div.jsoneditor-icon {
|
||
|
background-image: none;
|
||
|
width: 6px;
|
||
|
}
|