在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):barrymieny/material_design_icons开源软件地址(OpenSource Url):https://github.com/barrymieny/material_design_icons开源编程语言(OpenSource Language):HTML 98.5%开源软件介绍(OpenSource Introduction):Material Design Icons'material_design_icons' enables you to generate both HTML tags and inline SVG of Material Design Icons for your Ruby on Rails projects. Maintainers WantedUnfortunately, I no longer use this project and don't have the time to work on it any further. This means that bugs will not be fixed and new releases will not be added unless someone else does so. If you're interested in taking over maintenance of material_design_icons, please reply to this GitHub issue (#9). InstallationAdd this line to your application's Gemfile:
And then execute:
Or install it yourself as:
Import the stylesheet by adding this line to your application's CSS manifest (application.css):
UsageWebfont Tags
You can specify a single or multiple Material Design Icons class names: <%= mdi_tag('hexagon 48px') %> <i class="mdi mdi-hexagon mdi-48px"></i> You can optionally specify additional class names: <%= mdi_tag('hexagon 48px', class: 'orange') %> <i class="mdi mdi-hexagon mdi-48px orange"></i> Inline SVG
You can specify a single icon name with options: <%= mdi_svg('hexagon') %> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
<path fill="#000000" fill-opacity="1" stroke-width="0.2" stroke-linejoin="round" d="M 16,3L 8,3L 3,8L 3,16L 8,21L 16,21L 21,16L 21,8"></path>
</svg> The inline SVG makes use of the inline_svg gem, so you can use any of the options it provides. LicensesCommunity Icons - SIL Open Font License 1.1 Google Material Design Icons - Attribution 4.0 International |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论