mirror of
https://github.com/andrewgioia/keyrune.git
synced 2024-12-22 15:39:56 +00:00
Colorizing code blocks
This commit is contained in:
parent
694d8a314e
commit
465e2af6a9
@ -258,3 +258,7 @@ footer {
|
||||
.clear {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.e { color: #63A35C; }
|
||||
.a { color: #795DA3; }
|
||||
.v { color: #183691; }
|
||||
|
@ -51,7 +51,7 @@
|
||||
<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><i></code> and <code><span></code> are preferred, but any can be used.</p>
|
||||
<blockquote>
|
||||
<i class="ss ss-zen"></i> ss-zen
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen"</span>></<span class="a">i</span>> ss-zen
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
@ -68,11 +68,11 @@
|
||||
<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>
|
||||
<blockquote>
|
||||
<i class="ss ss-zen ss-2x"></i> ss-2x<br />
|
||||
<i class="ss ss-zen ss-3x"></i> ss-3x<br />
|
||||
<i class="ss ss-zen ss-4x"></i> ss-4x<br />
|
||||
<i class="ss ss-zen ss-5x"></i> ss-5x<br />
|
||||
<i class="ss ss-zen ss-6x"></i> ss-6x
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen ss-2x"</span>></<span class="a">i</span>> ss-2x<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen ss-3x"</span>></<span class="a">i</span>> ss-3x<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen ss-4x"</span>></<span class="a">i</span>> ss-4x<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen ss-5x"</span>></<span class="a">i</span>> ss-5x<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-zen ss-6x"</span>></<span class="a">i</span>> ss-6x
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
@ -88,10 +88,10 @@
|
||||
<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>
|
||||
<blockquote>
|
||||
<i class="ss ss-ons ss-common"></i> ss-common<br />
|
||||
<i class="ss ss-ons ss-uncommon"></i> ss-uncommon<br />
|
||||
<i class="ss ss-ons ss-rare"></i> ss-rare<br />
|
||||
<i class="ss ss-ons ss-mythic"></i> ss-mythic
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-common"</span>></<span class="a">i</span>> ss-common<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-uncommon"</span>></<span class="a">i</span>> ss-uncommon<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-rare"</span>></<span class="a">i</span>> ss-rare<br />
|
||||
<<span class="e">i</span> <span class="a">class</span>=<span class="v">"ss ss-ons ss-mythic"</span>></<span class="a">i</span>> ss-mythic
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
@ -59,7 +59,8 @@
|
||||
<p>Each set symbol has its own font character. Display them in a manner similar to <a href="http://fontawesome.io">Font Awesome</a> using the <code><i class="ss ss-exp"></i></code> element. Class name codes are based on the expansion codes from <a href="http://mtgjson.com">MTG JSON</a>.</p>
|
||||
<p>To use Keyrune, move the font files to your /fonts directory and include the <code>keyrune.css</code> stylesheet in your <code><head></code>:</p>
|
||||
<blockquote>
|
||||
<link href="css/keyrune.css" rel="stylesheet" type="text/css" /></blockquote>
|
||||
<<span class="e">link</span> <span class="a">href</span>=<span class="v">"css/keyrune.css"</span> <span class="a">rel</span>=<span class="v">"stylesheet"</span> <span class="a">type</span>=<span class="v">"text/css"</span> />
|
||||
</blockquote>
|
||||
</section>
|
||||
<section class="content">
|
||||
<h4>Editing the Source</h4>
|
||||
|
Loading…
Reference in New Issue
Block a user