New example shows the css rarity gradient on Webkit browsers

This commit is contained in:
Andrew Gioia 2015-03-21 20:52:27 -04:00
parent 7745fff4b3
commit 646af51cd4
7 changed files with 164 additions and 23 deletions

View File

@ -18,11 +18,11 @@
"*.json", "*.json",
"*.md" "*.md"
], ],
"_release": "f899d84794", "_release": "8e89b507fb",
"_resolution": { "_resolution": {
"type": "branch", "type": "branch",
"branch": "master", "branch": "master",
"commit": "f899d84794bc720b1fb5cec5ecd0c96ad988beb5" "commit": "8e89b507fbfd74b58fd33d8b1b4409ff4269a083"
}, },
"_source": "git://github.com/andrewgioia/keyrune.git", "_source": "git://github.com/andrewgioia/keyrune.git",
"_target": "*", "_target": "*",

View File

@ -41,16 +41,56 @@
/** /**
* Rarity colors */ * Rarity colors */
.ss-common { .ss-common {
color: #333; color: #1A1718;
}
.ss-common.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(1%, #302b2c), color-stop(50%, #474040), color-stop(100%, #302b2c));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #302b2c 1%, #474040 50%, #302b2c 100%);
/* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #000;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} }
.ss-uncommon { .ss-uncommon {
color: #7795A1; color: #707883;
}
.ss-uncommon.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #5a6572), color-stop(50%, #9e9e9e), color-stop(100%, #5a6572));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #5a6572 0%, #9e9e9e 50%, #5a6572 100%);
/* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #111;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} }
.ss-rare { .ss-rare {
color: #A58E4A; color: #A58E4A;
} }
.ss-rare.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #876a3b), color-stop(50%, #dfbd6b), color-stop(100%, #876a3b));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #876a3b 0%, #dfbd6b 50%, #876a3b 100%);
/* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #333;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.ss-mythic { .ss-mythic {
color: #A2472A; color: #BF4427;
}
.ss-mythic.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #b21f0f), color-stop(50%, #f38300), color-stop(100%, #b21f0f));
/* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #b21f0f 0%, #f38300 50%, #b21f0f 100%);
/* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #333;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} }
/** /**
* Fixed width */ * Fixed width */

File diff suppressed because one or more lines are too long

51
bower_components/keyrune/index.html vendored Normal file
View File

@ -0,0 +1,51 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<title>Keyrune</title>
<link rel="stylesheet" href="css/keyrune.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<style type="text/css">
body {
color: #333;
font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans",
Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6em;
padding: 0 100px;
}
</style>
</head>
<body>
<h1>Keyrune</h1>
<h2>Set Symbol Demos</h2>
<p>
This HTML file is for demo purposes and is not necessary for Keyrune installation or use. You can view a few of the set symbol font icons and the available examples below (some may only be available for specific browsers).
</p>
<p>
<i class="ss ss-leg ss-3x ss-common ss-grad"></i>&nbsp;
<i class="ss ss-leg ss-2x ss-common"></i>&nbsp;
<i class="ss ss-leg ss-common"></i>&nbsp;
Common (Legends)
</p>
<p>
<i class="ss ss-ons ss-3x ss-uncommon ss-grad"></i>&nbsp;
<i class="ss ss-ons ss-2x ss-uncommon"></i>&nbsp;
<i class="ss ss-ons ss-uncommon"></i>&nbsp;
Uncommon (Onslaught)
</p>
<p>
<i class="ss ss-fut ss-3x ss-rare ss-grad"></i>&nbsp;
<i class="ss ss-fut ss-2x ss-rare"></i>&nbsp;
<i class="ss ss-fut ss-rare"></i>&nbsp;
Rare (Future Sight)
</p>
<p>
<i class="ss ss-zen ss-3x ss-mythic ss-grad"></i>&nbsp;
<i class="ss ss-zen ss-2x ss-mythic"></i>&nbsp;
<i class="ss ss-zen ss-mythic"></i>&nbsp;
Mythic Rare (Worldwake)
</p>
</body>
</html>

View File

@ -1,10 +1,50 @@
/** /**
* Rarity colors */ * Rarity colors */
.@{prefix}-common { color: #333; } .@{prefix}-common {
color: #1A1718;
&.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(1%,#302b2c), color-stop(50%,#474040), color-stop(100%,#302b2c)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #302b2c 1%,#474040 50%,#302b2c 100%); /* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #000;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.@{prefix}-uncommon { color: #7795A1; } .@{prefix}-uncommon {
color: #707883;
&.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#5a6572), color-stop(50%,#9e9e9e), color-stop(100%,#5a6572)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #5a6572 0%,#9e9e9e 50%,#5a6572 100%); /* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #111;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.@{prefix}-rare { color: #A58E4A; } .@{prefix}-rare {
color: #A58E4A;
&.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#876a3b), color-stop(50%,#dfbd6b), color-stop(100%,#876a3b)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #876a3b 0%,#dfbd6b 50%,#876a3b 100%); /* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #333;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.@{prefix}-mythic { color: #A2472A; } .@{prefix}-mythic {
color: #BF4427;
&.ss-grad {
/* webkit outline/gradient */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#b21f0f), color-stop(50%,#f38300), color-stop(100%,#b21f0f)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #b21f0f 0%,#f38300 50%,#b21f0f 100%); /* Chrome10+,Safari5.1+ */
-webkit-text-stroke: 0.03em #333;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}

View File

@ -162,7 +162,7 @@ blockquote {
border-bottom: 1px solid #E0DCCD; border-bottom: 1px solid #E0DCCD;
line-height: 1.4em; line-height: 1.4em;
padding: 20px 20px 18px; padding: 20px 20px 18px;
margin: 20px 0; margin: 20px 0 25px;
border-radius: 4px; border-radius: 4px;
} }

View File

@ -51,7 +51,7 @@
<div class="explanation"> <div class="explanation">
<p>You can place Keyrune icons anywhere using the CSS classname prefix <code>ss</code> (for set symbol) and then the set icon's code. Inline elements like <code>&lt;i&gt;</code> and <code>&lt;span&gt;</code> are preferred, but any can be used.</p> <p>You can place Keyrune icons anywhere using the CSS classname prefix <code>ss</code> (for set symbol) and then the set icon's code. Inline elements like <code>&lt;i&gt;</code> and <code>&lt;span&gt;</code> are preferred, but any can be used.</p>
<blockquote> <blockquote>
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-zen &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-zen
</blockquote> </blockquote>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -68,11 +68,11 @@
<div class="explanation"> <div class="explanation">
<p>To conveniently increase the size of a set symbol you can append the classes <code>ss-2x</code>, <code>ss-3x</code>, <code>ss-4x</code>, <code>ss-4x</code>, and <code>ss-6x</code>. These classes increase the size by a factor equal to class name number.</p> <p>To conveniently increase the size of a set symbol you can append the classes <code>ss-2x</code>, <code>ss-3x</code>, <code>ss-4x</code>, <code>ss-4x</code>, and <code>ss-6x</code>. These classes increase the size by a factor equal to class name number.</p>
<blockquote> <blockquote>
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-2x"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-2x<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-2x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-2x<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-3x"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-3x<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-3x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-3x<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-4x"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-4x<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-4x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-4x<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-5x"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-5x<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-5x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-5x<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-6x"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-6x &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-sth ss-6x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-6x
</blockquote> </blockquote>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -90,8 +90,8 @@
<div class="explanation"> <div class="explanation">
<p>All of the set symbols are variable width by default, if you put them in a list they may stack irregularly. To fix their width just append the class <code>.ss-fw</code> and the set symbols will have a constant width and centered icon.</p> <p>All of the set symbols are variable width by default, if you put them in a list they may stack irregularly. To fix their width just append the class <code>.ss-fw</code> and the set symbols will have a constant width and centered icon.</p>
<blockquote> <blockquote>
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-inv ss-fw"</span>&gt;&lt;/<span class="a">i</span>&gt; Invasion<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-inv ss-fw"</span>&gt;&lt;/<span class="e">i</span>&gt; Invasion<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-nms ss-fw"</span>&gt;&lt;/<span class="a">i</span>&gt; Nemesis &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-nms ss-fw"</span>&gt;&lt;/<span class="e">i</span>&gt; Nemesis
</blockquote> </blockquote>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -107,13 +107,23 @@
<div class="explanation"> <div class="explanation">
<p>You can add a rarity color to each set symbol by appending the classes <code>ss-common</code>, <code>ss-uncommon</code>, <code>ss-rare</code>, and <code>ss-mythic</code>.</p> <p>You can add a rarity color to each set symbol by appending the classes <code>ss-common</code>, <code>ss-uncommon</code>, <code>ss-rare</code>, and <code>ss-mythic</code>.</p>
<blockquote> <blockquote>
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-common"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-common<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-common"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-common<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-uncommon"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-uncommon<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-uncommon"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-uncommon<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-rare"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-rare<br /> &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-rare"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-rare<br />
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-mythic"</span>&gt;&lt;/<span class="a">i</span>&gt; ss-mythic &lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-mythic"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-mythic
</blockquote> </blockquote>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<div class="example float-left">
<span class="each"><i class="ss ss-mor ss-rare ss-grad ss-3x"></i> ss-grad</span>
</div>
<div class="explanation">
<p>Webkit browsers suport the <code>background-clip: text</code> property which opens up some exciting options for rarities: true text gradients! Append the <code>.ss-grad</code> class to add a modern rarity gradient.</p>
<blockquote>
&lt;<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-mor ss-rare ss-grad ss-3x"</span>&gt;&lt;/<span class="e">i</span>&gt; ss-grad<br />
</blockquote>
<p><strong>Note:</strong> You will only see a gradient while using a Webkit browser (i.e., Chrome or Safari).</p>
</div>
</section> </section>
</div> </div>
</main> </main>