在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rubysamurai/material_design_lite-sass开源软件地址(OpenSource Url):https://github.com/rubysamurai/material_design_lite-sass开源编程语言(OpenSource Language):Ruby 93.1%开源软件介绍(OpenSource Introduction):Material Design Lite for Sass
InstallationRuby on RailsOpen your Rails application's gem 'material_design_lite-sass' Save Open @import 'material';
Open
Restart Rails web server if it was running and now your Rails application is powered by Sass version of Material Design Lite. TurbolinksMaterial Design Lite doesn't support turbolinks by default. You have to either disable turbolinks or add this JavaScript code to your project: For turbolinks v2: document.addEventListener('page:change', function() {
componentHandler.upgradeDom();
}); For turbolinks v5: document.addEventListener('turbolinks:load', function() {
componentHandler.upgradeDom();
}); Put this code, for instance, in UsageBy default, using To import specific JavaScript components, first you need to include support components:
Then include any Material Design Lite JavaScript component:
Individual Sass components can be included like this: // Variables and mixins
@import "material/variables";
@import "material/mixins";
// Resets and dependencies
@import "material/resets";
@import "material/typography";
// Components
@import "material/palette";
@import "material/ripple";
@import "material/animation";
@import "material/badge";
@import "material/button";
@import "material/card";
@import "material/checkbox";
@import "material/chip";
@import "material/data-table";
@import "material/dialog";
@import "material/mega_footer";
@import "material/mini_footer";
@import "material/icon-toggle";
@import "material/list";
@import "material/menu";
@import "material/progress";
@import "material/layout";
@import "material/radio";
@import "material/slider";
@import "material/snackbar";
@import "material/spinner";
@import "material/switch";
@import "material/tabs";
@import "material/textfield";
@import "material/tooltip";
@import "material/shadow";
@import "material/grid";
@import "material/material-icons";
@import "material/roboto"; Material IconsAn icon can be included using ligatures, a typographic feature that is supported in most modern browsers: <i class="material-icons">info</i> For browsers that do not support ligatures, fall back to specifying the icons using numeric character references: <i class="material-icons"></i> Complete list of Material Icon names and codepoints can be found here VariablesSass version provides many variables to make customization process convenient. The full set of Material Design Lite variables can be found here. To override the variable it must be redefined before the $layout-header-bg-color: rgb(128,128,128) !default;
@import 'material';
VersioningMaterial Design Lite for Sass follows the upstream version of Google's Material Design Lite. But last version number may be ahead, in case there is a need to release project specific changes. CreditsMaterial Design Lite for Sass is inspired from bootstrap-sass by Bootstrap team. LicenseMaterial Design Lite © Google. Licensed under the Apache-2 license. Material Icons © Google. Licensed under the Apache-2 license. Roboto © Google. Licensed under the Apache-2 license.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论