mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
see changes to changelog.md
This commit is contained in:
parent
0c9a7b0d44
commit
55bddb069c
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -3,8 +3,14 @@
|
|||
## v 0.3.0 dev
|
||||
|
||||
- Implemented full color palette from Material Design specifications (thanks @korgan00)
|
||||
- Reformat of ripples.js (thanks @grvcoelho)
|
||||
- Autofill option of Material.js is now set to false by default
|
||||
- Reformat of `ripples.js` (thanks @grvcoelho)
|
||||
- Autofill option of `material.js` is now set to false by default
|
||||
- Deprecated `material-wfont.css`, now to include web fonts you should include roboto.css
|
||||
- Now `material.css` supports only the primary shades of the material color palette (lightweight! about 200KB)
|
||||
- `material-fullpalette.css` supports every shade of the material color palette (huge size! ~ 2MB)
|
||||
- Adjusted padding on dialog(modal) to be more inline with standards (thanks @GradyD)
|
||||
- Added jQuery 1.9.1 and Bootstrap 3.0 as dependencies (thanks @GradyD)
|
||||
- fixed #468 (thanks @MatrixZ)
|
||||
|
||||
|
||||
## v 0.2.1
|
||||
|
|
52
Gruntfile.js
52
Gruntfile.js
|
@ -22,17 +22,30 @@ module.exports = function(grunt) {
|
|||
"dist/css/material.css": "less/material.less",
|
||||
}
|
||||
},
|
||||
materialwfont: {
|
||||
materialfullpalette: {
|
||||
options: {
|
||||
paths: ["less"],
|
||||
sourceMap: true,
|
||||
sourceMapRootpath: "/",
|
||||
sourceMapFilename: "dist/css/material-wfont.css.map",
|
||||
sourceMapURL: "material-wfont.css.map",
|
||||
sourceMapFilename: "dist/css/material-fullpalette.css.map",
|
||||
sourceMapURL: "material-fullpalette.css.map",
|
||||
outputSourceFiles: true
|
||||
},
|
||||
files: {
|
||||
"dist/css/material-wfont.css": "less/material-wfont.less",
|
||||
"dist/css/material-fullpalette.css": "less/material-fullpalette.less",
|
||||
}
|
||||
},
|
||||
roboto: {
|
||||
options: {
|
||||
paths: ["less"],
|
||||
sourceMap: true,
|
||||
sourceMapRootpath: "/",
|
||||
sourceMapFilename: "dist/css/roboto.css.map",
|
||||
sourceMapURL: "roboto.css.map",
|
||||
outputSourceFiles: true
|
||||
},
|
||||
files: {
|
||||
"dist/css/roboto.css": "less/roboto.less",
|
||||
}
|
||||
},
|
||||
ripples: {
|
||||
|
@ -63,10 +76,16 @@ module.exports = function(grunt) {
|
|||
"dist/css/material.min.css": "dist/css/material.min.css"
|
||||
}
|
||||
},
|
||||
materialwfont: {
|
||||
materialfullpalette: {
|
||||
files: {
|
||||
"dist/css/material-wfont.css": "dist/css/material-wfont.css",
|
||||
"dist/css/material-wfont.min.css": "dist/css/material-wfont.min.css"
|
||||
"dist/css/material-fullpalette.css": "dist/css/material-fullpalette.css",
|
||||
"dist/css/material-fullpalette.min.css": "dist/css/material-fullpalette.min.css"
|
||||
}
|
||||
},
|
||||
roboto: {
|
||||
files: {
|
||||
"dist/css/roboto.css": "dist/css/roboto.css",
|
||||
"dist/css/roboto.min.css": "dist/css/roboto.min.css"
|
||||
}
|
||||
},
|
||||
ripples: {
|
||||
|
@ -83,9 +102,13 @@ module.exports = function(grunt) {
|
|||
src: "dist/css/material.css",
|
||||
dest: "dist/css/material.min.css"
|
||||
},
|
||||
materialwfont: {
|
||||
src: "dist/css/material-wfont.css",
|
||||
dest: "dist/css/material-wfont.min.css"
|
||||
materialfullpalette: {
|
||||
src: "dist/css/material-fullpalette.css",
|
||||
dest: "dist/css/material-fullpalette.min.css"
|
||||
},
|
||||
roboto: {
|
||||
src: "dist/css/roboto.css",
|
||||
dest: "dist/css/roboto.min.css"
|
||||
},
|
||||
ripples: {
|
||||
src: "dist/css/ripples.css",
|
||||
|
@ -243,11 +266,14 @@ module.exports = function(grunt) {
|
|||
]);
|
||||
grunt.registerTask("material:less", [
|
||||
"less:material",
|
||||
"less:materialwfont",
|
||||
"less:materialfullpalette",
|
||||
"less:roboto",
|
||||
"csswring:material",
|
||||
"csswring:materialwfont",
|
||||
"csswring:materialfullpalette",
|
||||
"csswring:roboto",
|
||||
"autoprefixer:material",
|
||||
"autoprefixer:materialwfont"
|
||||
"autoprefixer:materialfullpalette",
|
||||
"autoprefixer:roboto"
|
||||
]);
|
||||
grunt.registerTask("material:js", [
|
||||
"copy:material",
|
||||
|
|
|
@ -29,9 +29,9 @@ If you prefer, you can include this framework in your project using our official
|
|||
Navigate to the `dist/` folder in this repository, and you will see the `test.html` file, which has the CSS include statements, in the `head` section and the JS includes just before `body` section closes.
|
||||
You need to copy the `dist/` folder to the root of your project, ensuring that all the files in your project can access the files through the relative URL, supplied in the CSS and the JS includes.
|
||||
|
||||
#### material-wfont.css or material.css?
|
||||
#### material-fullpalette.css or material.css?
|
||||
|
||||
The only difference is that `material-wfont.css` has the Google web fonts included.
|
||||
The only difference is that `material-fullpalette.css` has the full colors palette available, the other one has just the primary colors.
|
||||
|
||||
#### Use custom color as primary
|
||||
|
||||
|
@ -91,6 +91,8 @@ These colors are taken from the Material Design color palette and are reported b
|
|||
|
||||
![palette](demo/imgs/palette.jpg)
|
||||
|
||||
To take advantage of all the shades please use `material-fullpalette.css`, be aware of its huge size.
|
||||
|
||||
### Buttons
|
||||
|
||||
Add `.btn-flat` to a button to make it flat, without shadows.
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Bootstrap Material</title>
|
||||
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="dist/css/roboto.min.css" rel="stylesheet">
|
||||
<link href="dist/css/material-fullpalette.min.css" rel="stylesheet">
|
||||
<link href="dist/css/ripples.min.css" rel="stylesheet">
|
||||
<link href="dist/css/material-wfont.min.css" rel="stylesheet">
|
||||
<link href="//fezvrasta.github.io/snackbarjs/dist/snackbar.min.css" rel="stylesheet">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
1
dist/css/material-fullpalette.css.map
vendored
Normal file
1
dist/css/material-fullpalette.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/css/material-fullpalette.min.css
vendored
Normal file
2
dist/css/material-fullpalette.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/material-fullpalette.min.css.map
vendored
Normal file
1
dist/css/material-fullpalette.min.css.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/css/material-wfont.css.map
vendored
1
dist/css/material-wfont.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material-wfont.min.css
vendored
2
dist/css/material-wfont.min.css
vendored
File diff suppressed because one or more lines are too long
1
dist/css/material-wfont.min.css.map
vendored
1
dist/css/material-wfont.min.css.map
vendored
File diff suppressed because one or more lines are too long
31413
dist/css/material.css
vendored
31413
dist/css/material.css
vendored
File diff suppressed because it is too large
Load Diff
2
dist/css/material.css.map
vendored
2
dist/css/material.css.map
vendored
File diff suppressed because one or more lines are too long
4
dist/css/material.min.css
vendored
4
dist/css/material.min.css
vendored
File diff suppressed because one or more lines are too long
2
dist/css/material.min.css.map
vendored
2
dist/css/material.min.css.map
vendored
File diff suppressed because one or more lines are too long
25
dist/css/roboto.css
vendored
Normal file
25
dist/css/roboto.css
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
@font-face {
|
||||
font-family: 'RobotoDraft';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('RobotoDraft'), local('RobotoDraft-Regular'), local('Roboto-Regular'), url(../fonts/RobotoDraftRegular.woff2) format('woff2'), url(../fonts/RobotoDraftRegular.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'RobotoDraft';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: local('RobotoDraft Medium'), local('RobotoDraft-Medium'), local('Roboto-Medium'), url(../fonts/RobotoDraftMedium.woff2) format('woff2'), url(../fonts/RobotoDraftMedium.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'RobotoDraft';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('RobotoDraft Bold'), local('RobotoDraft-Bold'), local('Roboto-Bold'), url(../fonts/RobotoDraftBold.woff2) format('woff2'), url(../fonts/RobotoDraftBold.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'RobotoDraft';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('RobotoDraft Italic'), local('RobotoDraft-Italic'), local('Roboto-Italic'), url(../fonts/RobotoDraftItalic.woff2) format('woff2'), url(../fonts/RobotoDraftItalic.woff) format('woff');
|
||||
}
|
||||
/*# sourceMappingURL=roboto.css.map */
|
1
dist/css/roboto.css.map
vendored
Normal file
1
dist/css/roboto.css.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["/less/roboto.less","roboto.css"],"names":[],"mappings":"AAAA;EACE,4BAAA;EACA,oBAAA;EACA,kBAAA;EAEA,gMAAA;ECAD;ADOD;EACE,4BAAA;EACA,oBAAA;EACA,kBAAA;EAEA,mMAAA;ECND;ADaD;EACE,4BAAA;EACA,oBAAA;EACA,kBAAA;EAEA,yLAAA;ECZD;ADmBD;EACE,4BAAA;EACA,oBAAA;EACA,kBAAA;EAEA,mMAAA;EClBD","file":"roboto.css","sourcesContent":["@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 400;\n //src: local('RobotoDraft'), local('RobotoDraft-Regular'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/robotodraft/v1/0xES5Sl_v6oyT7dAKuoni4gp9Q8gbYrhqGlRav_IXfk.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/0xES5Sl_v6oyT7dAKuoni7rIa-7acMAeDBVuclsi6Gc.woff) format('woff');\n src: local('RobotoDraft'),\n local('RobotoDraft-Regular'),\n local('Roboto-Regular'),\n url(../fonts/RobotoDraftRegular.woff2) format('woff2'),\n url(../fonts/RobotoDraftRegular.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 500;\n //src: local('RobotoDraft Medium'), local('RobotoDraft-Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwXJuJo8UJJfpGKt7pXjBv4s.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwaTA90I55Xt7owhZwpPnMsc.woff) format('woff');\n src: local('RobotoDraft Medium'),\n local('RobotoDraft-Medium'),\n local('Roboto-Medium'),\n url(../fonts/RobotoDraftMedium.woff2) format('woff2'),\n url(../fonts/RobotoDraftMedium.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 700;\n //src: local('RobotoDraft Bold'), local('RobotoDraft-Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-Vwf79_ZuUxCigM2DespTnFaw.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwRbnBKKEOwRKgsHDreGcocg.woff) format('woff');\n src: local('RobotoDraft Bold'),\n local('RobotoDraft-Bold'),\n local('Roboto-Bold'),\n url(../fonts/RobotoDraftBold.woff2) format('woff2'),\n url(../fonts/RobotoDraftBold.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: italic;\n font-weight: 400;\n //src: local('RobotoDraft Italic'), local('RobotoDraft-Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/robotodraft/v1/er-TIW55l9KWsTS1x9bTfgeOulFbQKHxPa89BaxZzA0.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/er-TIW55l9KWsTS1x9bTfoo3ZslTYfJv0R05CazkwN8.woff) format('woff');\n src: local('RobotoDraft Italic'),\n local('RobotoDraft-Italic'),\n local('Roboto-Italic'),\n url(../fonts/RobotoDraftItalic.woff2) format('woff2'),\n url(../fonts/RobotoDraftItalic.woff) format('woff');\n}\n","@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 400;\n src: local('RobotoDraft'), local('RobotoDraft-Regular'), local('Roboto-Regular'), url(../fonts/RobotoDraftRegular.woff2) format('woff2'), url(../fonts/RobotoDraftRegular.woff) format('woff');\n}\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 500;\n src: local('RobotoDraft Medium'), local('RobotoDraft-Medium'), local('Roboto-Medium'), url(../fonts/RobotoDraftMedium.woff2) format('woff2'), url(../fonts/RobotoDraftMedium.woff) format('woff');\n}\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 700;\n src: local('RobotoDraft Bold'), local('RobotoDraft-Bold'), local('Roboto-Bold'), url(../fonts/RobotoDraftBold.woff2) format('woff2'), url(../fonts/RobotoDraftBold.woff) format('woff');\n}\n@font-face {\n font-family: 'RobotoDraft';\n font-style: italic;\n font-weight: 400;\n src: local('RobotoDraft Italic'), local('RobotoDraft-Italic'), local('Roboto-Italic'), url(../fonts/RobotoDraftItalic.woff2) format('woff2'), url(../fonts/RobotoDraftItalic.woff) format('woff');\n}\n/*# sourceMappingURL=roboto.css.map */"]}
|
2
dist/css/roboto.min.css
vendored
Normal file
2
dist/css/roboto.min.css
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
@font-face{font-family:RobotoDraft;src:local('RobotoDraft'),local('RobotoDraft-Regular'),local('Roboto-Regular'),url(../fonts/RobotoDraftRegular.woff2) format('woff2'),url(../fonts/RobotoDraftRegular.woff) format('woff')}@font-face{font-family:RobotoDraft;font-weight:500;src:local('RobotoDraft Medium'),local('RobotoDraft-Medium'),local('Roboto-Medium'),url(../fonts/RobotoDraftMedium.woff2) format('woff2'),url(../fonts/RobotoDraftMedium.woff) format('woff')}@font-face{font-family:RobotoDraft;font-weight:700;src:local('RobotoDraft Bold'),local('RobotoDraft-Bold'),local('Roboto-Bold'),url(../fonts/RobotoDraftBold.woff2) format('woff2'),url(../fonts/RobotoDraftBold.woff) format('woff')}@font-face{font-family:RobotoDraft;font-style:italic;src:local('RobotoDraft Italic'),local('RobotoDraft-Italic'),local('Roboto-Italic'),url(../fonts/RobotoDraftItalic.woff2) format('woff2'),url(../fonts/RobotoDraftItalic.woff) format('woff')}
|
||||
/*# sourceMappingURL=roboto.min.css.map */
|
1
dist/css/roboto.min.css.map
vendored
Normal file
1
dist/css/roboto.min.css.map
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["/less/roboto.less"],"names":[],"mappings":"AAAA,WACE,wBAIA,CAAA,yLAAA,CAAA,UAQA,wBAEA,CAAA,eAEA,CAAA,4LAAA,CAAA,UAQA,wBAEA,CAAA,eAEA,CAAA,kLAAA,CAAA,UAQA,wBACA,CAAA,iBAGA,CAAA,4LAAA,CAAA","file":"roboto.min.css","sourcesContent":["@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 400;\n //src: local('RobotoDraft'), local('RobotoDraft-Regular'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/robotodraft/v1/0xES5Sl_v6oyT7dAKuoni4gp9Q8gbYrhqGlRav_IXfk.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/0xES5Sl_v6oyT7dAKuoni7rIa-7acMAeDBVuclsi6Gc.woff) format('woff');\n src: local('RobotoDraft'),\n local('RobotoDraft-Regular'),\n local('Roboto-Regular'),\n url(../fonts/RobotoDraftRegular.woff2) format('woff2'),\n url(../fonts/RobotoDraftRegular.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 500;\n //src: local('RobotoDraft Medium'), local('RobotoDraft-Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwXJuJo8UJJfpGKt7pXjBv4s.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwaTA90I55Xt7owhZwpPnMsc.woff) format('woff');\n src: local('RobotoDraft Medium'),\n local('RobotoDraft-Medium'),\n local('Roboto-Medium'),\n url(../fonts/RobotoDraftMedium.woff2) format('woff2'),\n url(../fonts/RobotoDraftMedium.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: normal;\n font-weight: 700;\n //src: local('RobotoDraft Bold'), local('RobotoDraft-Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-Vwf79_ZuUxCigM2DespTnFaw.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/u0_CMoUf3y3-4Ss4ci-VwRbnBKKEOwRKgsHDreGcocg.woff) format('woff');\n src: local('RobotoDraft Bold'),\n local('RobotoDraft-Bold'),\n local('Roboto-Bold'),\n url(../fonts/RobotoDraftBold.woff2) format('woff2'),\n url(../fonts/RobotoDraftBold.woff) format('woff');\n}\n\n@font-face {\n font-family: 'RobotoDraft';\n font-style: italic;\n font-weight: 400;\n //src: local('RobotoDraft Italic'), local('RobotoDraft-Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/robotodraft/v1/er-TIW55l9KWsTS1x9bTfgeOulFbQKHxPa89BaxZzA0.woff2) format('woff2'), url(https://fonts.gstatic.com/s/robotodraft/v1/er-TIW55l9KWsTS1x9bTfoo3ZslTYfJv0R05CazkwN8.woff) format('woff');\n src: local('RobotoDraft Italic'),\n local('RobotoDraft-Italic'),\n local('Roboto-Italic'),\n url(../fonts/RobotoDraftItalic.woff2) format('woff2'),\n url(../fonts/RobotoDraftItalic.woff) format('woff');\n}\n"]}
|
7
dist/test.html
vendored
7
dist/test.html
vendored
|
@ -3,8 +3,10 @@
|
|||
<head>
|
||||
|
||||
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/ripples.min.css" rel="stylesheet">
|
||||
<link href="css/material-wfont.min.css" rel="stylesheet">
|
||||
<!-- Include roboto.css to use the Roboto web font, material.css to include the theme and ripples.css to style the ripple effect -->
|
||||
<link href="dist/css/roboto.min.css" rel="stylesheet">
|
||||
<link href="dist/css/material.min.css" rel="stylesheet">
|
||||
<link href="dist/css/ripples.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
|
@ -38,6 +40,7 @@
|
|||
<script src="js/material.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// This command is used to initialize some elements and make them work properly
|
||||
$.material.init();
|
||||
});
|
||||
</script>
|
||||
|
|
17
index.html
17
index.html
|
@ -11,7 +11,8 @@
|
|||
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Material Design for Bootstrap -->
|
||||
<link href="dist/css/material-wfont.min.css" rel="stylesheet">
|
||||
<link href="dist/css/roboto.min.css" rel="stylesheet">
|
||||
<link href="dist/css/material-fullpalette.min.css" rel="stylesheet">
|
||||
<link href="dist/css/ripples.min.css" rel="stylesheet">
|
||||
|
||||
<!-- Dropdown.js -->
|
||||
|
@ -755,12 +756,11 @@
|
|||
</div>
|
||||
<div class="well page" id="material-colors">
|
||||
<h1 class="header">Material Color Samples</h1>
|
||||
<p>This is the list of all the supported color variations. Each color can be applied to every element that supports variations.
|
||||
</p>
|
||||
<pre><code>.btn-material-{{color}}
|
||||
.navbar-material-{{color}}
|
||||
.well-material-{{color}}
|
||||
etc...</code></pre>
|
||||
<p>This is the list of all the supported color variations. Each color can be applied to every element that supports variations.</p>
|
||||
|
||||
<pre>.btn-material-{{color}}<br>.navbar-material-{{color}}<br>.well-material-{{color}}<br>etc...</pre>
|
||||
|
||||
<p><b>material.css</b> includes only the primary color shades (red, pink, purple, deep-purple, etc...), if you want the entire palette please use <b>material-fullpalette.css</b></p>
|
||||
<div class="sampleOthers">
|
||||
<button class="btn btn-black btn-lg">Black</button>
|
||||
<button class="btn btn-white btn-lg">White</button>
|
||||
|
@ -1186,11 +1186,14 @@
|
|||
<option value="Sfogliatelle">Sfogliatelle</option>
|
||||
</select>
|
||||
|
||||
<br>
|
||||
|
||||
<select class="form-control" disabled placeholder="Your favorite pastry">
|
||||
<option value="disabled">Disabled</option>
|
||||
</select>
|
||||
</div>
|
||||
<br>
|
||||
<p>Dropdowns provided by <a href="https://github.com/FezVrasta/dropdown.js" target="_blank">Dropdown.js</a></p>
|
||||
|
||||
</div>
|
||||
<div class="well page" id="dialog">
|
||||
|
|
158
less/_mixins-fullpalette.less
Normal file
158
less/_mixins-fullpalette.less
Normal file
|
@ -0,0 +1,158 @@
|
|||
// usage: .variations(~" .check", color, transparent);
|
||||
.variations(@extra, @property, @default) {
|
||||
.generic-variations(@extra, @default, {
|
||||
@{property}: @material-color;
|
||||
});
|
||||
}
|
||||
|
||||
.background-variations(@extra, @default) {
|
||||
.generic-variations(@extra, @default, {
|
||||
background-color: @material-color;
|
||||
color: @text-color;
|
||||
& when (@material-color = @btn-default) {
|
||||
color: @lightbg-text;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
.text-variations(@extra, @default) {
|
||||
.generic-variations(@extra, @default, {
|
||||
color: @material-color;
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
// To use this mixin you should pass a function as final parameter to define
|
||||
// the style. In that definition you can use the following variables to define it.
|
||||
//
|
||||
// @material-color-name ---> "red", "green", "indigo" ...
|
||||
// @material-color-full-name ---> "red", "green-50", "indigo-400" ...
|
||||
// @material-color ---> #f44336, #e8f5e9, #5c6bc0 ...
|
||||
// @text-color ---> rgba(255,255,255,0.84), rgba(0,0,0,0.84), rgba(255,255,255,0.84) ...
|
||||
//
|
||||
|
||||
.generic-variations(@extra, @default, @func) {
|
||||
|
||||
@contrast-factor: 40%;
|
||||
|
||||
// bootstrap styles
|
||||
&@{extra}, &-default@{extra} {
|
||||
@material-color-name: "default";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @default;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-black@{extra} {
|
||||
@material-color-name: "black";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @black;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-white@{extra} {
|
||||
@material-color-name: "white";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @white;
|
||||
@text-color: @lightbg-text;
|
||||
@func();
|
||||
}
|
||||
&-inverse@{extra} {
|
||||
@material-color-name: "inverse";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @inverse;
|
||||
@text-color: contrast(@inverse, @lightbg-text, @darkbg-text, @contrast-factor);
|
||||
@func();
|
||||
}
|
||||
&-primary@{extra} {
|
||||
@material-color-name: "primary";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @primary;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-success@{extra} {
|
||||
@material-color-name: "success";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @success;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-info@{extra} {
|
||||
@material-color-name: "info";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @info;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-warning@{extra} {
|
||||
@material-color-name: "warning";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @warning;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
&-danger@{extra} {
|
||||
@material-color-name: "danger";
|
||||
@material-color-full-name: @material-color-name;
|
||||
@material-color: @danger;
|
||||
@text-color: @darkbg-text;
|
||||
@func();
|
||||
}
|
||||
|
||||
// given a color build multiples dephs
|
||||
.generic-variations-factory(@material-color-name) {
|
||||
|
||||
// given a color and its deph build css
|
||||
.generic-variations-factory-deep(@material-color-number) {
|
||||
|
||||
&-material-@{material-color-name}@{material-color-number}@{extra} {
|
||||
@material-color-full-name: "@{material-color-name}@{material-color-number}";
|
||||
@material-color: @@material-color-full-name;
|
||||
@text-color: contrast(@material-color, @lightbg-text, @darkbg-text, @contrast-factor);
|
||||
@func();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.generic-variations-factory-deep(~"");
|
||||
.generic-variations-factory-deep(~"-50");
|
||||
.generic-variations-factory-deep(~"-100");
|
||||
.generic-variations-factory-deep(~"-200");
|
||||
.generic-variations-factory-deep(~"-300");
|
||||
.generic-variations-factory-deep(~"-400");
|
||||
.generic-variations-factory-deep(~"-500");
|
||||
.generic-variations-factory-deep(~"-600");
|
||||
.generic-variations-factory-deep(~"-700");
|
||||
.generic-variations-factory-deep(~"-800");
|
||||
.generic-variations-factory-deep(~"-900");
|
||||
.generic-variations-factory-deep(~"-A100");
|
||||
.generic-variations-factory-deep(~"-A200");
|
||||
.generic-variations-factory-deep(~"-A400");
|
||||
.generic-variations-factory-deep(~"-A700");
|
||||
}
|
||||
|
||||
.generic-variations-factory(~"red");
|
||||
.generic-variations-factory(~"pink");
|
||||
.generic-variations-factory(~"purple");
|
||||
.generic-variations-factory(~"deep-purple");
|
||||
.generic-variations-factory(~"indigo");
|
||||
.generic-variations-factory(~"blue");
|
||||
.generic-variations-factory(~"light-blue");
|
||||
.generic-variations-factory(~"cyan");
|
||||
.generic-variations-factory(~"teal");
|
||||
.generic-variations-factory(~"green");
|
||||
.generic-variations-factory(~"light-green");
|
||||
.generic-variations-factory(~"lime");
|
||||
.generic-variations-factory(~"yellow");
|
||||
.generic-variations-factory(~"amber");
|
||||
.generic-variations-factory(~"orange");
|
||||
.generic-variations-factory(~"deep-orange");
|
||||
.generic-variations-factory(~"brown");
|
||||
.generic-variations-factory(~"grey");
|
||||
.generic-variations-factory(~"blue-grey");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@all-variations: ~"-default, -primary, -info, -success, -warning, -danger";
|
|
@ -21,16 +21,16 @@
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* To use this mixin u should pass a function as final parameter to define
|
||||
* the style. In that definition u can use the following variables to define it.
|
||||
*
|
||||
* @material-color-name ---> "red", "green", "indigo" ...
|
||||
* @material-color-full-name ---> "red", "green-50", "indigo-400" ...
|
||||
* @material-color ---> #f44336, #e8f5e9, #5c6bc0 ...
|
||||
* @text-color ---> rgba(255,255,255,0.84), rgba(0,0,0,0.84), rgba(255,255,255,0.84) ...
|
||||
*
|
||||
*/
|
||||
//
|
||||
// To use this mixin you should pass a function as final parameter to define
|
||||
// the style. In that definition you can use the following variables to define it.
|
||||
//
|
||||
// @material-color-name ---> "red", "green", "indigo" ...
|
||||
// @material-color-full-name ---> "red", "green-50", "indigo-400" ...
|
||||
// @material-color ---> #f44336, #e8f5e9, #5c6bc0 ...
|
||||
// @text-color ---> rgba(255,255,255,0.84), rgba(0,0,0,0.84), rgba(255,255,255,0.84) ...
|
||||
//
|
||||
|
||||
|
||||
.generic-variations(@extra, @default, @func) {
|
||||
|
||||
|
@ -117,20 +117,6 @@
|
|||
}
|
||||
|
||||
.generic-variations-factory-deep(~"");
|
||||
.generic-variations-factory-deep(~"-50");
|
||||
.generic-variations-factory-deep(~"-100");
|
||||
.generic-variations-factory-deep(~"-200");
|
||||
.generic-variations-factory-deep(~"-300");
|
||||
.generic-variations-factory-deep(~"-400");
|
||||
.generic-variations-factory-deep(~"-500");
|
||||
.generic-variations-factory-deep(~"-600");
|
||||
.generic-variations-factory-deep(~"-700");
|
||||
.generic-variations-factory-deep(~"-800");
|
||||
.generic-variations-factory-deep(~"-900");
|
||||
.generic-variations-factory-deep(~"-A100");
|
||||
.generic-variations-factory-deep(~"-A200");
|
||||
.generic-variations-factory-deep(~"-A400");
|
||||
.generic-variations-factory-deep(~"-A700");
|
||||
}
|
||||
|
||||
.generic-variations-factory(~"red");
|
||||
|
|
2
less/material-fullpalette.less
Normal file
2
less/material-fullpalette.less
Normal file
|
@ -0,0 +1,2 @@
|
|||
@import "material.less";
|
||||
@import "_mixins-fullpalette.less";
|
|
@ -45,4 +45,3 @@
|
|||
url(../fonts/RobotoDraftItalic.woff2) format('woff2'),
|
||||
url(../fonts/RobotoDraftItalic.woff) format('woff');
|
||||
}
|
||||
@import "material.less";
|
Loading…
Reference in New Issue
Block a user