Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
that time I pushed an unnecessary change as a full version. anyway th…
Browse files Browse the repository at this point in the history
…is patches 2.0. will retag and keep version number, since the beforeenhance edit is notable enough anyway
  • Loading branch information
scottjehl committed Sep 15, 2015
1 parent 82c7570 commit f200fbf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
14 changes: 11 additions & 3 deletions dist/xrayhtml.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* https://github.com/filamentgroup/x-rayhtml
* Copyright (c) 2015 ; Licensed MIT */

/*! X-rayHTML - v1.0.3 - 2015-09-08
* https://github.com/filamentgroup/x-rayhtml
* Copyright (c) 2015 ; Licensed MIT */

.xrayhtml {
border: 1px solid rgba(0,0,0,.1);
border-radius: .3em;
Expand Down Expand Up @@ -77,8 +81,12 @@
-moz-perspective: 2500px;
perspective: 2500px;
}
.method-flip > *:first-child {
.method-flip .snippet {
padding: 0;
margin: 0;
position: relative;
top: 0;
left: 0;
z-index: 2;
min-height: 100%;
}
Expand All @@ -91,7 +99,7 @@
overflow-x: scroll;
}

.method-flip > *:first-child {
.method-flip .snippet {
-webkit-transform: rotateY(0deg);
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
Expand All @@ -103,7 +111,7 @@
-webkit-transition: -webkit-transform .4s ease-in-out;
-moz-transition: -moz-transform .4s ease-in-out;
}
.method-flip.view-source > *:first-child {
.method-flip.view-source .snippet {
z-index: 1;
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
Expand Down
5 changes: 4 additions & 1 deletion dist/xrayhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ window.jQuery = window.jQuery || window.shoestring;
var el = this,
preel = document.createElement( "pre" ),
codeel = document.createElement( "code" ),
wrap = document.createElement( "div" ),
sourcepanel = document.createElement( "div" ),
// remove empty value attributes
code = el.innerHTML.replace( /\=\"\"/g, '' ),
source = document.createTextNode( code );

$( el ).addClass( "snippet" );
wrap.setAttribute( "class", "snippet" );

$( el ).wrapInner( wrap );

codeel.appendChild( source );
preel.appendChild( codeel );
Expand Down
14 changes: 11 additions & 3 deletions src/X-rayHTML.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*! X-rayHTML - v1.0.3 - 2015-09-08
* https://github.com/filamentgroup/x-rayhtml
* Copyright (c) 2015 ; Licensed MIT */

.xrayhtml {
border: 1px solid rgba(0,0,0,.1);
border-radius: .3em;
Expand Down Expand Up @@ -73,8 +77,12 @@
-moz-perspective: 2500px;
perspective: 2500px;
}
.method-flip > *:first-child {
.method-flip .snippet {
padding: 0;
margin: 0;
position: relative;
top: 0;
left: 0;
z-index: 2;
min-height: 100%;
}
Expand All @@ -87,7 +95,7 @@
overflow-x: scroll;
}

.method-flip > *:first-child {
.method-flip .snippet {
-webkit-transform: rotateY(0deg);
-webkit-transform-style: preserve-3d;
-webkit-backface-visibility: hidden;
Expand All @@ -99,7 +107,7 @@
-webkit-transition: -webkit-transform .4s ease-in-out;
-moz-transition: -moz-transform .4s ease-in-out;
}
.method-flip.view-source > *:first-child {
.method-flip.view-source .snippet {
z-index: 1;
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
Expand Down
5 changes: 4 additions & 1 deletion src/X-rayHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,15 @@ window.jQuery = window.jQuery || window.shoestring;
var el = this,
preel = document.createElement( "pre" ),
codeel = document.createElement( "code" ),
wrap = document.createElement( "div" ),
sourcepanel = document.createElement( "div" ),
// remove empty value attributes
code = el.innerHTML.replace( /\=\"\"/g, '' ),
source = document.createTextNode( code );

$( el ).addClass( "snippet" );
wrap.setAttribute( "class", "snippet" );

$( el ).wrapInner( wrap );

codeel.appendChild( source );
preel.appendChild( codeel );
Expand Down

0 comments on commit f200fbf

Please sign in to comment.