在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mkhairi/material-sass开源软件地址(OpenSource Url):https://github.com/mkhairi/material-sass开源编程语言(OpenSource Language):Ruby 100.0%开源软件介绍(OpenSource Introduction):Material-sass
Offical repo github.com/Daemonite/material Documentation daemonite.github.io/material DependenciesRails 5.1+
The Rails JavaScript helpers has been rewritten in a new gem called rails-ujs and they use vanilla JavaScript, so jQuery is not a dependency of Rails anymore.
Since bootstrap relies on it, install it with NOTE: Ensure that the InstallationAdd this line to your application's Gemfile: gem 'bootstrap', '4.1.1'
gem 'material-sass', '4.1.1' And then run the bundler and restart your server to make the files available through the pipeline: $ bundle install Or install it yourself as: $ gem install material-sass Usagea. SassImport Materialize styles in @import "material";
//ps: no need to import 'bootstrap' NOTE: If you have just generated a new Rails application, it may come with a $ rm app/assets/stylesheets/application.css b. JavaScriptRequire Material javascripts in //= require jquery
//= require popper
//= require bootstrap
//= require material c. IconsInclude this line in the portion of your HTML code
or import this line in your application.scss
or install this gem for offline icons
see docs Contributingnote: Any changes or Pull Request regarding material assets should be made in official material repo.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论