From: Hakim El Hattab Date: Tue, 10 Jul 2012 01:48:43 +0000 (-0400) Subject: larger font for code samples (closes #60) X-Git-Tag: 1.4.0~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74d342daf72c8ddd59dfd7b4aa11eda549a4d759;p=reveal.js.git larger font for code samples (closes #60) --- diff --git a/css/main.css b/css/main.css index 93d3d20..01145b7 100644 --- a/css/main.css +++ b/css/main.css @@ -197,7 +197,7 @@ body { margin: 10px auto; text-align: left; - font-size: 14px; + font-size: 20px; font-family: monospace; line-height: 1.2em; diff --git a/index.html b/index.html index 253197c..c32b757 100644 --- a/index.html +++ b/index.html @@ -184,27 +184,20 @@

Pretty Code


-var supports3DTransforms =  document.body.style['webkitPerspective'] !== undefined || 
-				document.body.style['MozPerspective'] !== undefined ||
-				document.body.style['perspective'] !== undefined;
-
 function linkify( selector ) {
-    if( supports3DTransforms ) {
-        
-        var nodes = document.querySelectorAll( selector );
-
-        for( var i = 0, len = nodes.length; i < len; i++ ) {
-            var node = nodes[i];
-
-            if( !node.className || !node.className.match( /roll/g ) ) {
-                node.className += ' roll';
-                node.innerHTML = '' + node.innerHTML + '';
-            }
-        };
-    }
+  if( supports3DTransforms ) {
+    
+    var nodes = document.querySelectorAll( selector );
+
+    for( var i = 0, len = nodes.length; i < len; i++ ) {
+      var node = nodes[i];
+
+      if( !node.className ) ) {
+        node.className += ' roll';
+      }
+    };
+  }
 }
-
-linkify( 'a' );
 					

Courtesy of highlight.js.