mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
Update usage documentation
This commit is contained in:
Vendored
+1
-4
@@ -288,7 +288,6 @@ p.lead {
|
||||
.hljs-selector-tag,
|
||||
.hljs-subst {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
@@ -308,7 +307,6 @@ p.lead {
|
||||
.hljs-section,
|
||||
.hljs-selector-id {
|
||||
color: #900;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
@@ -318,7 +316,6 @@ p.lead {
|
||||
.hljs-type,
|
||||
.hljs-class .hljs-title {
|
||||
color: #458;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
@@ -345,7 +342,6 @@ p.lead {
|
||||
|
||||
.hljs-meta {
|
||||
color: #999;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
@@ -402,6 +398,7 @@ p code {
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
margin: 18px 0px;
|
||||
}
|
||||
|
||||
.styled-code + .styled-code {
|
||||
|
||||
Vendored
+1
-1
@@ -120,4 +120,4 @@ function doesNotSupportsDynamicImports(dynamicImportTest) {
|
||||
|
||||
init(win, doc, namespace, fsNamespace, resourcesUrl, appCore, appCoreSsr, appCorePolyfilled, hydratedCssClass, components);
|
||||
|
||||
})(window, document, "DocsSite","docssite",0,"docssite.core.js","docssite.core.pf.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","icon-list",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","icon-search",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","header-bar",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
|
||||
})(window, document, "DocsSite","docssite",0,"docssite.core.js","es5-build-disabled.js","hydrated",[["footer-bar","footer-bar",1],["header-bar","header-bar",1,[["el",7],["isMobileMenuShown",5],["isSearchVisible",1,0,"is-search-visible",3],["isSticky",5],["query",1,0,1,2],["version",1,0,1,2]],0,[["window:scroll","handleScroll",0,1],["window:resize","handleResize",0,1]]],["icon-list","icon-list",1,[["data",1,0,1,1],["el",7],["isHeaderSearchVisible",5],["query",1,0,1,2],["selectedIcon",5],["selectedIconType",5]],0,[["body:keyup","escListener"],["body:click","handleBodyClicked"],["clearToast","handleClearToast"],["window:scroll","handleScroll",0,1]]],["icon-search","icon-search",1,[["autofocus",1,0,1,2],["query",1,0,1,2],["showClearCtrl",5],["size",1,0,1,2]],0,[["keyup","searchListener"]]],["ionicons-site","header-bar",1,[["data",5],["isHeaderSearchVisible",5],["query",5]],0,[["window:scroll","handleScroll",0,1],["hasSearched","searchHandler"],["toggleHeaderSearch","toggleHandler"]]],["landing-page","icon-list",1,[["data",1,0,1,1],["el",7],["query",1,0,1,2]]],["notfound-page","notfound-page",1],["stencil-route","header-bar",0,[["activeInGroup",5],["activeRouter",3,0,0,0,"activeRouter"],["component",1,0,1,2],["componentProps",1],["el",7],["exact",1,0,1,3],["group",1,0,1,2],["groupIndex",1,0,"group-index",4],["isServer",3,0,0,0,"isServer"],["location",3,0,0,0,"location"],["match",5],["queue",3,0,0,0,"queue"],["routeRender",1],["scrollTopOffset",1,0,"scroll-top-offset",4],["url",1,0,1,2]]],["stencil-route-link","stencil-route-link",0,[["activeClass",1,0,"active-class",2],["activeRouter",3,0,0,0,"activeRouter"],["anchorClass",1,0,"anchor-class",2],["anchorRole",1,0,"anchor-role",2],["anchorTabIndex",1,0,"anchor-tab-index",2],["anchorTitle",1,0,"anchor-title",2],["custom",1,0,1,2],["exact",1,0,1,3],["match",5],["strict",1,0,1,3],["url",1,0,1,2],["urlMatch",1,0,"url-match",2]]],["stencil-router","header-bar",0,[["activeRouter",3,0,0,0,"activeRouter"],["historyType",1,0,"history-type",2],["match",5],["root",1,0,1,2],["titleSuffix",1,0,"title-suffix",2]]],["toast-bar","icon-list",1,[["el",7],["hadIconOnce",5],["selectedIcon",1],["selectedIconType",1,0,"selected-icon-type",2],["showCopiedConfirm",5],["touchEndY",5],["touchStartY",5]]],["usage-page","usage-page",1,[["data",1,0,1,1],["exampleIcon",5],["exampleType",5],["match",1],["queue",3,0,0,0,"queue"]]]],HTMLElement.prototype);
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
+34
-262
@@ -1,265 +1,37 @@
|
||||
/*! Built with http://stenciljs.com */
|
||||
DocsSite.loadBundle('chunk-4440b782.js', ['exports'], function (exports) {
|
||||
var h = window.DocsSite.h;
|
||||
/**
|
||||
* TS adaption of https://github.com/pillarjs/path-to-regexp/blob/master/index.js
|
||||
*/
|
||||
/**
|
||||
* Default configs.
|
||||
*/
|
||||
var DEFAULT_DELIMITER = '/';
|
||||
var DEFAULT_DELIMITERS = './';
|
||||
/**
|
||||
* The main path matching regexp utility.
|
||||
*/
|
||||
var PATH_REGEXP = new RegExp([
|
||||
// Match escaped characters that would otherwise appear in future matches.
|
||||
// This allows the user to escape special characters that won't transform.
|
||||
'(\\\\.)',
|
||||
// Match Express-style parameters and un-named parameters with a prefix
|
||||
// and optional suffixes. Matches appear as:
|
||||
//
|
||||
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"]
|
||||
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined]
|
||||
'(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?'
|
||||
].join('|'), 'g');
|
||||
/**
|
||||
* Parse a string for the raw tokens.
|
||||
*/
|
||||
function parse(str, options) {
|
||||
var tokens = [];
|
||||
var key = 0;
|
||||
var index = 0;
|
||||
var path = '';
|
||||
var defaultDelimiter = (options && options.delimiter) || DEFAULT_DELIMITER;
|
||||
var delimiters = (options && options.delimiters) || DEFAULT_DELIMITERS;
|
||||
var pathEscaped = false;
|
||||
var res;
|
||||
while ((res = PATH_REGEXP.exec(str)) !== null) {
|
||||
var m = res[0];
|
||||
var escaped = res[1];
|
||||
var offset = res.index;
|
||||
path += str.slice(index, offset);
|
||||
index = offset + m.length;
|
||||
// Ignore already escaped sequences.
|
||||
if (escaped) {
|
||||
path += escaped[1];
|
||||
pathEscaped = true;
|
||||
continue;
|
||||
}
|
||||
var prev = '';
|
||||
var next = str[index];
|
||||
var name = res[2];
|
||||
var capture = res[3];
|
||||
var group = res[4];
|
||||
var modifier = res[5];
|
||||
if (!pathEscaped && path.length) {
|
||||
var k = path.length - 1;
|
||||
if (delimiters.indexOf(path[k]) > -1) {
|
||||
prev = path[k];
|
||||
path = path.slice(0, k);
|
||||
}
|
||||
}
|
||||
// Push the current path onto the tokens.
|
||||
if (path) {
|
||||
tokens.push(path);
|
||||
path = '';
|
||||
pathEscaped = false;
|
||||
}
|
||||
var partial = prev !== '' && next !== undefined && next !== prev;
|
||||
var repeat = modifier === '+' || modifier === '*';
|
||||
var optional = modifier === '?' || modifier === '*';
|
||||
var delimiter = prev || defaultDelimiter;
|
||||
var pattern = capture || group;
|
||||
tokens.push({
|
||||
name: name || key++,
|
||||
prefix: prev,
|
||||
delimiter: delimiter,
|
||||
optional: optional,
|
||||
repeat: repeat,
|
||||
partial: partial,
|
||||
pattern: pattern ? escapeGroup(pattern) : '[^' + escapeString(delimiter) + ']+?'
|
||||
});
|
||||
}
|
||||
// Push any remaining characters.
|
||||
if (path || index < str.length) {
|
||||
tokens.push(path + str.substr(index));
|
||||
}
|
||||
return tokens;
|
||||
DocsSite.loadBundle("chunk-4440b782.js", ["exports"], function (e) { window.DocsSite.h; var t = "/", n = "./", r = new RegExp(["(\\\\.)", "(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"), "g"); function i(e) { return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); } function a(e) { return e.replace(/([=!:$/()])/g, "\\$1"); } function u(e) { return e && e.sensitive ? "" : "i"; } function l(e, o, c) { return e instanceof RegExp ? function (e, t) { if (!t)
|
||||
return e; var n = e.source.match(/\((?!\?)/g); if (n)
|
||||
for (var r = 0; r < n.length; r++)
|
||||
t.push({ name: r, prefix: null, delimiter: null, optional: !1, repeat: !1, partial: !1, pattern: null }); return e; }(e, o) : Array.isArray(e) ? function (e, t, n) { for (var r = [], i = 0; i < e.length; i++)
|
||||
r.push(l(e[i], t, n).source); return new RegExp("(?:" + r.join("|") + ")", u(n)); }(e, o, c) : function (e, l, o) { return function (e, r, a) { for (var l = (a = a || {}).strict, o = !1 !== a.end, c = i(a.delimiter || t), s = a.delimiters || n, p = [].concat(a.endsWith || []).map(i).concat("$").join("|"), f = "", h = !1, d = 0; d < e.length; d++) {
|
||||
var g = e[d];
|
||||
if ("string" == typeof g)
|
||||
f += i(g), h = d === e.length - 1 && s.indexOf(g[g.length - 1]) > -1;
|
||||
else {
|
||||
var x = i(g.prefix), v = g.repeat ? "(?:" + g.pattern + ")(?:" + x + "(?:" + g.pattern + "))*" : g.pattern;
|
||||
r && r.push(g), g.optional ? g.partial ? f += x + "(" + v + ")?" : f += "(?:" + x + "(" + v + "))?" : f += x + "(" + v + ")";
|
||||
}
|
||||
/**
|
||||
* Escape a regular expression string.
|
||||
*/
|
||||
function escapeString(str) {
|
||||
return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1');
|
||||
} return o ? (l || (f += "(?:" + c + ")?"), f += "$" === p ? "$" : "(?=" + p + ")") : (l || (f += "(?:" + c + "(?=" + p + "))?"), h || (f += "(?=" + c + "|" + p + ")")), new RegExp("^" + f, u(a)); }(function (e, u) { for (var l, o = [], c = 0, s = 0, p = "", f = u && u.delimiter || t, h = u && u.delimiters || n, d = !1; null !== (l = r.exec(e));) {
|
||||
var g = l[0], x = l[1], v = l.index;
|
||||
if (p += e.slice(s, v), s = v + g.length, x)
|
||||
p += x[1], d = !0;
|
||||
else {
|
||||
var m = "", $ = e[s], y = l[2], w = l[3], E = l[4], R = l[5];
|
||||
if (!d && p.length) {
|
||||
var j = p.length - 1;
|
||||
h.indexOf(p[j]) > -1 && (m = p[j], p = p.slice(0, j));
|
||||
}
|
||||
p && (o.push(p), p = "", d = !1);
|
||||
var O = "" !== m && void 0 !== $ && $ !== m, S = "+" === R || "*" === R, b = "?" === R || "*" === R, k = m || f, A = w || E;
|
||||
o.push({ name: y || c++, prefix: m, delimiter: k, optional: b, repeat: S, partial: O, pattern: A ? a(A) : "[^" + i(k) + "]+?" });
|
||||
}
|
||||
/**
|
||||
* Escape the capturing group by escaping special characters and meaning.
|
||||
*/
|
||||
function escapeGroup(group) {
|
||||
return group.replace(/([=!:$/()])/g, '\\$1');
|
||||
}
|
||||
/**
|
||||
* Get the flags for a regexp from the options.
|
||||
*/
|
||||
function flags(options) {
|
||||
return options && options.sensitive ? '' : 'i';
|
||||
}
|
||||
/**
|
||||
* Pull out keys from a regexp.
|
||||
*/
|
||||
function regexpToRegexp(path, keys) {
|
||||
if (!keys)
|
||||
return path;
|
||||
// Use a negative lookahead to match only capturing groups.
|
||||
var groups = path.source.match(/\((?!\?)/g);
|
||||
if (groups) {
|
||||
for (var i = 0; i < groups.length; i++) {
|
||||
keys.push({
|
||||
name: i,
|
||||
prefix: null,
|
||||
delimiter: null,
|
||||
optional: false,
|
||||
repeat: false,
|
||||
partial: false,
|
||||
pattern: null
|
||||
});
|
||||
}
|
||||
}
|
||||
return path;
|
||||
}
|
||||
/**
|
||||
* Transform an array into a regexp.
|
||||
*/
|
||||
function arrayToRegexp(path, keys, options) {
|
||||
var parts = [];
|
||||
for (var i = 0; i < path.length; i++) {
|
||||
parts.push(pathToRegexp(path[i], keys, options).source);
|
||||
}
|
||||
return new RegExp('(?:' + parts.join('|') + ')', flags(options));
|
||||
}
|
||||
/**
|
||||
* Create a path regexp from string input.
|
||||
*/
|
||||
function stringToRegexp(path, keys, options) {
|
||||
return tokensToRegExp(parse(path, options), keys, options);
|
||||
}
|
||||
/**
|
||||
* Expose a function for taking tokens and returning a RegExp.
|
||||
*/
|
||||
function tokensToRegExp(tokens, keys, options) {
|
||||
options = options || {};
|
||||
var strict = options.strict;
|
||||
var end = options.end !== false;
|
||||
var delimiter = escapeString(options.delimiter || DEFAULT_DELIMITER);
|
||||
var delimiters = options.delimiters || DEFAULT_DELIMITERS;
|
||||
var endsWith = [].concat(options.endsWith || []).map(escapeString).concat('$').join('|');
|
||||
var route = '';
|
||||
var isEndDelimited = false;
|
||||
// Iterate over the tokens and create our regexp string.
|
||||
for (var i = 0; i < tokens.length; i++) {
|
||||
var token = tokens[i];
|
||||
if (typeof token === 'string') {
|
||||
route += escapeString(token);
|
||||
isEndDelimited = i === tokens.length - 1 && delimiters.indexOf(token[token.length - 1]) > -1;
|
||||
}
|
||||
else {
|
||||
var prefix = escapeString(token.prefix);
|
||||
var capture = token.repeat
|
||||
? '(?:' + token.pattern + ')(?:' + prefix + '(?:' + token.pattern + '))*'
|
||||
: token.pattern;
|
||||
if (keys)
|
||||
keys.push(token);
|
||||
if (token.optional) {
|
||||
if (token.partial) {
|
||||
route += prefix + '(' + capture + ')?';
|
||||
}
|
||||
else {
|
||||
route += '(?:' + prefix + '(' + capture + '))?';
|
||||
}
|
||||
}
|
||||
else {
|
||||
route += prefix + '(' + capture + ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (end) {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + ')?';
|
||||
route += endsWith === '$' ? '$' : '(?=' + endsWith + ')';
|
||||
}
|
||||
else {
|
||||
if (!strict)
|
||||
route += '(?:' + delimiter + '(?=' + endsWith + '))?';
|
||||
if (!isEndDelimited)
|
||||
route += '(?=' + delimiter + '|' + endsWith + ')';
|
||||
}
|
||||
return new RegExp('^' + route, flags(options));
|
||||
}
|
||||
/**
|
||||
* Normalize the given path string, returning a regular expression.
|
||||
*
|
||||
* An empty array can be passed in for the keys, which will hold the
|
||||
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
||||
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
||||
*/
|
||||
function pathToRegexp(path, keys, options) {
|
||||
if (path instanceof RegExp) {
|
||||
return regexpToRegexp(path, keys);
|
||||
}
|
||||
if (Array.isArray(path)) {
|
||||
return arrayToRegexp(path, keys, options);
|
||||
}
|
||||
return stringToRegexp(path, keys, options);
|
||||
}
|
||||
var patternCache = {};
|
||||
var cacheLimit = 10000;
|
||||
var cacheCount = 0;
|
||||
// Memoized function for creating the path match regex
|
||||
function compilePath(pattern, options) {
|
||||
var cacheKey = "" + options.end + options.strict;
|
||||
var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
|
||||
var cachePattern = JSON.stringify(pattern);
|
||||
if (cache[cachePattern]) {
|
||||
return cache[cachePattern];
|
||||
}
|
||||
var keys = [];
|
||||
var re = pathToRegexp(pattern, keys, options);
|
||||
var compiledPattern = { re: re, keys: keys };
|
||||
if (cacheCount < cacheLimit) {
|
||||
cache[cachePattern] = compiledPattern;
|
||||
cacheCount += 1;
|
||||
}
|
||||
return compiledPattern;
|
||||
}
|
||||
/**
|
||||
* Public API for matching a URL pathname to a path pattern.
|
||||
*/
|
||||
function matchPath(pathname, options) {
|
||||
if (options === void 0) { options = {}; }
|
||||
if (typeof options === 'string') {
|
||||
options = { path: options };
|
||||
}
|
||||
var _a = options.path, path = _a === void 0 ? '/' : _a, _b = options.exact, exact = _b === void 0 ? false : _b, _c = options.strict, strict = _c === void 0 ? false : _c;
|
||||
var _d = compilePath(path, { end: exact, strict: strict }), re = _d.re, keys = _d.keys;
|
||||
var match = re.exec(pathname);
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
var url = match[0], values = match.slice(1);
|
||||
var isExact = pathname === url;
|
||||
if (exact && !isExact) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
path: path,
|
||||
url: path === '/' && url === '' ? '/' : url,
|
||||
isExact: isExact,
|
||||
params: keys.reduce(function (memo, key, index) {
|
||||
memo[key.name] = values[index];
|
||||
return memo;
|
||||
}, {})
|
||||
};
|
||||
}
|
||||
exports.matchPath = matchPath;
|
||||
});
|
||||
} return (p || s < e.length) && o.push(p + e.substr(s)), o; }(e, o), l, o); }(e, o, c); } var o = {}; var c = 0; e.matchPath = function (e, t) {
|
||||
if (t === void 0) { t = {}; }
|
||||
"string" == typeof t && (t = { path: t });
|
||||
var _a = t.path, n = _a === void 0 ? "/" : _a, _b = t.exact, r = _b === void 0 ? !1 : _b, _c = t.strict, i = _c === void 0 ? !1 : _c, _d = function (e, t) { var n = "" + t.end + t.strict, r = o[n] || (o[n] = {}), i = JSON.stringify(e); if (r[i])
|
||||
return r[i]; var a = [], u = { re: l(e, a, t), keys: a }; return c < 1e4 && (r[i] = u, c += 1), u; }(n, { end: r, strict: i }), a = _d.re, u = _d.keys, s = a.exec(e);
|
||||
if (!s)
|
||||
return null;
|
||||
var p = s[0], f = s.slice(1), h = e === p;
|
||||
return r && !h ? null : { path: n, url: "/" === n && "" === p ? "/" : p, isExact: h, params: u.reduce(function (e, t, n) { return e[t.name] = f[n], e; }, {}) };
|
||||
}; });
|
||||
|
||||
+1
-1
@@ -2,9 +2,9 @@
|
||||
"namespace": "DocsSite",
|
||||
"fsNamespace": "docssite",
|
||||
"loader": "../docssite.js",
|
||||
"corePolyfilled": "es5-build-disabled.js",
|
||||
"global": "docssite.global.js",
|
||||
"core": "docssite.core.js",
|
||||
"corePolyfilled": "docssite.core.pf.js",
|
||||
"components": {
|
||||
"footer-bar": {
|
||||
"$": "footer-bar"
|
||||
|
||||
+7
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+208
-1426
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2018-5-10: Created with FontForge (http://fontforge.org)
|
||||
2018-5-14: Created with FontForge (http://fontforge.org)
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
|
||||
<metadata>
|
||||
Created by FontForge 20180321 at Thu May 10 14:48:40 2018
|
||||
Created by FontForge 20180321 at Mon May 14 13:46:44 2018
|
||||
By Kevin Ports
|
||||
Copyright (c) 2018, Kevin Ports
|
||||
</metadata>
|
||||
|
||||
|
Before Width: | Height: | Size: 306 KiB After Width: | Height: | Size: 306 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -47,17 +47,5 @@
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-44023830-2', 'ionicons.com');ga('send', 'pageview');
|
||||
</script>
|
||||
|
||||
<script>
|
||||
if ('serviceWorker' in navigator && location.protocol !== 'file:') {
|
||||
// auto-unregister service worker during dev mode
|
||||
navigator.serviceWorker.getRegistration().then(function(registration) {
|
||||
if (registration) {
|
||||
registration.unregister().then(function() { location.reload(true) });
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
Binary file not shown.
@@ -22,15 +22,32 @@ export default function (version: string, type = "md", name = "heart") {
|
||||
`<ion-icon name="${name}"></ion-icon>`
|
||||
)}
|
||||
|
||||
<h3>Platform Specific Icons</h3>
|
||||
<p>Many icons have both Material Design and iOS versions. Ionic will automatically use the correct version based on the platform.</p>
|
||||
<p>To specify the icon to use for each platform, use the <code>md</code> and <code>ios</code> attributes and provide the platform specific icon name.</p>
|
||||
<h3>Platform specific icons</h3>
|
||||
<p>Many icons have both Material Design and iOS versions.</p>
|
||||
|
||||
<p>Ionic will automatically use the correct version based on the platform. To specify the icon to use for each platform, use the <code>md</code> and <code>ios</code> attributes and provide the platform specific icon name.</p>
|
||||
{(type == 'logo') ? highlight(
|
||||
`<ion-icon ios="ios-heart" md="md-heart"></ion-icon>`
|
||||
):highlight(
|
||||
`<ion-icon ios="ios-${name}" md="md-${name}"></ion-icon>`
|
||||
)}
|
||||
|
||||
<p>When using Ionicons without Ionic Framework, the icon will default to the Material Design icon style. To specify the non-default icon style, provide a platform specific icon name to the <code>name</code> attribute.</p>
|
||||
{highlight(`<ion-icon name="ios-heart"></ion-icon>`)}
|
||||
|
||||
<h3>Icon sizes</h3>
|
||||
<p>To specify the icon size, you can use the <code>size</code> attribute for our pre-defined font sizes.</p>
|
||||
{highlight(
|
||||
`<ion-icon size="small">
|
||||
<ion-icon size="large">`
|
||||
)}
|
||||
<p>Or you can set a specific size by setting the <code>font-size</code> attribute on the <code>ion-icon</code> component.</p>
|
||||
{highlight(
|
||||
`ion-icon {
|
||||
font-size: 64px;
|
||||
}`
|
||||
)}
|
||||
|
||||
<h2>Using the Webfont</h2>
|
||||
<p>The webfont is compatible with previous versions of Ionicons. If you're using Ionicons for the first time we strongly recommend using the Web Component - you'll see much better performance.</p>
|
||||
|
||||
|
||||
@@ -288,7 +288,6 @@ p.lead {
|
||||
.hljs-selector-tag,
|
||||
.hljs-subst {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-number,
|
||||
@@ -308,7 +307,6 @@ p.lead {
|
||||
.hljs-section,
|
||||
.hljs-selector-id {
|
||||
color: #900;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
@@ -318,7 +316,6 @@ p.lead {
|
||||
.hljs-type,
|
||||
.hljs-class .hljs-title {
|
||||
color: #458;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
@@ -345,7 +342,6 @@ p.lead {
|
||||
|
||||
.hljs-meta {
|
||||
color: #999;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
@@ -402,6 +398,7 @@ p code {
|
||||
border-radius: 5px;
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
margin: 18px 0px;
|
||||
}
|
||||
|
||||
.styled-code + .styled-code {
|
||||
|
||||
Reference in New Issue
Block a user