mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
move ionicons to ionic/fonts
This commit is contained in:
@ -306,7 +306,7 @@ gulp.task('sass.dark', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('fonts', function() {
|
gulp.task('fonts', function() {
|
||||||
return gulp.src('ionic/components/icon/fonts/**/*')
|
return gulp.src(['ionic/fonts/**/*.ttf', 'ionic/fonts/**/*.woff'])
|
||||||
.pipe(gulp.dest('dist/fonts'));
|
.pipe(gulp.dest('dist/fonts'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 326 KiB |
9
ionic/components/icon/icon.scss
Normal file
9
ionic/components/icon/icon.scss
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
icon {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
icon[small] {
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
@ -13,12 +13,3 @@
|
|||||||
|
|
||||||
@import "ionicons-font";
|
@import "ionicons-font";
|
||||||
@import "ionicons-icons";
|
@import "ionicons-icons";
|
||||||
|
|
||||||
icon {
|
|
||||||
display: inline-block;
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
icon[small] {
|
|
||||||
font-size: 1.1em;
|
|
||||||
}
|
|
@ -25,6 +25,7 @@
|
|||||||
"components/button/button-fab",
|
"components/button/button-fab",
|
||||||
"components/checkbox/checkbox",
|
"components/checkbox/checkbox",
|
||||||
"components/content/content",
|
"components/content/content",
|
||||||
|
"components/icon/icon",
|
||||||
"components/item/item",
|
"components/item/item",
|
||||||
"components/form/form",
|
"components/form/form",
|
||||||
"components/form/label",
|
"components/form/label",
|
||||||
|
@ -26,7 +26,7 @@ $material-design-mode: true !default;
|
|||||||
// Ionicons
|
// Ionicons
|
||||||
$ionicons: true !default;
|
$ionicons: true !default;
|
||||||
@if ($ionicons) {
|
@if ($ionicons) {
|
||||||
@import "components/icon/ionicons";
|
@import "fonts/ionicons";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user