atelierspierrot/famfamfam-silk-sprite
最新稳定版本:v1.0.0
Composer 安装命令:
composer require atelierspierrot/famfamfam-silk-sprite
包简介
The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)
关键字:
README 文档
README
The UNOFFICIAL sprites of the FamFamFam Silk web icons by FamFamFam.
!! - This work is unofficial and is not liable for FamFamFam.
Overview
This package proposes a CSS sprite constructed on the FamFamFam Silk web-icons set. The original set of icons is proposed under Creative Commons "Attribution" license, free of use as long as you attach image credits to "FamFamFam".
To learn more about "CSS sprites" conception, see the Sprite (computer graphics) wikipedia's page.
Usage
Installation
This package is a "standalone" CSS framework. To use it, you just need to get its sources
from GitHub and include the src/ content of the package in your project assets.
If you are a Bower user, the package is registered so you can write
in your bower.json:
"dependencies": {
...
"atelierspierrot/famfamfam-silk-sprite": "dev-master"
}
If you are a Composer user, the package is referenced to
Packagist so you can write in your composer.json:
"require": {
...
"atelierspierrot/famfamfam-silk-sprite": "dev-master"
}
The package has a library-assets type to allow handling by the
Assets Manager Composer's extension. If
you plan to use the manager, you can use the assets-install branch of the package, which
has the AssetsManager in its requirements (to be sure it will be loaded before the sprite
and be able to move it in the project assets).
HTML usage
Once the package is included in your project, you can start to use the sprites framework.
To do so, you first need to include the CSS definitions:
<link rel="stylesheet" href="path/to/package/src/silk-icons-sprite.min.css" />
Then you can start writing some Silk icons spans using the framework explained below.
A demonstration page is available in the global package in demo/ ; it shows in particular
the list of available icons and their names.
CSS Framework
The package defines some CSS sprite classes to render some icons easily and with least of work.
The CSS framework to use the sprites is based on two classes:
- the first one that is common and global:
web-icon, - the last one to choose the icon itself, which is the name of the icon.
For instance, to render a the "print" icon, you will write:
<span class="web-icon print"></span>
As the sprite is not defined with restrictive CSS rules, you may encounter rendering
problems (such as margins or paddings defined globally in your document) that can be avoid
adding a reset class to your icons:
<span class="web-icon reset print"></span>
Credits
As mentioned above, the original set of icons is made by FamFamFam (Mark James - UK) and proposed under Creative Commons Attribution license. You are free to use it in any work but you must always add a link to www.famfamfam.com in a prominent place (e.g. the page footer), including the CC-BY license and the reference to www.famfamfam.com on every page using the icons.
The sprite was generated with the help of website-performance.org and is CSS3 valid.
The minified version of the CSS file of the package was processed with the YUI Compressor.
The PNG sprite is optimized using Smush.it (TM).
atelierspierrot/famfamfam-silk-sprite 适用场景与选型建议
atelierspierrot/famfamfam-silk-sprite 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 17.55k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2013 年 09 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「icons」 「famfamfam」 「sprite」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 atelierspierrot/famfamfam-silk-sprite 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 atelierspierrot/famfamfam-silk-sprite 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 atelierspierrot/famfamfam-silk-sprite 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This is the Famfamfam silk icon set, wrapped into an easy to use PHP composer package.
Generate sprites with PHP and twig templates
This is the Famfamfam silk icon set, wrapped into an easy to use PHP composer package.
FamFamFam Flags icon pack, as individual icons or as a CSS spritesheet
A PHP command line tool for converting SVG images to a set of CSS icons (SVG & PNG, single icons and / or CSS sprites) with support for image optimization and Sass output
A simple library of SVG page type icons for enhancing your SilverStripe CMS interface.
统计信息
- 总下载量: 17.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY-NC-3.0
- 更新时间: 2013-09-18