-
-
Save sntran/5662538 to your computer and use it in GitHub Desktop.
Revisions
-
sntran revised this gist
Oct 12, 2013 . No changes.There are no files selected for viewing
-
sntran revised this gist
Oct 12, 2013 . No changes.There are no files selected for viewing
-
Son Tran-Nguyen revised this gist
May 28, 2013 . 2 changed files with 53 additions and 26 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ /* Daniel Ott * entities.css * 31 January 2011 * * Updated: 28 May 2013 * Son Tran * * Adding arrows to thinks makes them more clickable. Right? * Use CSS's :after pseudo-selector to insert hexadecimal values * of html entities into the document. Less markup. More awesome. */ .up-arrow, .right-arrow, .down-arrow, .left-arrow { *zoom: expression( this.runtimeStyle.zoom="1", this.appendChild( document.createElement("ie") ).className="after" ); } .up-arrow:after, .up-arrow > .after { content:'\00a0\25b2'; } .right-arrow:after, .up-arrow > .after { content:'\00a0\25b6'; } .down-arrow:after, .down-arrow > .after { content:'\00a0\25bc'; } .left-arrow:after, .left-arrow > .after { content:'\00a0\25c0'; } /*----------------------------------------------- A cheat sheet of entities I've used ------------------------------------------------- Entity Hexcode Description \00a0 A space ▲ \25b2 Up-pointing triangle ▲ ▴ \25b4 Up-pointing small triangle ▴ ▶ \25b6 Right-pointing triangle ▶ ▸ \25b8 Right-pointing small triangle ▸ ▼ \25bc Down-pointing triangle ▼ ▾ \25be Down-pointing small triangle ▾ ◀ \25c0 Left-pointing triangle ◀ ◂ \25c2 Left-pointing small triangle ◂ -----------------------------------------------*/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,26 +0,0 @@ -
Daniel Ott revised this gist
Jan 31, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ /* Daniel Ott * entities.css * 31 January 2011 * * Adding arrows to thinks makes them more clickable. Right? * Use CSS's :after pseudo-selector to insert hexadecimal values -
Daniel Ott created this gist
Jan 31, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ /* Daniel Ott * entities.css * * Adding arrows to thinks makes them more clickable. Right? * Use CSS's :after pseudo-selector to insert hexadecimal values * of html entities into the document. Less markup. More awesome. */ .add-an-arrow:after { content:'\00a0\25b8'; /* ▸ in Hexadecimal */ } /*----------------------------------------------- A cheat sheet of entities I've used ------------------------------------------------- Entity Hexcode Description \00a0 A space ◀ \25c0 Left arrow with no tail. ▸ \25b8 Right arrow with no tail. ▾ \25be Down arrow with no tail. ← \2190 Left arrow with a tail. → \2192 Right arrow with a tail. -----------------------------------------------*/