fonteditor/css/common/editor.less
2014-12-13 21:45:36 +08:00

95 lines
1.7 KiB
Plaintext

// 编辑器样式集合
.glyf-editor {
width: 100%;
height: 100%;
font-size: 12px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
.marker-x,
.marker-y {
position: absolute;
width: 0;
height: 0;
z-index: 60;
pointer-events: none;
}
.marker-x {
width: 20px;
border-top: 1px dashed #000;
}
.marker-y {
height: 20px;
border-left: 1px dashed #000;
}
}
.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: #4A90E2;
&:after {
content:'>';
margin-right: 10px;
float: right;
font-family: 'Simsun';
}
}
li[data-tag="selected"] {
.icon();
.i-ico('\e01f', 'after');
display: block;
&:after {
float: right;
margin-right: 10px;
color: #4A90E2;
}
}
li:hover {
background: #EEE;
>ul {
display: block;
}
}
li:last-child {
border-bottom: none;
}
}