add woff2 support
use es6 module
This commit is contained in:
333
css/editor.css
333
css/editor.css
@@ -1,333 +0,0 @@
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
/**
|
||||
* @file 重置样式
|
||||
* @author mengke01(kekee000@gmail.com)
|
||||
*/
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
blockquote,
|
||||
body,
|
||||
button,
|
||||
dd,
|
||||
dl,
|
||||
dt,
|
||||
fieldset,
|
||||
form,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
hr,
|
||||
input,
|
||||
legend,
|
||||
li,
|
||||
ol,
|
||||
p,
|
||||
pre,
|
||||
td,
|
||||
textarea,
|
||||
th,
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font: 12px/1.5 tahoma, arial, sans-serif;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: 100%;
|
||||
}
|
||||
address,
|
||||
cite,
|
||||
dfn,
|
||||
em,
|
||||
var {
|
||||
font-style: normal;
|
||||
}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: courier new, courier, monospace;
|
||||
}
|
||||
small {
|
||||
font-size: 12px;
|
||||
}
|
||||
ol,
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
legend {
|
||||
color: #000;
|
||||
}
|
||||
fieldset,
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-size: 100%;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'fonteditor';
|
||||
src: url('../../font/fonteditor.ttf') format('truetype');
|
||||
}
|
||||
.ico {
|
||||
display: inline-block;
|
||||
}
|
||||
.ico:before,
|
||||
.ico:after {
|
||||
font-family: 'fonteditor';
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-stroke-width: 0.1px;
|
||||
}
|
||||
.i-leave:before {
|
||||
content: '\e00c';
|
||||
}
|
||||
.i-edit,
|
||||
.i-del,
|
||||
.i-leave {
|
||||
font-size: 12px;
|
||||
}
|
||||
.i-edit:hover,
|
||||
.i-del:hover,
|
||||
.i-leave:hover {
|
||||
cursor: pointer;
|
||||
color: #4A90E2;
|
||||
}
|
||||
.i-edit,
|
||||
.i-del {
|
||||
color: #76abe9;
|
||||
}
|
||||
.i-edit:before {
|
||||
content: '\e021';
|
||||
}
|
||||
.i-del:before {
|
||||
content: '\e020';
|
||||
}
|
||||
.i-github:before {
|
||||
content: '\e01e';
|
||||
}
|
||||
.i-help:before {
|
||||
content: '\e016';
|
||||
}
|
||||
.i-new:before {
|
||||
content: '\e019';
|
||||
}
|
||||
.i-open:before {
|
||||
content: '\e01A';
|
||||
}
|
||||
.i-add:before {
|
||||
content: '\e003';
|
||||
}
|
||||
.i-undo:before {
|
||||
content: '\e001';
|
||||
}
|
||||
.i-redo:before {
|
||||
content: '\e002';
|
||||
}
|
||||
.i-down:before {
|
||||
content: '\e00e';
|
||||
}
|
||||
.i-left:before {
|
||||
content: '\e00a';
|
||||
}
|
||||
.i-ttf:before {
|
||||
content: '\e00f';
|
||||
}
|
||||
.i-woff:before {
|
||||
content: '\e010';
|
||||
}
|
||||
.i-zip:before {
|
||||
content: '\e011';
|
||||
}
|
||||
.i-save:before {
|
||||
content: '\e022';
|
||||
}
|
||||
.i-upshape:before {
|
||||
content: '\e014';
|
||||
}
|
||||
.i-downshape:before {
|
||||
content: '\e00b';
|
||||
}
|
||||
.i-reversepoints:before {
|
||||
content: '\e00d';
|
||||
}
|
||||
.i-alignleft:before {
|
||||
content: '\e006';
|
||||
}
|
||||
.i-aligncenter:before {
|
||||
content: '\e004';
|
||||
}
|
||||
.i-alignright:before {
|
||||
content: '\e007';
|
||||
}
|
||||
.i-aligntop:before {
|
||||
content: '\e008';
|
||||
}
|
||||
.i-alignmiddle:before {
|
||||
content: '\e005';
|
||||
}
|
||||
.i-aligndescent:before {
|
||||
content: '\e009';
|
||||
}
|
||||
.i-alignbaseline:before {
|
||||
content: '\e009';
|
||||
}
|
||||
.i-rotateleft:before {
|
||||
content: '\e01c';
|
||||
}
|
||||
.i-rotateright:before {
|
||||
content: '\e01d';
|
||||
}
|
||||
.i-flip:before {
|
||||
content: '\e013';
|
||||
}
|
||||
.i-mirror:before {
|
||||
content: '\e012';
|
||||
}
|
||||
.i-splitshapes:before {
|
||||
content: '\e024';
|
||||
}
|
||||
.i-joinshapes:before {
|
||||
content: '\e025';
|
||||
}
|
||||
.i-intersectshapes:before {
|
||||
content: '\e026';
|
||||
}
|
||||
.i-tangencyshapes:before {
|
||||
content: '\e027';
|
||||
}
|
||||
.i-rangemode:before {
|
||||
content: '\e029';
|
||||
}
|
||||
.i-pointmode:before {
|
||||
content: '\e028';
|
||||
}
|
||||
.glyf-editor {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 12px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
display: none;
|
||||
}
|
||||
.glyf-editor .marker-x,
|
||||
.glyf-editor .marker-y {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
z-index: 60;
|
||||
pointer-events: none;
|
||||
}
|
||||
.glyf-editor .marker-x {
|
||||
width: 20px;
|
||||
border-top: 1px dashed #000;
|
||||
}
|
||||
.glyf-editor .marker-y {
|
||||
height: 20px;
|
||||
border-left: 1px dashed #000;
|
||||
}
|
||||
.editor-contextmenu {
|
||||
color: #333;
|
||||
width: 150px;
|
||||
border: 1px solid #999;
|
||||
background: #FEFEFE;
|
||||
line-height: 24px;
|
||||
padding: 0 4px;
|
||||
box-shadow: 1px 1px 1px #CCC;
|
||||
position: absolute;
|
||||
}
|
||||
.editor-contextmenu li {
|
||||
padding-left: 4px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid #CCC;
|
||||
}
|
||||
.editor-contextmenu li > ul {
|
||||
display: none;
|
||||
color: #333;
|
||||
width: 150px;
|
||||
border: 1px solid #999;
|
||||
background: #FEFEFE;
|
||||
line-height: 24px;
|
||||
padding: 0 4px;
|
||||
box-shadow: 1px 1px 1px #CCC;
|
||||
position: absolute;
|
||||
margin-left: 130px;
|
||||
}
|
||||
.editor-contextmenu > li[data-sub] {
|
||||
color: #4A90E2;
|
||||
}
|
||||
.editor-contextmenu > li[data-sub]:after {
|
||||
content: '>';
|
||||
margin-right: 10px;
|
||||
float: right;
|
||||
font-family: 'Simsun';
|
||||
}
|
||||
.editor-contextmenu li[data-tag="selected"] {
|
||||
display: inline-block;
|
||||
display: block;
|
||||
}
|
||||
.editor-contextmenu li[data-tag="selected"]:before,
|
||||
.editor-contextmenu li[data-tag="selected"]:after {
|
||||
font-family: 'fonteditor';
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-stroke-width: 0.1px;
|
||||
}
|
||||
.editor-contextmenu li[data-tag="selected"]:after {
|
||||
content: '\e01f';
|
||||
}
|
||||
.editor-contextmenu li[data-tag="selected"]:after {
|
||||
float: right;
|
||||
margin-right: 4px;
|
||||
color: #4A90E2;
|
||||
}
|
||||
.editor-contextmenu li:hover {
|
||||
background: #EEE;
|
||||
}
|
||||
.editor-contextmenu li:hover > ul {
|
||||
display: block;
|
||||
}
|
||||
.editor-contextmenu li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.editor-panel {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
font-size: 12px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
*{margin:0;padding:0;list-style:none}blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}body,button,input,select,textarea{font:12px/1.5 tahoma,arial,sans-serif}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:courier new,courier,monospace}small{font-size:12px}ol,ul{list-style:none}a{text-decoration:none}a:hover{text-decoration:underline}legend{color:#000}fieldset,img{border:0}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}.main{padding:30px 100px}.main h1{font-size:36px;color:#333;text-align:left;margin-bottom:30px;border-bottom:1px solid #eee}.helps{margin-top:40px}.helps pre{padding:20px;margin:10px 0;border:solid 1px #e7e1cd;background-color:#fffdef;overflow:auto}.iconfont-list{overflow:hidden}.iconfont-list li{float:left;width:100px;height:150px;text-align:center}.iconfont-list .icon{font-size:42px;line-height:100px;margin:10px 0;color:#333;font-style:normal;-webkit-transition:font-size .25s ease-out 0s;-moz-transition:font-size .25s ease-out 0s;transition:font-size .25s ease-out 0s}.iconfont-list .icon:hover{font-size:100px}.iconfont-list .code{color:green;font-weight:bold}
|
||||
@@ -195,3 +195,7 @@
|
||||
.i-pointmode {
|
||||
.i-ico('\e028');
|
||||
}
|
||||
|
||||
.i-woff2 {
|
||||
.i-ico('\e030');
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
float: left;
|
||||
width: 180px;
|
||||
height: 50px;
|
||||
background: url(../img/logo.png) no-repeat;
|
||||
background: url(../img/logo@1x.png) no-repeat;
|
||||
background-color: #fff;
|
||||
background-position: center;
|
||||
background-image: url(../img/logo@1x.png);
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
/**
|
||||
* @file 重置样式
|
||||
* @author mengke01(kekee000@gmail.com)
|
||||
*/
|
||||
// 重置样式
|
||||
|
||||
* {
|
||||
margin:0;
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
/**
|
||||
* @file 页面相关工具
|
||||
* @author mengke01(kekee000@gmail.com)
|
||||
*/
|
||||
|
||||
.ellipsis() {
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user