• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

commadelimited/jQuery-Mobile-Icon-Pack: Extending the default jQuery Mobile icon ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

commadelimited/jQuery-Mobile-Icon-Pack

开源软件地址(OpenSource Url):

https://github.com/commadelimited/jQuery-Mobile-Icon-Pack

开源编程语言(OpenSource Language):

CSS 99.1%

开源软件介绍(OpenSource Introduction):

jQuery Mobile Icon Pack

Extending jQuery Mobile's default icon set.

jQuery Mobile Icon Pack is based on based on the Font Awesome library and includes 369 icons from a wide range of categories including currency symbols, media control, social media, common application icons, and more. You can use easily these icons in conjunction with jQuery Mobile's default icon set.

View a demo of Icon Pack.

Build your own custom Icon Pack.

Major upgrade

This version of Icon Pack is a breaking upgrade from previous versions of jQuery Mobile. Previously jQuery Mobile used the :after property to apply the PNG icons to the specified container. In jQuery Mobile 1.4 the team chose to look to the future and apply SVG icons with the background-image property. In addition to this decision they've inlined the actual file contents of each icon using Data URIs. While this does increase the size of the resulting CSS, it also means there are no external dependencies (not counting the PNG fallbacks).

If you're looking to support jQuery Mobile 1.3 (or lower) applications, you can use the 1.3.x tagged build for that release.

Centered Icons

Every jQuery Mobile app is slightly different. In many cases sizes, and positions, of icons are also different. To that end I've intentionally not applied any sort of alignment or positioning of the icons contained within Icon Pack. This means that in the demos some of the icons might be centered, some of them might be aligned to the left. This is by design (at least for the time being).

If you need to adjust the position of icons in your implementation, here's how you do it. In your CSS, for the icon you'd like to position, add a background-position declaration. Here's an example for the adjust icon:

.ui-icon-adjust:after {
    background-image: url("<url removed for brevity>");
    background-repeat: no-repeat;
    background-position: 4px 3px;
}

Quick start

Clone the git repo - git clone https://github.com/commadelimited/jQuery-Mobile-Icon-Pack.git - or download it. Open up index.html in your browser, preview to your hearts content. The icon definitions are 100% contained within the jqm-icon-pack-fa.css CSS file in the dist folder within this repository.

If you so desire, run npm install and build the icons from scratch by running the grunt command.

While this is a good way to get familiar with Icon Pack, it's not recommended that you use this file for production use.

Font Awesome Icon Pack Usage

Drop dist/jqm-icon-pack-fa.css and the associated png folder into your project. Images are relative to the CSS file. Use them just as you would the standard icons.

My License

Dual license: MIT/GPL

Font Awesome License

The Font Awesome license can be seen on their website.

Bitdeli Badge




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
heroku/mobile-template1发布时间:2022-08-30
下一篇:
akveo/chernika-mobile: Tinder-like app in Ionic framework发布时间:2022-08-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap