Initial commit
This commit is contained in:
20
fonts/mdi/v7/LICENSE
Normal file
20
fonts/mdi/v7/LICENSE
Normal file
@ -0,0 +1,20 @@
|
||||
Pictogrammers Free License
|
||||
--------------------------
|
||||
|
||||
This icon collection is released as free, open source, and GPL friendly by
|
||||
the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
|
||||
for commercial projects, open source projects, or anything really.
|
||||
|
||||
# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
||||
Some of the icons are redistributed under the Apache 2.0 license. All other
|
||||
icons are either redistributed under their respective licenses or are
|
||||
distributed under the Apache 2.0 license.
|
||||
|
||||
# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
||||
All web and desktop fonts are distributed under the Apache 2.0 license. Web
|
||||
and desktop fonts contain some icons that are redistributed under the Apache
|
||||
2.0 license. All other icons are either redistributed under their respective
|
||||
licenses or are distributed under the Apache 2.0 license.
|
||||
|
||||
# Code: MIT (https://opensource.org/licenses/MIT)
|
||||
The MIT license applies to all non-font and non-icon files.
|
25
fonts/mdi/v7/README.md
Normal file
25
fonts/mdi/v7/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
> *Note:* Please use the main [MaterialDesign](https://github.com/Templarian/MaterialDesign/issues) repo to report issues. This repo is for distribution of the Webfont files only.
|
||||
|
||||
# Webfont - Material Design Icons
|
||||
|
||||
Webfont distribution for the [Material Design Icons](https://materialdesignicons.com).
|
||||
|
||||
```
|
||||
npm install @mdi/font
|
||||
```
|
||||
|
||||
> Package built with [@mdi/font-build](https://github.com/Templarian/MaterialDesign-Font-Build).
|
||||
|
||||
## Related Packages
|
||||
|
||||
[NPM @MDI Organization](https://npmjs.com/org/mdi)
|
||||
|
||||
- JavaScript/Typescript: [MaterialDesign-JS](https://github.com/Templarian/MaterialDesign-JS)
|
||||
- SVG: [MaterialDesign-SVG](https://github.com/Templarian/MaterialDesign-SVG)
|
||||
- Font-Build [MaterialDesign-Font-Build](https://github.com/Templarian/MaterialDesign-Font-Build)
|
||||
- Desktop Font: [MaterialDesign-Font](https://github.com/Templarian/MaterialDesign-Font)
|
||||
|
||||
## Learn More
|
||||
|
||||
- [MaterialDesignIcons.com](https://materialdesignicons.com)
|
||||
- https://github.com/Templarian/MaterialDesign
|
29058
fonts/mdi/v7/css/materialdesignicons.css
Normal file
29058
fonts/mdi/v7/css/materialdesignicons.css
Normal file
File diff suppressed because it is too large
Load Diff
16
fonts/mdi/v7/css/materialdesignicons.css.map
Normal file
16
fonts/mdi/v7/css/materialdesignicons.css.map
Normal file
File diff suppressed because one or more lines are too long
3
fonts/mdi/v7/css/materialdesignicons.min.css
vendored
Normal file
3
fonts/mdi/v7/css/materialdesignicons.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
16
fonts/mdi/v7/css/materialdesignicons.min.css.map
Normal file
16
fonts/mdi/v7/css/materialdesignicons.min.css.map
Normal file
File diff suppressed because one or more lines are too long
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.eot
Normal file
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.eot
Normal file
Binary file not shown.
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.ttf
Normal file
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.ttf
Normal file
Binary file not shown.
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.woff
Normal file
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.woff
Normal file
Binary file not shown.
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.woff2
Normal file
BIN
fonts/mdi/v7/fonts/materialdesignicons-webfont.woff2
Normal file
Binary file not shown.
30
fonts/mdi/v7/package.json
Normal file
30
fonts/mdi/v7/package.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@mdi/font",
|
||||
"version": "7.1.96",
|
||||
"description": "Dist for Material Design Webfont. This includes the Stock and Community icons in a single webfont collection.",
|
||||
"style": "css/materialdesignicons.css",
|
||||
"scripts": {
|
||||
"verify": "node scripts/verify.js",
|
||||
"prepublish": "node scripts/verify.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Templarian/MaterialDesign-Webfont.git"
|
||||
},
|
||||
"keywords": [
|
||||
"material",
|
||||
"design",
|
||||
"icons",
|
||||
"webfont"
|
||||
],
|
||||
"author": {
|
||||
"name": "Austin Andrews",
|
||||
"web": "http://twitter.com/templarian"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Templarian/MaterialDesign/issues"
|
||||
},
|
||||
"homepage": "https://materialdesignicons.com"
|
||||
}
|
717
fonts/mdi/v7/preview.html
Normal file
717
fonts/mdi/v7/preview.html
Normal file
File diff suppressed because one or more lines are too long
41
fonts/mdi/v7/scripts/verify.js
Normal file
41
fonts/mdi/v7/scripts/verify.js
Normal file
@ -0,0 +1,41 @@
|
||||
const fs = require('fs');
|
||||
|
||||
// Parse package.json
|
||||
const packageFile = './package.json';
|
||||
const packageText = fs.readFileSync(packageFile, 'utf8');
|
||||
const packageJson = JSON.parse(packageText);
|
||||
const packageVersion = packageJson.version;
|
||||
// Check for preview.html
|
||||
const previewFile = './preview.html';
|
||||
if (!fs.existsSync(previewFile)) {
|
||||
throw new Error('Error: preview.html must exist!');
|
||||
}
|
||||
const previewText = fs.readFileSync(previewFile, 'utf8');
|
||||
const parts = previewText.match(/<span class="version">([^<]+)<\/span>/);
|
||||
if (parts === null) {
|
||||
// Did you modify preview.html file ???
|
||||
throw new Error('Error: preview.html version string not found!');
|
||||
}
|
||||
// Never include a index.html file!
|
||||
const indexFile = './index.html';
|
||||
if (fs.existsSync(indexFile)) {
|
||||
throw new Error('Error: index.html should not exist, only preview.html');
|
||||
}
|
||||
const previewVersion = parts[1];
|
||||
if (packageVersion != previewVersion) {
|
||||
// Not good, almost published the wrong version
|
||||
throw new Error(`Error: package "${packageVersion}" != preview.html "${previewVersion}"`);
|
||||
}
|
||||
// Verify SCSS Version
|
||||
const scssVariablesFile = './scss/_variables.scss';
|
||||
const scssVariablesText = fs.readFileSync(scssVariablesFile, 'utf8');
|
||||
const vParts = scssVariablesText.match(/"(\d+).(\d+).(\d+)" !default;/);
|
||||
if (vParts === null) {
|
||||
throw new Error('Error: Could not parse SCSS version!');
|
||||
}
|
||||
const scssVersion = `${vParts[1]}.${vParts[2]}.${vParts[3]}`;
|
||||
if (packageVersion != scssVersion) {
|
||||
// Not good, almost published the wrong version
|
||||
throw new Error(`Error: package "${packageVersion}" != scss/variables.scss "${previewVersion}"`);
|
||||
}
|
||||
console.log(`Success: ${packageVersion} looks good!`);
|
27
fonts/mdi/v7/scss/_animated.scss
Normal file
27
fonts/mdi/v7/scss/_animated.scss
Normal file
@ -0,0 +1,27 @@
|
||||
// From Font Awesome
|
||||
.#{$mdi-css-prefix}-spin:before {
|
||||
-webkit-animation: #{$mdi-css-prefix}-spin 2s infinite linear;
|
||||
animation: #{$mdi-css-prefix}-spin 2s infinite linear;
|
||||
}
|
||||
|
||||
@-webkit-keyframes #{$mdi-css-prefix}-spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes #{$mdi-css-prefix}-spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
10
fonts/mdi/v7/scss/_core.scss
Normal file
10
fonts/mdi/v7/scss/_core.scss
Normal file
@ -0,0 +1,10 @@
|
||||
.#{$mdi-css-prefix}:before,
|
||||
.#{$mdi-css-prefix}-set {
|
||||
display: inline-block;
|
||||
font: normal normal normal #{$mdi-font-size-base}/1 '#{$mdi-font-name}'; // shortening font declaration
|
||||
font-size: inherit; // can't have font-size inherit on line above, so need to override
|
||||
text-rendering: auto; // optimizelegibility throws things off #1094
|
||||
line-height: inherit;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
65
fonts/mdi/v7/scss/_extras.scss
Normal file
65
fonts/mdi/v7/scss/_extras.scss
Normal file
@ -0,0 +1,65 @@
|
||||
$mdi-sizes: 18 24 36 48 !default;
|
||||
@each $mdi-size in $mdi-sizes {
|
||||
.#{$mdi-css-prefix}-#{$mdi-size}px {
|
||||
&.#{$mdi-css-prefix}-set,
|
||||
&.#{$mdi-css-prefix}:before {
|
||||
font-size: $mdi-size * 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$mdi-css-prefix}-dark {
|
||||
&:before {
|
||||
color: rgba(0, 0, 0, 0.54);
|
||||
}
|
||||
&.#{$mdi-css-prefix}-inactive:before {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
}
|
||||
.#{$mdi-css-prefix}-light {
|
||||
&:before {
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
&.#{$mdi-css-prefix}-inactive:before {
|
||||
color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
$mdi-degrees: 45 90 135 180 225 270 315 !default;
|
||||
@each $mdi-degree in $mdi-degrees {
|
||||
.#{$mdi-css-prefix}-rotate-#{$mdi-degree}{
|
||||
&:before {
|
||||
-webkit-transform: rotate(#{$mdi-degree}deg);
|
||||
-ms-transform: rotate(#{$mdi-degree}deg);
|
||||
transform: rotate(#{$mdi-degree}deg);
|
||||
}
|
||||
/*
|
||||
// Not included in production
|
||||
&.#{$mdi-css-prefix}-flip-h:before {
|
||||
-webkit-transform: scaleX(-1) rotate(#{$mdi-degree}deg);
|
||||
transform: scaleX(-1) rotate(#{$mdi-degree}deg);
|
||||
filter: FlipH;
|
||||
-ms-filter: "FlipH";
|
||||
}
|
||||
&.#{$mdi-css-prefix}-flip-v:before {
|
||||
-webkit-transform: scaleY(-1) rotate(#{$mdi-degree}deg);
|
||||
-ms-transform: rotate(#{$mdi-degree}deg);
|
||||
transform: scaleY(-1) rotate(#{$mdi-degree}deg);
|
||||
filter: FlipV;
|
||||
-ms-filter: "FlipV";
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
.#{$mdi-css-prefix}-flip-h:before {
|
||||
-webkit-transform: scaleX(-1);
|
||||
transform: scaleX(-1);
|
||||
filter: FlipH;
|
||||
-ms-filter: "FlipH";
|
||||
}
|
||||
.#{$mdi-css-prefix}-flip-v:before {
|
||||
-webkit-transform: scaleY(-1);
|
||||
transform: scaleY(-1);
|
||||
filter: FlipV;
|
||||
-ms-filter: "FlipV";
|
||||
}
|
20
fonts/mdi/v7/scss/_functions.scss
Normal file
20
fonts/mdi/v7/scss/_functions.scss
Normal file
@ -0,0 +1,20 @@
|
||||
@function char($character-code) {
|
||||
@if function-exists("selector-append") {
|
||||
@return unquote("\"\\#{$character-code}\"");
|
||||
}
|
||||
|
||||
@if "\\#{'x'}" == "\\x" {
|
||||
@return str-slice("\x", 1, 1) + $character-code;
|
||||
}
|
||||
@else {
|
||||
@return #{"\"\\"}#{$character-code + "\""};
|
||||
}
|
||||
}
|
||||
|
||||
@function mdi($name) {
|
||||
@if map-has-key($mdi-icons, $name) == false {
|
||||
@warn "Icon #{$name} not found.";
|
||||
@return "";
|
||||
}
|
||||
@return char(map-get($mdi-icons, $name));
|
||||
}
|
10
fonts/mdi/v7/scss/_icons.scss
Normal file
10
fonts/mdi/v7/scss/_icons.scss
Normal file
@ -0,0 +1,10 @@
|
||||
@each $key, $value in $mdi-icons {
|
||||
.#{$mdi-css-prefix}-#{$key}::before {
|
||||
content: char($value);
|
||||
}
|
||||
}
|
||||
|
||||
.#{$mdi-css-prefix}-blank::before {
|
||||
content: "\F68C";
|
||||
visibility: hidden;
|
||||
}
|
10
fonts/mdi/v7/scss/_path.scss
Normal file
10
fonts/mdi/v7/scss/_path.scss
Normal file
@ -0,0 +1,10 @@
|
||||
@font-face {
|
||||
font-family: '#{$mdi-font-name}';
|
||||
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?v=#{$mdi-version}');
|
||||
src: url('#{$mdi-font-path}/#{$mdi-filename}-webfont.eot?#iefix&v=#{$mdi-version}') format('embedded-opentype'),
|
||||
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff2?v=#{$mdi-version}') format('woff2'),
|
||||
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.woff?v=#{$mdi-version}') format('woff'),
|
||||
url('#{$mdi-font-path}/#{$mdi-filename}-webfont.ttf?v=#{$mdi-version}') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
7207
fonts/mdi/v7/scss/_variables.scss
Normal file
7207
fonts/mdi/v7/scss/_variables.scss
Normal file
File diff suppressed because it is too large
Load Diff
8
fonts/mdi/v7/scss/materialdesignicons.scss
Normal file
8
fonts/mdi/v7/scss/materialdesignicons.scss
Normal file
@ -0,0 +1,8 @@
|
||||
/* MaterialDesignIcons.com */
|
||||
@import "variables";
|
||||
@import "functions";
|
||||
@import "path";
|
||||
@import "core";
|
||||
@import "icons";
|
||||
@import "extras";
|
||||
@import "animated";
|
Reference in New Issue
Block a user