2015-05-27 15:43:29 +08:00
|
|
|
|
# Iconfont
|
|
|
|
|
|
|
|
|
|
- category: CSS
|
|
|
|
|
- chinese: 字体图标
|
2015-06-02 12:11:49 +08:00
|
|
|
|
- order: 1
|
2015-06-07 17:18:14 +08:00
|
|
|
|
- nodemos: true
|
2015-05-27 15:43:29 +08:00
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2015-06-17 19:48:17 +08:00
|
|
|
|
有含义的矢量图形,每一个图标打倒一个敌人。
|
|
|
|
|
|
2015-06-17 18:20:39 +08:00
|
|
|
|
## 图标的命名规范
|
|
|
|
|
|
2015-07-09 18:17:15 +08:00
|
|
|
|
我们为每个图标赋予了语义化的命名。我们的命名规范如:
|
2015-06-17 18:20:39 +08:00
|
|
|
|
|
2015-07-10 17:17:58 +08:00
|
|
|
|
- 使用 `-` 来连接单词;
|
2015-06-17 18:20:39 +08:00
|
|
|
|
|
2015-07-10 17:17:58 +08:00
|
|
|
|
- 实心和描线图标保持同名,用 `-o` 来区分,比如 `question-circle`(实心) 和 `question-circle-o`(描线);
|
2015-06-17 18:20:39 +08:00
|
|
|
|
|
2015-07-10 17:17:58 +08:00
|
|
|
|
- 命名顺序:`[icon名]-[描线与否]-[方向]`。
|
2015-06-17 18:20:39 +08:00
|
|
|
|
|
2015-06-17 19:46:23 +08:00
|
|
|
|
每个图标的类名需要在图标名称前加上 `anticon-` 前缀,如 `.anticon-question-circle`。
|
2015-06-17 18:20:39 +08:00
|
|
|
|
|
2015-06-07 14:01:59 +08:00
|
|
|
|
## 如何使用
|
|
|
|
|
|
2015-06-17 19:46:23 +08:00
|
|
|
|
使用时所有的图标都需要一个基类 `.anticon` 和对应每个图标的类。在这里,我们使用 `<i>` 标签,如下面代码演示使用即可。
|
2015-06-07 14:01:59 +08:00
|
|
|
|
|
|
|
|
|
```html
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-link"></i>
|
2015-06-07 14:01:59 +08:00
|
|
|
|
```
|
|
|
|
|
|
2015-06-09 12:16:39 +08:00
|
|
|
|
> 点击图标复制代码。
|
|
|
|
|
|
2015-05-27 15:43:29 +08:00
|
|
|
|
## 图标列表
|
|
|
|
|
|
2015-06-08 22:42:36 +08:00
|
|
|
|
### 一. 方向性图标
|
2015-06-10 18:13:49 +08:00
|
|
|
|
|
|
|
|
|
<ul class="row anticons-list clearfix">
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-step-backward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">step-backward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-step-forward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">step-forward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-fast-backward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">fast-backward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-fast-forward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">fast-forward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-shrink"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">shrink</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-arrow-salt"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">arrow-salt</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-06-12 15:31:41 +08:00
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-down"></i>
|
|
|
|
|
<span class="anticon-class">down</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-up"></i>
|
|
|
|
|
<span class="anticon-class">up</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-left"></i>
|
|
|
|
|
<span class="anticon-class">left</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-right"></i>
|
|
|
|
|
<span class="anticon-class">right</span>
|
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-down"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-down</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-up"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-up</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-left"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-right"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-circle-right"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-circle-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-caret-circle-left"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">caret-circle-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-caret-circle-o-right"></i>
|
|
|
|
|
<span class="anticon-class">caret-circle-o-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-caret-circle-o-left"></i>
|
|
|
|
|
<span class="anticon-class">caret-circle-o-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-circle-right"></i>
|
|
|
|
|
<span class="anticon-class">circle-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-circle-left"></i>
|
|
|
|
|
<span class="anticon-class">circle-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-circle-o-right"></i>
|
|
|
|
|
<span class="anticon-class">circle-o-right</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-circle-o-left"></i>
|
|
|
|
|
<span class="anticon-class">circle-o-left</span>
|
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-double-right"></i>
|
|
|
|
|
<span class="anticon-class">double-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-double-left"></i>
|
|
|
|
|
<span class="anticon-class">double-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-verticle-right"></i>
|
|
|
|
|
<span class="anticon-class">verticle-right</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 09:15:29 +08:00
|
|
|
|
<i class="anticon anticon-verticle-left"></i>
|
|
|
|
|
<span class="anticon-class">verticle-left</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-forward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">forward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-backward"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">backward</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-rollback"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">rollback</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-retweet"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">retweet</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
2015-06-08 22:42:36 +08:00
|
|
|
|
### 二. 提示建议性图标
|
2015-06-05 20:26:41 +08:00
|
|
|
|
|
2015-06-10 18:13:49 +08:00
|
|
|
|
<ul class="anticons-list clearfix">
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-question"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">question</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-question-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">question-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-question-circle"></i>
|
|
|
|
|
<span class="anticon-class">question-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-plus"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">plus</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-plus-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">plus-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-plus-circle"></i>
|
|
|
|
|
<span class="anticon-class">plus-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-pause"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">pause</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-pause-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">pause-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-pause-circle"></i>
|
|
|
|
|
<span class="anticon-class">pause-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-minus"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">minus</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-minus-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">minus-circle-o</span>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-minus-circle"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">minus-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-info"></i>
|
|
|
|
|
<span class="anticon-class">info</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-info-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">info-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-info-circle"></i>
|
|
|
|
|
<span class="anticon-class">info-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-exclamation"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">exclamation</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-exclamation-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">exclamation-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-exclamation-circle"></i>
|
|
|
|
|
<span class="anticon-class">exclamation-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-cross"></i>
|
|
|
|
|
<span class="anticon-class">cross</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-cross-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">cross-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-cross-circle"></i>
|
|
|
|
|
<span class="anticon-class">cross-circle</span>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-check"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">check</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 18:20:39 +08:00
|
|
|
|
<i class="anticon anticon-check-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">check-circle-o</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-check-circle"></i>
|
|
|
|
|
<span class="anticon-class">check-circle</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-clock-circle-o"></i>
|
|
|
|
|
<span class="anticon-class">clock-circle-o</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-11 10:57:32 +08:00
|
|
|
|
<i class="anticon anticon-clock-circle"></i>
|
|
|
|
|
<span class="anticon-class">clock-circle</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
2015-06-08 22:42:36 +08:00
|
|
|
|
### 三. 网站通用图标
|
2015-06-05 20:26:41 +08:00
|
|
|
|
|
2015-06-10 18:13:49 +08:00
|
|
|
|
<ul class="anticons-list clearfix">
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-lock"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">lock</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-06-12 15:31:41 +08:00
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-unlock"></i>
|
|
|
|
|
<span class="anticon-class">unlock</span>
|
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-android"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">android</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-apple"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">apple</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-area-chart"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">area-chart</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-bar-chart"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">bar-chart</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-bars"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">bars</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-book"></i>
|
|
|
|
|
<span class="anticon-class">book</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-calendar"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">calendar</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-cloud"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">cloud</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-cloud-download"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">cloud-download</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-code"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">code</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-copy"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">copy</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-credit-card"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">credit-card</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-delete"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">delete</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-desktop"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">desktop</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-download-line"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">download-line</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-edit"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">edit</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-ellipsis"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">ellipsis</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-environment"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">environment</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-file"></i>
|
|
|
|
|
<span class="anticon-class">file</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-file-text"></i>
|
|
|
|
|
<span class="anticon-class">file-text</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-folder"></i>
|
|
|
|
|
<span class="anticon-class">folder</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-folder-open"></i>
|
|
|
|
|
<span class="anticon-class">folder-open</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-github"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">github</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-hdd"></i>
|
|
|
|
|
<span class="anticon-class">hdd</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-frown"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">frown</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-meh"></i>
|
|
|
|
|
<span class="anticon-class">meh</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-inbox"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">inbox</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-laptop"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">laptop</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-large"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">large</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-line-chart"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">line-chart</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-link"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">link</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-logout"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">logout</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-mail"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">mail</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-menu-fold"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">menu-fold</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-menu-unfold"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">menu-unfold</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-mobile"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">mobile</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-notification"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">notification</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-paper-clip"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">paper-clip</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-picture"></i>
|
|
|
|
|
<span class="anticon-class">picture</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-pie-chart"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">pie-chart</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-poweroff"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">poweroff</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-reload"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">reload</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-search"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">search</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-setting"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">setting</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-share-alt"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">share-alt</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-shopping-cart"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">shopping-cart</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-smile"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">smile</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-tablet"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">tablet</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-tag"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">tag</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-tags"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">tags</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-17 22:13:45 +08:00
|
|
|
|
<i class="anticon anticon-to-top"></i>
|
|
|
|
|
<span class="anticon-class">to-top</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-upload"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">upload</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-user"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">user</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-video-camera"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">video-camera</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-windows"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">windows</span>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</li>
|
2015-07-09 18:17:15 +08:00
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-ie"></i>
|
|
|
|
|
<span class="anticon-class">ie</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-chrome"></i>
|
|
|
|
|
<span class="anticon-class">chrome</span>
|
|
|
|
|
</li>
|
2015-07-09 20:06:11 +08:00
|
|
|
|
<li>
|
|
|
|
|
<i class="anticon anticon-home"></i>
|
|
|
|
|
<span class="anticon-class">home</span>
|
|
|
|
|
</li>
|
2015-06-08 16:13:50 +08:00
|
|
|
|
<li>
|
2015-06-09 16:50:26 +08:00
|
|
|
|
<i class="anticon anticon-loading"></i>
|
2015-06-09 16:55:31 +08:00
|
|
|
|
<span class="anticon-class">loading</span>
|
2015-06-08 16:13:50 +08:00
|
|
|
|
</li>
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<style>
|
2015-06-07 17:18:14 +08:00
|
|
|
|
ul.anticons-list {
|
|
|
|
|
margin: 20px 0;
|
|
|
|
|
list-style: none;
|
2015-06-10 18:13:49 +08:00
|
|
|
|
width: 120%;
|
2015-06-07 17:18:14 +08:00
|
|
|
|
}
|
2015-06-08 12:39:35 +08:00
|
|
|
|
ul.anticons-list li {
|
2015-06-07 17:18:14 +08:00
|
|
|
|
float: left;
|
2015-06-10 20:40:10 +08:00
|
|
|
|
margin: 5px 5px 5px 0;
|
|
|
|
|
width: 155px;
|
2015-06-07 17:18:14 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
list-style: none;
|
|
|
|
|
cursor: pointer;
|
2015-06-09 12:11:43 +08:00
|
|
|
|
height: 110px;
|
2015-06-08 12:39:35 +08:00
|
|
|
|
color: #5C6B77;
|
2015-06-08 12:41:37 +08:00
|
|
|
|
transition: all 0.2s ease;
|
2015-06-08 23:41:11 +08:00
|
|
|
|
position: relative;
|
2015-06-15 20:29:51 +08:00
|
|
|
|
padding: 0;
|
2015-06-08 23:41:11 +08:00
|
|
|
|
}
|
2015-06-09 12:11:43 +08:00
|
|
|
|
ul.anticons-list li:hover,
|
|
|
|
|
ul.anticons-list li.zeroclipboard-is-hover {
|
2015-06-08 22:42:36 +08:00
|
|
|
|
background-color: #4BB8FF;
|
2015-06-08 12:39:35 +08:00
|
|
|
|
color: #fff;
|
2015-06-07 17:18:14 +08:00
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
2015-06-09 12:11:43 +08:00
|
|
|
|
ul.anticons-list li.copied.zeroclipboard-is-hover {
|
|
|
|
|
color: rgba(255,255,255,0.2);
|
|
|
|
|
}
|
|
|
|
|
ul.anticons-list li:after {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 0;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
content: "Copied!";
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 110px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
ul.anticons-list li.copied:after {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
top: 0;
|
2015-06-08 23:41:11 +08:00
|
|
|
|
}
|
2015-06-07 17:18:14 +08:00
|
|
|
|
.anticon {
|
2015-06-09 12:11:43 +08:00
|
|
|
|
font-size: 26px;
|
2015-06-15 20:29:51 +08:00
|
|
|
|
margin: 12px 0 16px;
|
2015-06-07 17:18:14 +08:00
|
|
|
|
}
|
|
|
|
|
.anticon-class {
|
|
|
|
|
display: block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
word-wrap: break-word;
|
2015-06-09 12:11:43 +08:00
|
|
|
|
transform: scale(0.83);
|
2015-06-07 17:18:14 +08:00
|
|
|
|
font-family: Consolas;
|
|
|
|
|
}
|
2015-06-05 20:26:41 +08:00
|
|
|
|
</style>
|
2015-06-08 23:41:11 +08:00
|
|
|
|
|
2015-06-09 12:11:43 +08:00
|
|
|
|
<script src="/static/ZeroClipboard.js"></script>
|
2015-06-08 23:41:11 +08:00
|
|
|
|
<script>
|
|
|
|
|
$(function() {
|
2015-06-09 12:11:43 +08:00
|
|
|
|
ZeroClipboard.config({
|
|
|
|
|
swfPath: "http://static.alipayobjects.com/zeroclipboard/2.2.0/dist/ZeroClipboard.swf"
|
2015-06-08 23:41:11 +08:00
|
|
|
|
});
|
2015-06-09 12:11:43 +08:00
|
|
|
|
// clipboard
|
|
|
|
|
$('.anticons-list li').each(function(i, item) {
|
|
|
|
|
var client = new ZeroClipboard(item);
|
|
|
|
|
client.on( "copy", function (event) {
|
2015-06-09 18:11:28 +08:00
|
|
|
|
client.setText('<i className="anticon anticon-' + $(item).find('.anticon-class').html() + '"></i>');
|
2015-06-09 12:11:43 +08:00
|
|
|
|
});
|
|
|
|
|
client.on( "ready", function( readyEvent ) {
|
|
|
|
|
client.on( "aftercopy", function( event ) {
|
|
|
|
|
// `this` === `client`
|
|
|
|
|
// `event.target` === the element that was clicked
|
|
|
|
|
$(event.target).addClass('copied');
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
$(event.target).removeClass('copied');
|
|
|
|
|
}, 2000);
|
|
|
|
|
});
|
|
|
|
|
});
|
2015-06-08 23:41:11 +08:00
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|