Revisions
-
Michael Dugan revised this gist
Jan 4, 2014 . No changes.There are no files selected for viewing
-
AiBoy revised this gist
Nov 11, 2013 . 2 changed files with 33 additions and 16 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,8 +1,7 @@ /** * Works everywere ( IE7+, FF, Chrome, Safari, Opera ) * Example: http://jsbin.com/afAQAWA/2/ */ .rotated-text { display: inline-block; overflow: hidden; @@ -11,26 +10,31 @@ .rotated-text__inner { display: inline-block; white-space: nowrap; /* this is for shity "non IE" browsers that dosn't support writing-mode */ -webkit-transform: translate(1.1em,0) rotate(90deg); -moz-transform: translate(1.1em,0) rotate(90deg); -o-transform: translate(1.1em,0) rotate(90deg); transform: translate(1.1em,0) rotate(90deg); -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; -o-transform-origin: 0 0; transform-origin: 0 0; /* IE9+ */ -ms-transform: none; -ms-transform-origin: none; /* IE8+ */ -ms-writing-mode: tb-rl; /* IE7 and below */ *writing-mode: tb-rl; } .rotated-text__inner:before { content: ""; float: left; margin-top: 100%; } /* mininless css that used just for this demo */ .container { float: left; } 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,18 @@ <!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>JS Bin</title> </head> <body> <div class="container"> <div class="rotated-text"><span class="rotated-text__inner">Easy</span></div> </div> <div class="container"> <div class="rotated-text"><span class="rotated-text__inner">Normal</span></div> </div> <div class="container"> <div class="rotated-text"><span class="rotated-text__inner">Hard</span></div> </div> </body> </html> -
AiBoy renamed this gist
Nov 11, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
AiBoy renamed this gist
Nov 11, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
AiBoy revised this gist
Nov 11, 2013 . 1 changed file with 5 additions 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 @@ -0,0 +1,5 @@ <div class="container"> <div class="rotated-text"> <span class="rotated-text__inner">Normal</span> </div> </div> -
AiBoy revised this gist
Nov 11, 2013 . 1 changed file with 2 additions and 1 deletion.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 @@ -19,9 +19,10 @@ -moz-transform-origin: 0 0; -o-transform-origin: 0 0; transform-origin: 0 0; /* IE 9+ */ -ms-transform: none; -ms-transform-origin: none; /* IE 8+ */ -ms-writing-mode: tb-rl; /* IE7 and below */ *writing-mode: tb-rl; -
AiBoy created this gist
Nov 11, 2013 .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,35 @@ /** * Works everywere ( IE7+, FF, Chrome, Safari, Opera ) * Example: http://jsfiddle.net/MTyFP/66/embedded/result/ */ .rotated-text { display: inline-block; overflow: hidden; width: 1.5em; } .rotated-text__inner { display: inline-block; white-space: nowrap; -webkit-transform: translate(50%,0) rotate(90deg); -moz-transform: translate(50%,0) rotate(90deg); -o-transform: translate(50%,0) rotate(90deg); transform: translate(50%,0) rotate(90deg); -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; -o-transform-origin: 0 0; transform-origin: 0 0; /* IE 8+ */ -ms-transform: none; -ms-transform-origin: none; -ms-writing-mode: tb-rl; /* IE7 and below */ *writing-mode: tb-rl; } /* This element stretches the parent to be square by using the mechanics of vertical margins */ .rotated-text__inner:before { content: ""; float: left; margin-top: 100%; }