diff --git a/css/common/common.less b/css/common/common.less index 69414fa..5377d34 100644 --- a/css/common/common.less +++ b/css/common/common.less @@ -1,3 +1,4 @@ +@import './reset.less'; @import './bootstrap.less'; diff --git a/css/common/editor.less b/css/common/editor.less index 9b32d80..597cc0b 100644 --- a/css/common/editor.less +++ b/css/common/editor.less @@ -1,25 +1,6 @@ // 编辑器样式集合 -.close-editor { - .ico(); - .i-ico('\e611'); - - position: absolute; - right: 0; - top: 0; - z-index: 100; - padding: 0 3px; - z-index: 100; - font-size: 14px; - background: #FFF; - border-left: 1px solid #000; - display: none; - &:hover { - cursor: pointer - } -} - .glyf-editor { width: 100%; @@ -28,30 +9,6 @@ -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; - - .editor-contextmenu { - - width: 120px; - border: 1px solid #999; - background: #FEFEFE; - line-height: 24px; - padding: 0 4px; - box-shadow: 1px 1px 1px #CCC; - - div { - padding-left: 10px; - cursor: pointer; - border-bottom: 1px solid #CCC; - } - - div:hover { - background: #EEE; - } - - div:last-child { - border-bottom: none; - } - } .marker-x, .marker-y { @@ -73,8 +30,60 @@ } } +.editor-contextmenu { + + color: #333; + width: 140px; + border: 1px solid #999; + background: #FEFEFE; + line-height: 24px; + padding: 0 4px; + box-shadow: 1px 1px 1px #CCC; + position: absolute; + + li { + padding-left: 10px; + cursor: pointer; + border-bottom: 1px solid #CCC; + >ul { + display: none; + color: #333; + width: 140px; + border: 1px solid #999; + background: #FEFEFE; + line-height: 24px; + padding: 0 4px; + box-shadow: 1px 1px 1px #CCC; + position: absolute; + margin-left: 120px; + } + } + + >li[data-sub] { + color: green; + &:after { + content:'>'; + margin-right: 10px; + float: right; + font-family: 'Simsun'; + } + } + + li:hover { + background: #EEE; + >ul { + display: block; + } + } + + li:last-child { + border-bottom: none; + } +} + .editor:hover { .close-editor { display: block; } -} \ No newline at end of file +} + diff --git a/css/common/ico.less b/css/common/ico.less index 03563c3..b4f1ae8 100644 --- a/css/common/ico.less +++ b/css/common/ico.less @@ -41,4 +41,23 @@ .i-github { .ico(); .i-ico('\e600'); +} + +.close-editor { + .ico(); + .i-ico('\e611'); + + position: absolute; + right: 0; + top: 0; + z-index: 100; + padding: 0 3px; + z-index: 100; + font-size: 14px; + background: #FFF; + border-left: 1px solid #000; + display: none; + &:hover { + cursor: pointer + } } \ No newline at end of file diff --git a/demo/contoursCombine.html b/demo/contoursCombine.html index 04b2da3..28fa199 100644 --- a/demo/contoursCombine.html +++ b/demo/contoursCombine.html @@ -19,7 +19,7 @@ define('jquery', $); -
+ - +