Skip to content

Commit afa221d

Browse files
author
wangxiang
committed
update 页面头部,移除注销,增加 GitHub 链接
update icon font update 左菜单的图标
1 parent 6f70c2b commit afa221d

30 files changed

+397
-1173
lines changed

dist/assets/fonts/icon-font/Read Me.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ To use the generated font in desktop programs, you can install the TTF font. In
44

55
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
66

7-
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
7+
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu Manage Projects) to retrieve your icon selection.

dist/assets/fonts/icon-font/demo-files/demo.css

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,43 @@ body {
77
color: #555;
88
background: #fff;
99
}
10-
1110
h1 {
1211
font-size: 1.5em;
1312
font-weight: normal;
1413
}
15-
1614
small {
1715
font-size: .66666667em;
1816
}
19-
2017
a {
2118
color: #e74c3c;
2219
text-decoration: none;
2320
}
24-
2521
a:hover, a:focus {
2622
box-shadow: 0 1px #e74c3c;
2723
}
28-
2924
.bshadow0, input {
3025
box-shadow: inset 0 -2px #e7e7e7;
3126
}
32-
3327
input:hover {
3428
box-shadow: inset 0 -2px #ccc;
3529
}
36-
3730
input, fieldset {
3831
font-family: sans-serif;
3932
font-size: 1em;
4033
margin: 0;
4134
padding: 0;
4235
border: 0;
4336
}
44-
4537
input {
4638
color: inherit;
4739
line-height: 1.5;
4840
height: 1.5em;
4941
padding: .25em 0;
5042
}
51-
5243
input:focus {
5344
outline: none;
5445
box-shadow: inset 0 -2px #449fdb;
5546
}
56-
5747
.glyph {
5848
font-size: 16px;
5949
width: 15em;
@@ -63,127 +53,99 @@ input:focus {
6353
float: left;
6454
overflow: hidden;
6555
}
66-
6756
.liga {
6857
width: 80%;
6958
width: calc(100% - 2.5em);
7059
}
71-
7260
.talign-right {
7361
text-align: right;
7462
}
75-
7663
.talign-center {
7764
text-align: center;
7865
}
79-
8066
.bgc1 {
8167
background: #f1f1f1;
8268
}
83-
8469
.fgc1 {
8570
color: #999;
8671
}
87-
8872
.fgc0 {
8973
color: #000;
9074
}
91-
9275
p {
9376
margin-top: 1em;
9477
margin-bottom: 1em;
9578
}
96-
9779
.mvm {
9880
margin-top: .75em;
9981
margin-bottom: .75em;
10082
}
101-
10283
.mtn {
10384
margin-top: 0;
10485
}
105-
10686
.mtl, .mal {
10787
margin-top: 1.5em;
10888
}
109-
11089
.mbl, .mal {
11190
margin-bottom: 1.5em;
11291
}
113-
11492
.mal, .mhl {
11593
margin-left: 1.5em;
11694
margin-right: 1.5em;
11795
}
118-
11996
.mhmm {
12097
margin-left: 1em;
12198
margin-right: 1em;
12299
}
123-
124100
.mls {
125101
margin-left: .25em;
126102
}
127-
128103
.ptl {
129104
padding-top: 1.5em;
130105
}
131-
132106
.pbs, .pvs {
133107
padding-bottom: .25em;
134108
}
135-
136109
.pvs, .pts {
137110
padding-top: .25em;
138111
}
139-
140112
.unit {
141113
float: left;
142114
}
143-
144115
.unitRight {
145116
float: right;
146117
}
147-
148118
.size1of2 {
149119
width: 50%;
150120
}
151-
152121
.size1of1 {
153122
width: 100%;
154123
}
155-
156124
.clearfix:before, .clearfix:after {
157125
content: " ";
158126
display: table;
159127
}
160-
161128
.clearfix:after {
162129
clear: both;
163130
}
164-
165131
.hidden-true {
166132
display: none;
167133
}
168-
169134
.textbox0 {
170135
width: 3em;
171136
background: #f1f1f1;
172137
padding: .25em .5em;
173138
line-height: 1.5;
174139
height: 1.5em;
175140
}
176-
177141
#testDrive {
178142
display: block;
179143
padding-top: 24px;
180144
line-height: 1.5;
181145
}
182-
183146
.fs0 {
184147
font-size: 16px;
185148
}
186-
187149
.fs1 {
188150
font-size: 32px;
189151
}
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
if (!('boxShadow' in document.body.style)) {
2-
document.body.setAttribute('class', 'noBoxShadow')
2+
document.body.setAttribute('class', 'noBoxShadow');
33
}
44

55
document.body.addEventListener("click", function (e) {
6-
var target = e.target
6+
var target = e.target;
77
if (target.tagName === "INPUT" &&
88
target.getAttribute('class').indexOf('liga') === -1) {
9-
target.select()
9+
target.select();
1010
}
1111
});
1212

1313
(function () {
1414
var fontSize = document.getElementById('fontSize'),
1515
testDrive = document.getElementById('testDrive'),
16-
testText = document.getElementById('testText')
16+
testText = document.getElementById('testText');
1717

18-
function updateTest () {
19-
testDrive.innerHTML = testText.value || String.fromCharCode(160)
18+
function updateTest() {
19+
testDrive.innerHTML = testText.value || String.fromCharCode(160);
2020
if (window.icomoonLiga) {
21-
window.icomoonLiga(testDrive)
21+
window.icomoonLiga(testDrive);
2222
}
2323
}
2424

25-
function updateSize () {
26-
testDrive.style.fontSize = fontSize.value + 'px'
25+
function updateSize() {
26+
testDrive.style.fontSize = fontSize.value + 'px';
2727
}
2828

29-
fontSize.addEventListener('change', updateSize, false)
30-
testText.addEventListener('input', updateTest, false)
31-
testText.addEventListener('change', updateTest, false)
32-
updateSize()
33-
}())
29+
fontSize.addEventListener('change', updateSize, false);
30+
testText.addEventListener('input', updateTest, false);
31+
testText.addEventListener('change', updateTest, false);
32+
updateSize();
33+
}());

0 commit comments

Comments
 (0)