diff --git a/Gruntfile.js b/Gruntfile.js index 381654eb..ecae55bc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,198 +1,227 @@ module.exports = function(grunt) { - "use strict"; + "use strict"; - require("load-grunt-tasks")(grunt); + require("load-grunt-tasks")(grunt); - grunt.initConfig({ + grunt.initConfig({ - less: { - compileless: { - options: { - paths: ["less"] - }, - files: { - "dist/css/material.css": "less/material.less", - "dist/css/material-wfont.css": "less/material-wfont.less", - "dist/css/ripples.css": "less/ripples.less" - } - } + less: { + material: { + options: { + paths: ["less"], + sourceMap: true, + sourceMapRootpath: "/", + sourceMapFilename: "dist/css/material.css.map", + sourceMapURL: "material.css.map" }, - - sass: { - compilesass: { - files: { - "dist/css/material.css": "sass/material.scss", - "dist/css/material-wfont.css": "sass/material-wfont.scss", - "dist/css/ripples.css": "sass/ripples.scss" - } - } - }, - - autoprefixer: { - options: { - browsers: ["last 3 versions", "ie 8", "ie 9", "ie 10", "ie 11"] - }, - prefix: { - files: { - "dist/css/material.css": "dist/css/material.css", - "dist/css/material-wfont.css": "dist/css/material-wfont.css", - "dist/css/ripples.css": "dist/css/ripples.css" - } - } - }, - - cssmin: { - minifycss: { - expand: true, - cwd: "dist/css/", - src: ["*.css", "!*.min.css"], - dest: "dist/css/", - ext: ".min.css" - } - }, - - uglify: { - minifyjs: { - files: { - "dist/js/material.min.js": "scripts/material.js", - "dist/js/ripples.min.js": "scripts/ripples.js" - } - } - }, - - copy: { - distjs: { - expand: true, - cwd: "scripts/", - src: "**.min.js", - dest: "dist/js/", - flatten: true, - filter: "isFile" - }, - distfonts: { - expand: true, - cwd: "fonts/", - src: "**", - dest: "dist/fonts/", - flatten: true, - filter: "isFile" - } - }, - - connect: { - options: { - port: 8040, - hostname: "localhost", - livereload: 35729 - - }, - livereload: { - options: { - open: true, - base: "." - } - }, - test: { - options: { - port: 8041, - open: "http://localhost:8041/_SpecRunner.html", - base: "." - } - } - }, - - jasmine: { - scripts: "scripts/**/*.js", - options: { - build: true, - specs: "test/*Spec.js", - helpers: "test/*Helper.js", - vendor: [ - "https://code.jquery.com/jquery-1.10.2.min.js", - "https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" - ] - } - }, - - jshint: { - options: { - jshintrc: ".jshintrc", - reporter: require("jshint-stylish") - }, - all: [ - "Gruntfile.js", - "scripts/**/*.js", - "template/**/*.js", - "!template/**/*.min.js" - ], - test: { - options: { - jshintrc: "test/.jshintrc", - src: ["test/**/*.js"] - } - } - }, - - watch: { - js: { - files: ["Gruntfile.js", "scripts/**/*.js", "template/**/*.js"], - tasks: ["newer:jshint:all"] - }, - jsTest: { - files: ["test/**/*.js"], - tasks: ["newer:jshint:test", "jasmine"] - }, - less: { - files:["less/**/*.less"], - tasks: ["default"] - }, - sass: { - files: ["sass/**/*.scss", "sass/**/*.sass"], - tasks: ["scss"] - }, - livereload: { - options: { - livereload: "<%= connect.options.livereload %>" - }, - files: [ - "index.html", - "dist/css/**/*.css", - "**/*.{png,jpg,jpeg,gif,webp,svg}" - ] - } + files: { + "dist/css/material.css": "less/material.less", } - - }); - - grunt.registerTask("default", ["less", "autoprefixer", "cssmin", "uglify", "copy"]); - - grunt.registerTask("scss", ["sass", "autoprefixer", "cssmin", "uglify", "copy"]); - - grunt.registerTask("build", function(target) { - var buildType = "default"; - if (target && target === "scss") { - buildType = "scss"; + }, + materialWfont: { + options: { + paths: ["less"], + sourceMap: true, + sourceMapRootpath: "/", + sourceMapFilename: "dist/css/material-wfont.css.map", + sourceMapURL: "material-wfont.css.map" + }, + files: { + "dist/css/material-wfont.css": "less/material-wfont.less", } + }, + ripples: { + options: { + paths: ["less"], + sourceMap: true, + sourceMapRootpath: "/", + sourceMapFilename: "dist/css/ripples.css.map", + sourceMapURL: "ripples.css.map" + }, + files: { + "dist/css/ripples.css": "less/ripples.less", + } + } + }, - grunt.task.run(["newer:jshint", "jasmine:scripts", buildType]); - }); + sass: { + compilesass: { + files: { + "dist/css/material.css": "sass/material.scss", + "dist/css/material-wfont.css": "sass/material-wfont.scss", + "dist/css/ripples.css": "sass/ripples.scss" + } + } + }, - grunt.registerTask("test", [ - "jasmine:scripts:build", - "connect:test:keepalive" + autoprefixer: { + options: { + browsers: ["last 3 versions", "ie 8", "ie 9", "ie 10", "ie 11"] + }, + prefix: { + files: { + "dist/css/material.css": "dist/css/material.css", + "dist/css/material-wfont.css": "dist/css/material-wfont.css", + "dist/css/ripples.css": "dist/css/ripples.css" + } + } + }, + + cssmin: { + minifycss: { + expand: true, + cwd: "dist/css/", + src: ["*.css", "!*.min.css"], + dest: "dist/css/", + ext: ".min.css" + } + }, + + uglify: { + options: { + sourceMap: true + }, + minifyjs: { + files: { + "dist/js/material.min.js": "dist/js/material.js", + "dist/js/ripples.min.js": "dist/js/ripples.js" + } + } + }, + + copy: { + distjs: { + expand: true, + cwd: "scripts/", + src: "**.js", + dest: "dist/js/", + flatten: true, + filter: "isFile" + }, + distfonts: { + expand: true, + cwd: "fonts/", + src: "**", + dest: "dist/fonts/", + flatten: true, + filter: "isFile" + } + }, + + connect: { + options: { + port: 8040, + hostname: "localhost", + livereload: 35729 + + }, + livereload: { + options: { + open: true, + base: "." + } + }, + test: { + options: { + port: 8041, + open: "http://localhost:8041/_SpecRunner.html", + base: "." + } + } + }, + + jasmine: { + scripts: "scripts/**/*.js", + options: { + build: true, + specs: "test/*Spec.js", + helpers: "test/*Helper.js", + vendor: [ + "https://code.jquery.com/jquery-1.10.2.min.js", + "https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" + ] + } + }, + + jshint: { + options: { + jshintrc: ".jshintrc", + reporter: require("jshint-stylish") + }, + all: [ + "Gruntfile.js", + "scripts/**/*.js", + "template/**/*.js", + "!template/**/*.min.js" + ], + test: { + options: { + jshintrc: "test/.jshintrc", + src: ["test/**/*.js"] + } + } + }, + + watch: { + js: { + files: ["Gruntfile.js", "scripts/**/*.js", "template/**/*.js"], + tasks: ["newer:jshint:all"] + }, + jsTest: { + files: ["test/**/*.js"], + tasks: ["newer:jshint:test", "jasmine"] + }, + less: { + files:["less/**/*.less"], + tasks: ["default"] + }, + sass: { + files: ["sass/**/*.scss", "sass/**/*.sass"], + tasks: ["scss"] + }, + livereload: { + options: { + livereload: "<%= connect.options.livereload %>" + }, + files: [ + "index.html", + "dist/css/**/*.css", + "**/*.{png,jpg,jpeg,gif,webp,svg}" + ] + } + } + + }); + + grunt.registerTask("default", ["less", "autoprefixer", "cssmin", "copy", "uglify"]); + + grunt.registerTask("scss", ["sass", "autoprefixer", "cssmin", "copy", "uglify"]); + + grunt.registerTask("build", function(target) { + var buildType = "default"; + if (target && target === "scss") { + buildType = "scss"; + } + + grunt.task.run(["newer:jshint", "jasmine:scripts", buildType]); + }); + + grunt.registerTask("test", [ + "jasmine:scripts:build", + "connect:test:keepalive" + ]); + + grunt.registerTask("serve", function(target){ + var buildTarget = "default"; + if(target && target === "scss") { + buildTarget = "scss"; + } + grunt.task.run([ + "build:"+ buildTarget, + "connect:livereload", + "watch" ]); + }); - grunt.registerTask("serve", function(target){ - var buildTarget = "default"; - if(target && target === "scss") { - buildTarget = "scss"; - } - grunt.task.run([ - "build:"+ buildTarget, - "connect:livereload", - "watch" - ]); - }); - - grunt.registerTask("cibuild",["newer:jshint", "jasmine:scripts"]); + grunt.registerTask("cibuild",["newer:jshint", "jasmine:scripts"]); }; diff --git a/README.md b/README.md index 5a794766..737e7b89 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![build status](https://travis-ci.org/FezVrasta/bootstrap-material-design.svg?branch=master)](https://travis-ci.org/FezVrasta/bootstrap-material-design) -[![ghat status](http://mywebexpression.com:3001/status/initial/badge.png)](http://mywebexpression.com:3001/) (click to chat) +[![gratipay](https://img.shields.io/gratipay/FezVrasta.svg)](https://gratipay.com/FezVrasta) [![banner](demo/imgs/banner.jpg)](#) @@ -13,7 +13,6 @@ Check out [the demo at this link](http://fezvrasta.github.io/bootstrap-material- ## How to install BOWER: bower install bootstrap-material-design --save - GEMS: gem install bootstrap-material-design ## Use our CDN @@ -173,4 +172,4 @@ Read more about [selectize.js](http://brianreavis.github.io/selectize.js/) # Compatibility -Currently Material Design for Bootstrap supports Google Chrome (tested v37+), Mozilla Firefox (tested 30+), and Internet Explorer (tested 11+). Mobile browsers are not currently tested but it may work. \ No newline at end of file +Currently Material Design for Bootstrap supports Google Chrome (tested v37+), Mozilla Firefox (tested 30+), and Internet Explorer (tested 11+). Mobile browsers are not currently tested but it may work. diff --git a/bootstrap-elements.html b/bootstrap-elements.html new file mode 100644 index 00000000..1474d1e1 --- /dev/null +++ b/bootstrap-elements.html @@ -0,0 +1,2351 @@ + + + +
+ +Based on Google Material design
+Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.
+If you like this project you can support me by donating something on Gittip, starring this repository, or reporting bugs and ideas.
+Read more about Material Design for Bootstrap at the Github page.
+ + + + DOWNLOAD + + + + GITTIP + + + + ISSUES + ++ Default + Primary + Success + Info + Warning + Danger + Link +
++ Default + Primary + Success + Info + Warning + Danger + Link +
+ ++ Default + Primary + Success + Info + Warning + Danger +
+ ++ Default + Primary + Success + Info + Warning + Danger + Link +
+ ++ Large button + Default button + Small button + Mini button +
+ +Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
+Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
+This line of text is meant to be treated as fine print.
+The following snippet of text is rendered as bold text.
+The following snippet of text is rendered as italicized text.
+An abbreviation of the word attribute is attr.
+Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
+Nullam id dolor id nibh ultricies vehicula ut id elit.
+Etiam porta sem malesuada magna mollis euismod.
+Donec ullamcorper nulla non metus auctor fringilla.
+Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
+Maecenas sed diam eget risus varius blandit sit amet non magna.
+++Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
+ Someone famous in Source Title +
++Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
+ Someone famous in Source Title +
Material Design for Bootstrap includes 740 original Material Design icons!
+ These icons come directly from the Google Material Design Icons repository.
+ We provide them as an iconic font easy to use.
+
Variations are available for every icon, included for the original Bootstrap icons.
+
Example:
+
+
+
+
+
# | +Column heading | +Column heading | +Column heading | +
---|---|---|---|
1 | +Column content | +Column content | +Column content | +
2 | +Column content | +Column content | +Column content | +
3 | +Column content | +Column content | +Column content | +
4 | +Column content | +Column content | +Column content | +
5 | +Column content | +Column content | +Column content | +
6 | +Column content | +Column content | +Column content | +
7 | +Column content | +Column content | +Column content | +
Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
+Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.
+Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork.
+Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.
+Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
+This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
+ +Donec id elit non mi porta gravida at eget metus.
+Maecenas sed diam eget risus varius blandit.
+Maecenas sed diam eget risus varius blandit.
+Donec id elit non mi porta gravida at eget metus.
+Maecenas sed diam eget risus varius blandit.
+Maecenas sed diam eget risus varius blandit.
+Donec id elit non mi porta gravida at eget metus
+Maecenas sed diam eget risus varius blandit.
+Donec id elit non mi risus varius blandit.
+SnackbarJS is the ad-hoc developed plugin to create snackbars and toasts, read more about it on the official page of the project.
+Based on Google Material design
-Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.
-If you like this project you can support me by donating something on Gittip, starring this repository, or reporting bugs and ideas.
-Read more about Material Design for Bootstrap at the Github page.
- - - - DOWNLOAD - - - - GITTIP - - - - ISSUES - -- Default - Primary - Success - Info - Warning - Danger - Link -
-- Default - Primary - Success - Info - Warning - Danger - Link -
- -- Default - Primary - Success - Info - Warning - Danger -
- -- Default - Primary - Success - Info - Warning - Danger - Link -
- -- Large button - Default button - Small button - Mini button -
- -Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.
-Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.
-This line of text is meant to be treated as fine print.
-The following snippet of text is rendered as bold text.
-The following snippet of text is rendered as italicized text.
-An abbreviation of the word attribute is attr.
-Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.
-Nullam id dolor id nibh ultricies vehicula ut id elit.
-Etiam porta sem malesuada magna mollis euismod.
-Donec ullamcorper nulla non metus auctor fringilla.
-Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
-Maecenas sed diam eget risus varius blandit sit amet non magna.
---Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
- Someone famous in Source Title -
--Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
- Someone famous in Source Title -
Material Design for Bootstrap includes 740 original Material Design icons!
- These icons come directly from the Google Material Design Icons repository.
- We provide them as an iconic font easy to use.
-
Variations are available for every icon, included for the original Bootstrap icons.
-
Example:
-
-
-
-
-
# | -Column heading | -Column heading | -Column heading | -
---|---|---|---|
1 | -Column content | -Column content | -Column content | -
2 | -Column content | -Column content | -Column content | -
3 | -Column content | -Column content | -Column content | -
4 | -Column content | -Column content | -Column content | -
5 | -Column content | -Column content | -Column content | -
6 | -Column content | -Column content | -Column content | -
7 | -Column content | -Column content | -Column content | -
Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
-Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.
-Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork.
-Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater.
-Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
-This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
- -Donec id elit non mi porta gravida at eget metus.
-Maecenas sed diam eget risus varius blandit.
-Maecenas sed diam eget risus varius blandit.
-Donec id elit non mi porta gravida at eget metus.
-Maecenas sed diam eget risus varius blandit.
-Maecenas sed diam eget risus varius blandit.
-Donec id elit non mi porta gravida at eget metus
-Maecenas sed diam eget risus varius blandit.
-Donec id elit non mi risus varius blandit.
-SnackbarJS is the ad-hoc developed plugin to create snackbars and toasts, read more about it on the official page of the project.
-Material Design for Bootstrap is a theme for Bootstrap 3 which lets you use the new Google Material Design in your favorite front-end framework.
+If you like this project you can support me by donating something on Gratipay, starring this repository, or reporting bugs and ideas.
+Read more about Material Design for Bootstrap at the Github page.
- - - - - - + #checkbox .sample2 .text { + padding: 10px 0; + display: inline-block; + } + #checkbox .sample2 .checkbox { + float: right; + } + +Sliders are powered by noUiSlider
+ + + +