@import './fonts/iconfont.css';

.cy-editor-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#editor {
    width: 100%;
    display: flex;
    position: absolute;
    top: 44px;
    bottom: 0;
    border: 1px solid #e9e9e9;
    box-sizing: border-box;
}

#editor .left {
    width: 200px;
    left: 0px;
    z-index: 2;
    background: #F7F9FB;
    overflow: auto;
}

#editor .left .shapes {
    padding: 16px;
    text-align: left;
    box-sizing: border-box;
}

#editor .left .title {
    padding: 8px 20px;
    background: #EBEEF2;
    box-sizing: border-box;
}

#editor .shapes img.shape-item {
    width: 80px;
    height: 80px;
    padding: 4px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0);
    box-sizing: border-box;
}
#editor .shapes img.shape-item:hover {
    cursor: move;
    border: 1px solid #ccc;
}

#editor .right {
    width: 220px;
    right: 0px;
    z-index: 2;
    background: #F7F9FB;
}

#editor .right .panel-title {
    height: 32px;
    border-top: 1px solid #DCE3E8;
    border-bottom: 1px solid #DCE3E8;
    background: #EBEEF2;
    color: #000;
    line-height: 28px;
    padding-left: 12px;
    box-sizing: border-box;

}

#editor .right .panel-body {
    padding: 16px 8px;
    box-sizing: border-box;
}

#editor .right .checkbox {
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    vertical-align: text-bottom;
}

#editor .right .input {
    box-sizing: border-box;
    margin: 0;
    list-style: none;
    position: relative;
    display: inline-block;
    padding: 2px 6px;
    width: 100%;
    height: 28px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.65);
    background-color: #fff;
    background-image: none;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    transition: all .3s;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;
}

#editor .right .input:hover {
    border-color: #40a9ff;
    -webkit-appearance: none
}

#editor .right .info-item {
    width: 150px;
    float: right;
}


#editor .right .input.width {
    width: 65px;
    margin-right: 6px
}

#editor .right .input.height {
    width: 65px
}

#editor .right .color-input {
    width: 26px;
    padding: 0;
    vertical-align: middle
}

#info .info-item-wrap {
    margin-bottom: 12px;
    overflow: hidden;
    height: 32px;
    line-height: 32px;
}

#cy {
    flex: 1;
    z-index: 999;
    overflow: hidden
}

#thumb {
    position: relative;
    width: 200px;
    margin: 10px auto;
    height: 160px;
    border: none;
}

#toolbar {
    padding: 8px 10px;
    width: 100%;
    border: 1px solid #E9E9E9;
    z-index: 3;
    box-shadow: 0px 8px 12px 0px rgba(0, 52, 107, 0.04);
    box-sizing: border-box;
}

#toolbar .command {
    width: 28px;
    height: 26px;
    line-height:26px;
    margin: 0px 6px;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid rgba(2,2,2,0);
    text-align: center;
}

#toolbar .disable {
    color: rgba(0,0,0,0.25);
}
#toolbar .selected {
    color: #40a9ff;
}

#toolbar .separator {
    margin: 4px;
    border-left: 1px solid #E9E9E9;
}

#toolbar .command:hover {
    cursor: pointer;
    border: 1px solid #E9E9E9;
}

/*
 *  navigator
*/

.cytoscape-navigator {
    position: fixed;
    border: 1px solid #e4e4e4;
    background: #fff;
    z-index: 99999;
    width: 100%;
    height: 100%;
    min-width: 100px;
    min-height: 100px;
    bottom: 0;
    right: 0;
    overflow: hidden;
}

.cytoscape-navigator > img{
    max-width: 100%;
    max-height: 100%;
}

.cytoscape-navigator > canvas{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
}

.cytoscape-navigatorView{
    position: absolute;
    top: 0;
    left: 0;
    cursor: move;
    background: #B7E1ED;
    opacity: 0.50;
    z-index: 102;
}

.cytoscape-navigatorOverlay{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 103;
}

/*
* context menu
*/
.cy-editor-ctx-menu {
    position: absolute;
    width: 150px;
    z-index: 1000;
    border: 1px solid #ddd;
    background: #EBEEF2;
    border-radius: 4px;
    box-shadow: 0px 4px 8px 0px rgba(2, 16, 31, 0.1);
    display: none;
    padding: 6px 0;
}
.cy-editor-ctx-menu .ctx-menu-item {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    border: 1px solid #EBEEF2;
    box-sizing: border-box;
}
.cy-editor-ctx-menu .ctx-menu-divider {
    height: 1px;
    background: #ddd
}
.cy-editor-ctx-menu .ctx-menu-item:hover {
    background: #40a9ff;
    color: #fff;
    border: 1px solid #40a9ff;
}
.cy-editor-ctx-menu .ctx-menu-item-disabled {
    color: gray;
}
.cy-editor-ctx-menu .ctx-menu-item-disabled:hover {
    background: transparent;
    color: gray;
    border: 1px solid #fff;
}
