websharks/sharkicons
Composer 安装命令:
composer require websharks/sharkicons
包简介
Font containing WebSharks logos/icons & more.
关键字:
README 文档
README
Font containing WebSharks logos/icons + many others; including FontAwesome! See: DEMO
Contains over 750 icons. Total file size: 212kb (compare to stand-alone FontAwesome @ 136kb).
Using Icons in HTML Markup
<link rel="stylesheet" type="text/css" href="/path/to/sharkicons/src/long-classes.min.css" />
<i class="sharkicon sharkicon-broom"></i>
Short Classes (si- instead of sharkicon-)
<link rel="stylesheet" type="text/css" href="/path/to/sharkicons/src/short-classes.min.css" />
<i class="si si-broom"></i>
Including Classes via SCSS
Note: Bourbon is a required dependency. See: http://bourbon.io/ for details.
@import '/path/to/bourbon'; @import '/path/to/sharkicons/src/sharkicons'; @include sharkicons-font('/path/to/sharkicons/src'); @include sharkicon-short-classes;
Custom Classes via SCSS (prefix instead of si)
@import '/path/to/bourbon'; @import '/path/to/sharkicons/src/sharkicons'; @include sharkicons-font('/path/to/sharkicons/src'); @include sharkicon-custom-classes(prefix);
Scoping Classes via SCSS
@import '/path/to/bourbon'; @import '/path/to/sharkicons/src/sharkicons'; @include sharkicons-font('/path/to/sharkicons/src'); .my-product { @include sharkicon-short-classes; }
Creating an Icon via SCSS
Note: you can do this without including the sharkicon-[long|short]-classes if you like.
@import '/path/to/bourbon'; @import '/path/to/sharkicons/src/sharkicons'; @include sharkicons-font('/path/to/sharkicons/src'); // @include sharkicon-short-classes; .my-product .my-icon { @include sharkicon(broom); }
Equivalent to:
.my-product .my-icon::before { content: '\e000'; font: normal normal normal 14px/1 sharkicons; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-smoothing: antialiased; display: inline-block; font-size: inherit; text-decoration: inherit; text-transform: none; }
Alternatively, you can pass a second argument to sharkicon() to set the before/after specification. The default value is before. You might want to change it to after in some special case.
@import '/path/to/bourbon'; @import '/path/to/sharkicons/src/sharkicons'; @include sharkicons-font('/path/to/sharkicons/src'); // @include sharkicon-short-classes; .my-product .my-icon { @include sharkicon(broom, after); }
Equivalent to:
.my-product .my-icon::after { content: '\e000'; font: normal normal normal 14px/1 sharkicons; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-smoothing: antialiased; display: inline-block; font-size: inherit; text-decoration: inherit; text-transform: none; }
Mapping An Icon Char via SCSS
.my-product .my-icon:hover::after { content: map-get($sharkicons, broom); }
websharks/sharkicons 适用场景与选型建议
websharks/sharkicons 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 9.61k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「icons」 「websharks」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 websharks/sharkicons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 websharks/sharkicons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 websharks/sharkicons 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Compresses CSS.
WordPress i18n/translation tools.
Compresses JavaScript code.
Stub for WordPress themes/plugins that require PHP vX.x+.
Combines & compresses CSS/JS/HTML code.
A simple library of SVG page type icons for enhancing your SilverStripe CMS interface.
统计信息
- 总下载量: 9.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2015-04-23