Compare commits

...
121 Commits
Author SHA1 Message Date
Adam Bradley 49627a90ba 4.0.0 2018-05-10 13:57:04 -05:00
Adam Bradley 578d69a225 update to stencil 0.8.2 2018-05-10 13:46:17 -05:00
Kevin Ports 3e57401ce2 Docs updates (#533)
* New docs landing page design

* Add icon type toggle, new toast bar layout

* Design tweaks, responsive toast bar

* Move toast bar to separate component

* Sticky list headers, sitcky header nav, toggle focus between search inputs on scroll

* Add svg source file zip archiving to build scripts

* Add links to download svgs

* Tweak header bar overlay state threshold

* Get rid of toast bar flashing on first page load

* Cleanup, adding some presentational details

* Add mobile styles

* Add router, scss

* Finish mobile styles, browser testing fixes

* Finish mobile styles, browser testing fixes

* Add version to data.json file, a few style tweaks

* Add 404 page and router switch

* A few route tweaks

* Update stencil, a few fixes

* Add og image, update meta data

* Add Twitter card meta

* Custom search input clear button

* cleanup

* Woops! git was ignoring the src/docs folder

* Add sticky subheaders back in for icon list

* Update OG image

* Update bug in ios trash icon
2018-05-10 13:37:50 -05:00
Adam Bradley 5c1c55ae80 4.0.0-19 2018-04-03 15:53:21 -05:00
Adam Bradley 48f3ee95c8 chore(docs): update docs stencil config 2018-04-03 15:51:20 -05:00
Adam Bradley bac49870cb chore(package): update to stencil 0.7.12 2018-04-03 15:48:47 -05:00
Adam Bradley 6c55058ddb chore(build): rename to release 2018-04-03 15:40:23 -05:00
Cam Wiegert 19785fe226 fix(svgo): remove fill/stroke attributes from svg 2018-04-03 15:39:01 -05:00
Adam Bradley 18077c9d67 4.0.0-18 2018-02-27 14:23:49 -06:00
Adam Bradley 492c353fc2 chore(package): update to stencil 0.6.11 2018-02-27 14:21:39 -06:00
Adam Bradley 515171c79d 4.0.0-17 2018-02-27 12:13:09 -06:00
Adam Bradley 3f40e8029b chore(package): update to stencil 0.6.9 2018-02-27 12:11:32 -06:00
Adam Bradley 76023ce723 4.0.0-16 2018-02-23 10:43:26 -06:00
Adam Bradley 93726208ff chore(package): update to stencil 0.6.7 2018-02-23 10:41:46 -06:00
Adam Bradley 7ad59e353d 4.0.0-15 2018-02-22 10:36:49 -06:00
Adam Bradley 922709e245 chore(package): update to stencil 0.6.6 2018-02-22 10:34:53 -06:00
Adam Bradley bd216dde19 docs(css): do not depend on sass 2018-02-22 10:34:26 -06:00
Brandy Carney b115bd818d 4.0.0-14 2018-02-15 15:46:48 -05:00
Brandy Carney 3704a4cd96 fix(icon): add the colors to icon and size attribute
closes #524
2018-02-15 15:11:08 -05:00
Adam Bradley 5c3c73d018 fix(cheatsheet): update ion-icon component reference 2018-02-14 12:01:55 -06:00
Adam Bradley 6deac15c5b fix(cheatsheet): update cheatsheet copy 2018-02-14 11:04:18 -06:00
Adam Bradley 0ac5b04974 fix(docs): fix build scripts for docs site 2018-02-14 10:43:01 -06:00
Adam Bradley fc21b101f4 4.0.0-13 2018-01-22 11:22:37 -06:00
Adam Bradley c8fc36825c chore(package): update to stencil 0.2.0-0 2018-01-22 11:20:59 -06:00
Adam Bradley 14ce50bf97 refactor(css): move to css only component 2018-01-22 11:16:07 -06:00
Brandy Carney 9b63a6feb7 chore(ionicons): publish 4.0.0-12 2018-01-12 12:59:53 -05:00
Brandy Carney 981eb235b1 fix(icon): update so that ios and md attributes work and uppercase 2018-01-12 12:42:47 -05:00
Adam Bradley 2e6e62cf53 4.0.0-11 2017-12-18 12:23:31 -06:00
Adam Bradley dde00c6bc4 refactor(build): node-sass, copy tasks, stencil updates 2017-12-18 12:22:14 -06:00
Adam Bradley e39ff078f6 4.0.0-10 2017-12-15 12:19:43 -06:00
Adam Bradley 77408f5692 fix(style): use one style mode 2017-12-15 12:18:26 -06:00
Adam Bradley 9372f1fea6 chore(typescript): add tsconfig 2017-12-15 12:11:33 -06:00
Cam Wiegert 323844cfdb 4.0.0-9 2017-12-14 16:56:34 -06:00
Cam Wiegert ea63242596 fix() stop tracking docs/ 2017-12-14 16:41:31 -06:00
Adam Bradley 664476d0b0 Revert "4.0.0-9"
This reverts commit 477f0030c4.
2017-12-14 16:25:52 -06:00
Cam Wiegert 477f0030c4 4.0.0-9 2017-12-14 16:20:07 -06:00
Cam Wiegert 75dc3c43db feat(icon) set fill to currentColor 2017-12-14 16:17:13 -06:00
Adam Bradley 27896db5ac 4.0.0-8 2017-12-14 15:54:20 -06:00
Adam Bradley 1d7104884b docs(fonts): update fonts 2017-12-14 15:53:29 -06:00
Cam Wiegert 44f9dc1811 fix() stop tracking dist/ 2017-12-14 15:46:35 -06:00
Cam Wiegert 3d3cf46c05 feat(icon) add styles for inline use 2017-12-14 15:45:31 -06:00
Adam Bradley 7e7f38836a chore(dist): update dist directory 2017-12-14 15:25:29 -06:00
Adam Bradley 88db44afdd feat(docs): init docs site 2017-12-14 15:24:57 -06:00
Adam Bradley 895c105206 chore(update): update to stencil 0.0.9-1 2017-12-14 15:15:28 -06:00
Adam Bradley d2227c5eae feat(ionicon): ion-icon web component 2017-12-14 15:11:23 -06:00
Adam Bradley 551b297539 feat(scss): icon font scss updates 2017-12-14 15:10:30 -06:00
Adam Bradley 9d629213d5 feat(build): updated build scripts 2017-12-14 15:08:08 -06:00
Ben 04978c04e2 feat(icons): v4 icon update 2017-12-14 14:53:28 -06:00
Adam Bradley 6811b241e9 Merge pull request #335 from ReadmeCritic/master
Update README URLs based on HTTP redirects
2016-01-11 14:55:16 -06:00
Adam Bradley a70f28bc9f Merge pull request #342 from fjaguero/patch-2
Update copyright year
2016-01-11 14:54:09 -06:00
Fernando Agüero 27a9c6b31c Update copyright year 2016-01-11 16:51:48 +01:00
ReadmeCritic 57a7bf240f Update README URLs based on HTTP redirects 2015-12-07 18:20:13 -08:00
Adam Bradley a40523f14c v2.0.1 2015-01-14 22:42:49 -06:00
Ben Sperry ecb4b80683 Update readme.md 2015-01-03 14:02:30 -06:00
Adam Bradley 23c9854d29 v2.0 rebuild 2014-12-04 09:52:35 -06:00
Ben Sperry 5dc30d9e0f Add new home icon 2014-12-04 09:51:29 -06:00
Adam Bradley e7a1db1c17 v2.0 rebuild 2014-12-04 09:47:29 -06:00
Ben Sperry 9872f60ce0 update iOS icon styles/forms 2014-12-04 01:55:00 -06:00
Adam Bradley aca3e9a719 v2.0.0 2014-12-03 22:37:16 -06:00
Ben Sperry 22eea91a55 New version of regular wand icon 2014-12-03 11:13:53 -06:00
Ben Sperry 69c7bd60a5 Update to iso-wand icon. Add outline version, 2014-12-03 11:13:40 -06:00
Ben Sperry 98fc13fc18 Remove old basketball icon 2014-12-03 09:50:44 -06:00
Ben Sperry 4e74154999 A few more - updated design 2014-12-03 09:29:50 -06:00
Ben Sperry a40ac013f5 Update icons, simplify points, reduce file size 2014-12-03 09:28:33 -06:00
Ben Sperry 8e62748989 Reduce size of larger icons 2014-12-02 23:25:48 -06:00
Ben Sperry e2780c7c6e Update wonky social icons 2014-12-02 22:13:21 -06:00
Ben Sperry 53e3c78808 Add new src icons 2014-12-02 21:14:48 -06:00
Ben Sperry 81ccbc395e Remove src files in prep of new ones... 2014-12-02 21:11:38 -06:00
Ben Sperry 28d6455924 Update Yen icon 2014-12-02 13:28:15 -06:00
Ben Sperry 871c99cf4e Add rest of icons to 2.0 Source 2014-12-02 13:06:35 -06:00
Ben Sperry 44bd2831be Ionicons 2.0 Source
Update Android icons and tweaks/additions to others. Rename from “iOS7”
to just “iOS”
2014-12-02 13:05:09 -06:00
Ben Sperry 0cb62293fd Merge pull request #165 from Rionmonster/master
Add missing PNG Files; Losslessly optimized.
2014-12-01 17:20:35 -06:00
Rion a1c65c6d7f Added missing PNG Files; Losslessly optimized.
Added all missing PNG files that were not present within the SVG folder.
Losslessly optimized all images as well.
2014-12-01 11:33:48 -06:00
Adam Bradley f3b69b69b7 v1.5.2 w/ :before pseudo 2014-06-16 15:03:45 -05:00
Adam Bradley 135798c6b0 v1.5.1 version number update 2014-06-16 13:31:33 -05:00
Adam Bradley 5731ff45b3 v1.5.1 2014-06-16 13:22:22 -05:00
Ben Sperry f5b6c84c16 updated several icons 2014-06-13 19:28:24 -05:00
Ben Sperry de828a101b updated code icons 2014-06-13 16:57:28 -05:00
Adam Bradley 5ec497e683 v1.5.0 2014-06-13 15:53:41 -05:00
Ben Sperry 04e8cb177b new playstore icon 2014-06-13 15:50:34 -05:00
Ben Sperry 481023a921 New/updated icons! 2014-06-13 15:50:22 -05:00
Ben Sperry 92ab37d6e3 Merge pull request #79 from 2metres/master
Add iOS7 version of shrink and expand icons
2014-05-28 14:47:26 -05:00
Adam Bradley 01a4a40a0b Update readme.md 2014-04-28 12:02:13 -05:00
Adam Bradley d99d7f98b9 Update readme.md 2014-04-18 15:19:41 -05:00
Adam Bradley ae79781ab8 Merge pull request #89 from lancehudson/upstream
Add less generation
2014-04-18 15:10:45 -05:00
Lance Hudson 302f359bc3 Add less generation 2014-04-17 20:32:04 -04:00
Andrew Carr 7eec94b5da Add iOS7 version of shrink and expand icons 2014-03-18 16:37:57 +11:00
Peter Collins 2a5eabe57e Rename ben's twitter handle 2014-02-21 14:24:26 -06:00
Ben Sperry eee60a605e Merge pull request #73 from gdi2290/patch-1
update copyright year
2014-02-04 16:39:18 -08:00
PatrickJS 40c199df51 update copyright year 2014-02-03 22:35:51 -08:00
Adam Bradley 76925c32a0 rebuild v1.4.1 2014-02-02 00:02:19 -06:00
Adam Bradley be4aa89313 v1.4.1 2014-01-11 17:02:00 -06:00
Adam Bradley 44f008b186 1.4.1 2014-01-11 17:01:18 -06:00
Adam Bradley 6b3b1843bd ion- svg glyph names 2013-12-27 00:06:04 -06:00
Adam Bradley 23db7f2706 updated pngs, closes #54 2013-12-27 00:00:34 -06:00
Adam Bradley ec005a4189 Better glyph-name in generated svg, closes #60 2013-12-26 23:55:21 -06:00
Adam Bradley 641c23b36d fontcustom credit 2013-12-26 23:43:46 -06:00
Adam Bradley f7328566b9 v1.4.0, added android icons 2013-12-06 14:05:56 -06:00
Ben Sperry 2731a29800 Added the Android pack
64 new icons, all Android-themed @adamdbradley
2013-12-05 18:18:05 -06:00
Ben Sperry 0ed84eda47 updated name to eye-disabled
@adamdbradley
2013-12-05 16:59:36 -06:00
Ben Sperry ee92c0d751 Added a crossed out eye icon 2013-12-05 16:58:21 -06:00
Ben Sperry 081c8d0a11 Added three new gaming icons
xbox, playstation, steam
@adamdbradley
2013-12-05 13:47:26 -06:00
Ben Sperry b3d8f8fdc5 Had to fix an issue with the Jet icon
@adamdbradley
2013-12-05 13:43:59 -06:00
Ben Sperry 56f96afd28 Updated some icons for Max's weather app
Also added three new ones: cloudy-night, cloudy-night-outline, and
snowy. @adamdbradley
2013-12-05 13:40:52 -06:00
Ben Sperry fff5250117 updated the social Windows icons
@adamdbradley fyi
2013-12-04 14:37:00 -06:00
Adam Bradley b7acf31666 v1.3.7
added bug, edit, fork-repo, model-s, no-smoking, paper-airplane,
social-freebsd-devil, social-tux
2013-12-04 10:41:08 -06:00
Ben Sperry e20e26ed12 updated Bug icon 2013-12-03 19:24:39 -06:00
Ben Sperry 46ee9fa8d9 Added No Smoking and Car (model s) icons 2013-12-03 18:29:12 -06:00
Ben Sperry 7d4cf1feb1 Added 6 new icon svgs to "src" folder
Added 4 defualt icons (Bug, Edit, Fork Repo, and Paper Airplane) and 2
social icons (Tux and FreeBSD Devil).
2013-12-03 17:42:17 -06:00
Adam Bradley d4ccb8fde3 remove version number from md5 build hash 2013-11-25 13:07:13 -06:00
Adam Bradley 98339dfbfd .ion-loading-a step(8, start) timing function 2013-11-25 13:06:53 -06:00
Adam Bradley 591f013dd4 set text-rendering: auto; to override optimizeLegibility 2013-11-25 12:49:34 -06:00
Max Lynch 0dbe98229f Merge pull request #46 from yuanyan/master
Fix the name of fonts folder
2013-11-17 08:08:17 -08:00
yuanyan 0b1f3fdeae Fix the name of fonts folder 2013-11-17 22:50:46 +08:00
Adam Bradley 560be6a5df do not auto-width animated icons 2013-11-15 13:19:13 -06:00
Adam Bradley aa72d6fec2 auto-width enabled, added ios7-close-empty 2013-11-14 10:20:30 -06:00
Adam Bradley 0ee2a4164b woof woff 2013-11-14 10:20:07 -06:00
Adam Bradley 1b9e40b929 v1.3.4 2013-11-14 10:19:46 -06:00
Max Lynch 7cbd168631 Turned woof into woff. Woof, woof 2013-11-08 12:50:09 -06:00
Ben Sperry e97eb07752 updated the "refresh" icon to look better when spinning 2013-11-08 10:48:33 -06:00
Ben Sperry 3ee6c3bcf4 updated close icon and added "close-empty" version 2013-11-08 08:55:22 -06:00
1697 changed files with 71032 additions and 15461 deletions
+19 -4
View File
@@ -1,4 +1,19 @@
_site
.sass-cache
*.scssc
*.swp
*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.idea/
.sass-cache/
.versions/
.vscode/
node_modules/
tmp/
dist/
docs/
.DS_Store
!/src/docs
+5
View File
@@ -0,0 +1,5 @@
plugins:
- removeAttrs:
attrs:
- 'fill'
- 'stroke'
+1 -1
View File
@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2013 Drifty (http://drifty.com/)
Copyright (c) 2015-present Ionic (http://ionic.io/)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
-31
View File
@@ -1,31 +0,0 @@
{
"ignore": [
"**/.*",
"builder",
"node_modules",
"bower_components",
"test",
"tests"
],
"version": "1.3.3",
"name": "Ionicons",
"license": "MIT",
"authors": [
"Ben Sperry <ben@drifty.com>",
"Adam Bradley <adam@drifty.com>",
"Max Lynch <max@drifty.com>"
],
"keywords": [
"fonts",
"icon font",
"icons",
"ionic",
"web font"
],
"main": [
"css/ionicons.css",
"fonts/*"
],
"homepage": "https://github.com/driftyco/ionicons",
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework"
}
File diff suppressed because it is too large Load Diff
-38
View File
@@ -1,38 +0,0 @@
<div class="icon-row">
<div class="preview-icon"><span class="step size-12">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-14">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-16">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-18">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-21">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-24">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-32">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-48">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-64">
<i class="icon {{prefix}}{{name}}"></i>
</span><span class="step size-96">
<i class="icon {{prefix}}{{name}}"></i>
</span>
</div>
<div class="preview-scale"><span class="step">12</span><span class="step">14</span><span class="step">16</span><span class="step">18</span><span class="step">21</span><span class="step">24</span><span class="step">32</span><span class="step">48</span><span class="step">64</span><span class="step">96</span></div>
<div class="usage">
<label>Classname:</label>
<input class="name" type="text" readonly="readonly" onClick="this.select();" value="{{prefix}}{{name}}" />
<label>Selectable:</label>
<span class="ion">{{html_code}}</span>
<label>Escaped HTML:</label>
<input class="html" type="text" readonly="readonly" onClick="this.select();" value="{{escaped_html_code}}" />
<label>CSS Content:</label>
<input class="css" type="text" readonly="readonly" onClick="this.select();" value="{{css_code}}" />
</div>
</div>
-156
View File
@@ -1,156 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>{{font_name}} v{{font_version}} Cheatsheet</title>
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body {
background: #fff;
color: #444;
font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a, a:visited {
color: #888;
text-decoration: underline;
}
a:hover, a:focus { color: #000; }
header {
border-bottom: 2px solid #ddd;
margin-bottom: 20px;
overflow: hidden;
padding: 20px 0;
}
header h1 {
color: #888;
float: left;
font-size: 36px;
font-weight: 300;
}
header a {
float: right;
font-size: 14px;
}
.container {
margin: 0 auto;
max-width: 1200px;
min-width: 960px;
padding: 0 20px;
width: 95%;
}
.icon-row {
border-bottom: 1px dotted #ccc;
padding: 10px 0 20px;
margin-bottom: 20px;
}
.ion {
-webkit-touch-callout: text;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.preview-icon { vertical-align: bottom; }
.preview-scale {
color: #888;
font-size: 12px;
margin-top: 5px;
}
.step {
display: inline-block;
line-height: 1;
position: relative;
width: 10%;
}
.step i {
-webkit-transition: opacity .3s;
-moz-transition: opacity .3s;
-ms-transition: opacity .3s;
-o-transition: opacity .3s;
transition: opacity .3s;
}
.step:hover i { opacity: .3; }
.size-12 { font-size: 12px; }
.size-14 { font-size: 14px; }
.size-16 { font-size: 16px; }
.size-18 { font-size: 18px; }
.size-21 { font-size: 21px; }
.size-24 { font-size: 24px; }
.size-32 { font-size: 32px; }
.size-48 { font-size: 48px; }
.size-64 { font-size: 64px; }
.size-96 { font-size: 96px; }
.usage { margin-top: 10px; }
.usage input {
font-family: monospace;
margin-right: 3px;
padding: 2px 5px;
text-align: center;
-webkit-touch-callout: text;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.usage label {
font-size: 12px;
text-align: right;
padding: 0 3px 0 60px;
}
.usage label:first-child { padding-left: 0; }
.usage .name { width: 180px; }
.usage .html { width: 80px; }
.usage .css { width: 80px; }
footer {
color: #888;
font-size: 12px;
padding: 20px 0;
}
</style>
<link href="css/ionicons.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<header>
<h1>{{font_name}} v{{font_version}} Cheatsheet, {{icon_count}} icons:</h1>
<p><a href="http://ionicons.com/">Ionicons Homepage</a></p>
</header>
<div class="content">
{{content}}
</div>
<footer>
Made with love by the <a href="http://ionicframework.com/">Ionic Framework</a>
</footer>
</div>
</body>
</html>
-246
View File
@@ -1,246 +0,0 @@
from subprocess import call
import os
import json
BUILDER_PATH = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.join(BUILDER_PATH, '..')
FONTS_FOLDER_PATH = os.path.join(ROOT_PATH, 'fonts')
CSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'css')
SCSS_FOLDER_PATH = os.path.join(ROOT_PATH, 'scss')
def main():
generate_font_files()
data = get_build_data()
generate_scss(data)
generate_cheatsheet(data)
generate_component_json(data)
generate_composer_json(data)
generate_bower_json(data)
def generate_font_files():
print "Generate Fonts"
cmd = "fontforge -script %s/scripts/generate_font.py" % (BUILDER_PATH)
call(cmd, shell=True)
def generate_scss(data):
print "Generate SCSS"
font_name = data['name']
font_version = data['version']
css_prefix = data['prefix']
variables_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-variables.scss')
icons_file_path = os.path.join(SCSS_FOLDER_PATH, '_ionicons-icons.scss')
d = []
d.append('// Ionicons Variables')
d.append('// --------------------------\n')
d.append('$ionicons-font-path: "../fonts" !default;')
d.append('$ionicons-font-family: "%s" !default;' % (font_name) )
d.append('$ionicons-version: "%s" !default;' % (font_version) )
d.append('$ionicons-prefix: %s !default;' % (css_prefix) )
d.append('')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('$ionicon-var-%s: "%s";' % (ionicon['name'], chr_code) )
f = open(variables_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
d = []
d.append('// Ionicons Icons')
d.append('// --------------------------\n')
group = [ '.%s' % (data['name'].lower()) ]
for ionicon in data['icons']:
group.append('.#{$ionicons-prefix}%s' % (ionicon['name']) )
d.append( ',\n'.join(group) )
d.append('{')
d.append(' @extend .ion;')
d.append('}')
for ionicon in data['icons']:
chr_code = ionicon['code'].replace('0x', '\\')
d.append('.#{$ionicons-prefix}%s:before { content: $ionicon-var-%s; }' % (ionicon['name'], ionicon['name']) )
f = open(icons_file_path, 'w')
f.write( '\n'.join(d) )
f.close()
generate_css_from_scss(data)
def generate_css_from_scss(data):
print "Generate CSS From SCSS"
scss_file_path = os.path.join(SCSS_FOLDER_PATH, 'ionicons.scss')
css_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.css')
css_min_file_path = os.path.join(CSS_FOLDER_PATH, 'ionicons.min.css')
cmd = "sass %s %s" % (scss_file_path, css_file_path)
call(cmd, shell=True)
print "Generate Minified CSS From SCSS"
cmd = "sass %s %s --style compressed" % (scss_file_path, css_min_file_path)
call(cmd, shell=True)
def generate_cheatsheet(data):
print "Generate Cheatsheet"
cheatsheet_file_path = os.path.join(ROOT_PATH, 'cheatsheet.html')
template_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'template.html')
icon_row_path = os.path.join(BUILDER_PATH, 'cheatsheet', 'icon-row.html')
f = open(template_path, 'r')
template_html = f.read()
f.close()
f = open(icon_row_path, 'r')
icon_row_template = f.read()
f.close()
content = []
for ionicon in data['icons']:
css_code = ionicon['code'].replace('0x', '\\')
escaped_html_code = ionicon['code'].replace('0x', '&amp;#x') + ';'
html_code = ionicon['code'].replace('0x', '&#x') + ';'
item_row = icon_row_template
item_row = item_row.replace('{{name}}', ionicon['name'])
item_row = item_row.replace('{{prefix}}', data['prefix'])
item_row = item_row.replace('{{css_code}}', css_code)
item_row = item_row.replace('{{escaped_html_code}}', escaped_html_code)
item_row = item_row.replace('{{html_code}}', html_code)
content.append(item_row)
template_html = template_html.replace("{{font_name}}", data["name"])
template_html = template_html.replace("{{font_version}}", data["version"])
template_html = template_html.replace("{{icon_count}}", str(len(data["icons"])) )
template_html = template_html.replace("{{content}}", '\n'.join(content) )
f = open(cheatsheet_file_path, 'w')
f.write(template_html)
f.close()
def generate_component_json(data):
print "Generate component.json"
d = {
"name": data['name'],
"repo": "driftyco/ionicons",
"description": "The premium icon font for Ionic Framework.",
"version": data['version'],
"keywords": [],
"dependencies": {},
"development": {},
"license": "MIT",
"styles": [
"css/%s.css" % (data['name'].lower())
],
"fonts": [
"fonts/%s.eot" % (data['name'].lower()),
"fonts/%s.svg" % (data['name'].lower()),
"fonts/%s.ttf" % (data['name'].lower()),
"fonts/%s.woof" % (data['name'].lower())
]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
component_file_path = os.path.join(ROOT_PATH, 'component.json')
f = open(component_file_path, 'w')
f.write(txt)
f.close()
def generate_composer_json(data):
print "Generate composer.json"
d = {
"name": "driftyco/ionicons",
"description": "The premium icon font for Ionic Framework.",
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
"homepage": "http://ionicons.com/",
"authors": [
{
"name": "Ben Sperry",
"email": "ben@drifty.com",
"role": "Designer",
"homepage": "https://twitter.com/helloimben"
},
{
"name": "Adam Bradley",
"email": "adam@drifty.com",
"role": "Developer",
"homepage": "https://twitter.com/adamdbradley"
},
{
"name": "Max Lynch",
"email": "max@drifty.com",
"role": "Developer",
"homepage": "https://twitter.com/maxlynch"
}
],
"extra": {},
"license": [ "MIT" ]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
composer_file_path = os.path.join(ROOT_PATH, 'composer.json')
f = open(composer_file_path, 'w')
f.write(txt)
f.close()
def generate_bower_json(data):
print "Generate bower.json"
d = {
"name": data['name'],
"version": data['version'],
"homepage": "https://github.com/driftyco/ionicons",
"authors": [
"Ben Sperry <ben@drifty.com>",
"Adam Bradley <adam@drifty.com>",
"Max Lynch <max@drifty.com>"
],
"description": "Ionicons - free and beautiful icons from the creators of Ionic Framework",
"main": [
"css/%s.css" % (data['name'].lower()),
"fonts/*"
],
"keywords": [ "fonts", "icon font", "icons", "ionic", "web font"],
"license": "MIT",
"ignore": [
"**/.*",
"builder",
"node_modules",
"bower_components",
"test",
"tests"
]
}
txt = json.dumps(d, indent=4, separators=(',', ': '))
bower_file_path = os.path.join(ROOT_PATH, 'bower.json')
f = open(bower_file_path, 'w')
f.write(txt)
f.close()
def get_build_data():
build_data_path = os.path.join(BUILDER_PATH, 'build_data.json')
f = open(build_data_path, 'r')
data = json.loads(f.read())
f.close()
return data
if __name__ == "__main__":
main()
File diff suppressed because it is too large Load Diff
-173
View File
@@ -1,173 +0,0 @@
import fontforge
import os
import md5
import subprocess
import tempfile
import json
import copy
SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__))
INPUT_SVG_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'src')
OUTPUT_FONT_DIR = os.path.join(SCRIPT_PATH, '..', '..', 'fonts')
MANIFEST_PATH = os.path.join(SCRIPT_PATH, '..', 'manifest.json')
BUILD_DATA_PATH = os.path.join(SCRIPT_PATH, '..', 'build_data.json')
AUTO_WIDTH = False
KERNING = 15
cp = 0xf100
m = md5.new()
f = fontforge.font()
f.encoding = 'UnicodeFull'
f.design_size = 16
f.em = 512
f.ascent = 448
f.descent = 64
manifest_file = open(MANIFEST_PATH, 'r')
manifest_data = json.loads(manifest_file.read())
manifest_file.close()
print "Load Manifest, Icons: %s" % ( len(manifest_data['icons']) )
build_data = copy.deepcopy(manifest_data)
build_data['icons'] = []
font_name = manifest_data['name']
m.update(font_name + ';')
m.update(manifest_data['version'] + ';')
m.update(manifest_data['prefix'] + ';')
for dirname, dirnames, filenames in os.walk(INPUT_SVG_DIR):
for filename in filenames:
name, ext = os.path.splitext(filename)
filePath = os.path.join(dirname, filename)
size = os.path.getsize(filePath)
if ext in ['.svg', '.eps']:
# see if this file is already in the manifest
chr_code = None
for ionicon in manifest_data['icons']:
if ionicon['name'] == name:
chr_code = ionicon['code']
break
if chr_code is None:
# this is a new src icon
print 'New Icon: \n - %s' % (name)
while True:
chr_code = '0x%x' % (cp)
already_exists = False
for ionicon in manifest_data['icons']:
if ionicon.get('code') == chr_code:
already_exists = True
cp += 1
chr_code = '0x%x' % (cp)
continue
if not already_exists:
break
print ' - %s' % chr_code
manifest_data['icons'].append({
'name': name,
'code': chr_code
})
build_data['icons'].append({
'name': name,
'code': chr_code
})
if ext in ['.svg']:
# hack removal of <switch> </switch> tags
svgfile = open(filePath, 'r+')
tmpsvgfile = tempfile.NamedTemporaryFile(suffix=ext, delete=False)
svgtext = svgfile.read()
svgfile.seek(0)
# replace the <switch> </switch> tags with 'nothing'
svgtext = svgtext.replace('<switch>', '')
svgtext = svgtext.replace('</switch>', '')
tmpsvgfile.file.write(svgtext)
svgfile.close()
tmpsvgfile.file.close()
filePath = tmpsvgfile.name
# end hack
m.update(name + str(size) + ';')
glyph = f.createChar( int(chr_code, 16) )
glyph.importOutlines(filePath)
# if we created a temporary file, let's clean it up
if tmpsvgfile:
os.unlink(tmpsvgfile.name)
# set glyph size explicitly or automatically depending on autowidth
if AUTO_WIDTH:
glyph.left_side_bearing = glyph.right_side_bearing = 0
glyph.round()
else:
# force a manual size when autowidth is disabled
glyph.width = 512
# resize glyphs if autowidth is enabled
if AUTO_WIDTH:
f.autoWidth(0, 0, 512)
fontfile = '%s/ionicons' % (OUTPUT_FONT_DIR)
build_hash = m.hexdigest()
if build_hash == manifest_data.get('build_hash'):
print "Source files unchanged, did not rebuild fonts"
else:
manifest_data['build_hash'] = build_hash
f.fontname = font_name
f.familyname = font_name
f.fullname = font_name
f.generate(fontfile + '.ttf')
f.generate(fontfile + '.svg')
# Fix SVG header for webkit
# from: https://github.com/fontello/font-builder/blob/master/bin/fontconvert.py
svgfile = open(fontfile + '.svg', 'r+')
svgtext = svgfile.read()
svgfile.seek(0)
svgfile.write(svgtext.replace('''<svg>''', '''<svg xmlns="http://www.w3.org/2000/svg">'''))
svgfile.close()
scriptPath = os.path.dirname(os.path.realpath(__file__))
try:
subprocess.Popen([scriptPath + '/sfnt2woff', fontfile + '.ttf'], stdout=subprocess.PIPE)
except OSError:
# If the local version of sfnt2woff fails (i.e., on Linux), try to use the
# global version. This allows us to avoid forcing OS X users to compile
# sfnt2woff from source, simplifying install.
subprocess.call(['sfnt2woff', fontfile + '.ttf'])
# eotlitetool.py script to generate IE7-compatible .eot fonts
subprocess.call('python ' + scriptPath + '/eotlitetool.py ' + fontfile + '.ttf -o ' + fontfile + '.eot', shell=True)
subprocess.call('mv ' + fontfile + '.eotlite ' + fontfile + '.eot', shell=True)
# Hint the TTF file
subprocess.call('ttfautohint -s -f -n ' + fontfile + '.ttf ' + fontfile + '-hinted.ttf > /dev/null 2>&1 && mv ' + fontfile + '-hinted.ttf ' + fontfile + '.ttf', shell=True)
manifest_data['icons'] = sorted(manifest_data['icons'], key=lambda k: k['name'])
build_data['icons'] = sorted(build_data['icons'], key=lambda k: k['name'])
print "Save Manifest, Icons: %s" % ( len(manifest_data['icons']) )
f = open(MANIFEST_PATH, 'w')
f.write( json.dumps(manifest_data, indent=2, separators=(',', ': ')) )
f.close()
print "Save Build, Icons: %s" % ( len(build_data['icons']) )
f = open(BUILD_DATA_PATH, 'w')
f.write( json.dumps(build_data, indent=2, separators=(',', ': ')) )
f.close()
-19
View File
@@ -1,19 +0,0 @@
{
"repo": "driftyco/ionicons",
"development": {},
"version": "1.3.3",
"styles": [
"css/ionicons.css"
],
"name": "Ionicons",
"dependencies": {},
"keywords": [],
"license": "MIT",
"fonts": [
"fonts/ionicons.eot",
"fonts/ionicons.svg",
"fonts/ionicons.ttf",
"fonts/ionicons.woof"
],
"description": "The premium icon font for Ionic Framework."
}
-36
View File
@@ -1,36 +0,0 @@
{
"name": "driftyco/ionicons",
"license": [
"MIT"
],
"extra": {},
"authors": [
{
"homepage": "https://twitter.com/helloimben",
"role": "Designer",
"name": "Ben Sperry",
"email": "ben@drifty.com"
},
{
"homepage": "https://twitter.com/adamdbradley",
"role": "Developer",
"name": "Adam Bradley",
"email": "adam@drifty.com"
},
{
"homepage": "https://twitter.com/maxlynch",
"role": "Developer",
"name": "Max Lynch",
"email": "max@drifty.com"
}
],
"keywords": [
"fonts",
"icon font",
"icons",
"ionic",
"web font"
],
"homepage": "http://ionicons.com/",
"description": "The premium icon font for Ionic Framework."
}
-1857
View File
File diff suppressed because it is too large Load Diff
-6
View File
File diff suppressed because one or more lines are too long
Binary file not shown.
-2254
View File
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.
Binary file not shown.
+8047
View File
File diff suppressed because it is too large Load Diff
Executable
+73
View File
@@ -0,0 +1,73 @@
{
"name": "ionicons",
"version": "4.0.0",
"description": "Premium icons for Ionic.",
"files": [
"dist/"
],
"main": "dist/ionicons.js",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"scripts": {
"build": "npm run build.icon && npm run generate && npm run svg-to-js && npm run png && npm run build.data && npm run build.css && npm run build.zip && npm run build.docs && npm run icon-copy",
"build.icon": "stencil build",
"build.docs": "stencil build --config src/docs/stencil.config.js",
"build.data": "node scripts/data.js",
"build.css": "node scripts/build-css.js",
"build.zip": "node scripts/build-zip.js",
"icon-copy": "node scripts/copy-svg-to-dist.js",
"mode.comparison": "node scripts/mode-comparison.js",
"dev": "npm run build && sd concurrent \"stencil build --dev --config src/docs/stencil.config.js --watch\" \"stencil-dev-server\" ",
"generate": "python scripts/generate.py",
"svg-to-js": "node scripts/svg-to-js.js",
"png": "node scripts/png.js",
"release": "npm run build && np --any-branch"
},
"devDependencies": {
"@ionic/jpml": "latest",
"@stencil/core": "^0.8.2",
"@stencil/dev-server": "latest",
"@stencil/router": "^0.1.6",
"@stencil/sass": "0.0.3",
"@stencil/utils": "latest",
"fs-extra": "4.0.2",
"highlight.js": "^9.12.0",
"node-sass": "4.7.2",
"np": "2.17.0",
"svg2png": "4.1.1",
"svgo": "1.0.3"
},
"keywords": [
"ionicons",
"ionic",
"icon",
"svg",
"font",
"mobile",
"web component",
"component",
"custom element"
],
"homepage": "http://ionicons.com/",
"author": {
"name": "Ben Sperry",
"web": "https://twitter.com/benjsperry"
},
"contributors": [
{
"name": "Adam Bradley",
"web": "http://twitter.com/adamdbradley"
}
],
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionicons.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionicons/issues"
},
"license": "MIT",
"dependencies": {
"archiver": "^2.1.1"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Some files were not shown because too many files have changed in this diff Show More