css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- I DIDN'T MAKE THIS, just wanted to save it -->
<!DOCTYPE HTML>
<html>
<head>
	<title>Tron Theme</title>
	<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div id="sidebar" class="box">
	
		<form action="/search/" method="get" id="quick-search">
			<div>
				<input type="hidden" name="alltags">
				<input type="text" class="keyword-field" name="keyword">
				<button class="search-submit-button" type="submit">Search</button>
		  	</div>
		  </form>
	

    <ul class="menu">
      

      
		<li class="menu_rss_feed"><a title="subscribe to the RSS feed" href="/feeds/blog/">RSS Feed</a></li>
        <li class="menu_tags"><a title="search articles by tag" href="/tags/">Tags</a></li>
        <li class="menu_index"><a title="search articles chronologically" href="/archive">Archive</a></li>
        <li class="menu_break"></li>
        <li title="my books on librarything.com" class="menu_bookshelf"><a href="http://www.librarything.com/catalog.php?view=olooney&amp;offset=0&amp;shelf_rows=10&amp;previousOffset=0&amp;shelf=shelf">Bookshelf</a></li>
        <li title="about the site itself" class="menu_about_site"><a href="/colophon/">Colophon</a></li>
        <li class="menu_about_me"><a title="about the author" href="/author/">Author</a></li> 
      
      
      
      
          <li class="menu_break"></li>
        
          <li class="menu_validate"><a href="http://validator.w3.org/check?uri=referer">Validate</a></li> 
          <li class="menu_analytics"><a href="https://www.google.com/analytics/">Analytics</a></li> 
		  <li class="menu_admin"><a href="https://registryrocket.com/default.asp?ec=5E8EE0F6-96EA-4947-BABA-2">DNS</a></li>
          <li class="menu_break"></li>
          <li class="menu_admin"><a href="/admin/">Admin</a></li>    
          <li class="menu_logout"><a href="/admin/logout/">Logout</a></li> 
        
  
    </ul>
  </div>
<div id="main-wrapper">
<div class="content-page">
  <p>I (Chris) did not create this, I just like it</p>
	<h1>Tron Stylesheet</h1>
	<p>This is a static HTML page that has representative markup for my site.  By styling this page, I can create a theme that could be applied to all of my content.</p>
	<blockquote><p>Functions should be short and sweet, and do just one thing.<br>
	   - Linus Torvalds
	</p></blockquote>

	<h2>Paragraphs and Lists</h2>
	<p>  This object accepts a series of data-points through the <code>collect()</code> method, and provides an average via the <code>getAverage()</code> method.  Note:
	</p>
	<ul>
	 <li>
		 We can do anything we want to the object via <code>this</code>: we can access, set, delete, or mutate any attribute.
	 </li>

	 <li>
		 We can't use the <code>function f(x,y)</code> syntax when defining methods; instead, assign an attribute of the object to an anonymous function, as shown.
	 </li>

	 <li>
		 if you don't have anything else to return, return <code>this</code> from methods.  This enables method chaining (see below) which is very convenient.  <br>
	 </li>
	</ul>
	<h2>Code Blocks</h2>
	<p>The <code>methodize </code> function is defined as follows:
	</p>
	<pre><code>
function methodize(original) {
  return function() {
    [].unshift.call(arguments, this);
    return original.apply(this, arguments);
  }
}
  </code></pre>
	<h2>Keyboard</h2>
	<p>Just for fun, let's implement the touchscreen keyboard we see in the arcade using pure CSS.  We can't quite curve the border around the space bar, but it's pretty close otherwise.</p>
	<div class="keyboard">
		<script type="text/javascript">
			(function() { 
				var row = function(left, keys, right) { return [left].concat(keys.split(''), [right]); }
				var keyboard = [
					row('Esc',   '1234567890-', 'Back'),
					row('Tab',   'qertyuip<', '>'),
					row('Caps',  'asdfghjkl;', 'Ret'),
					row('Shift', 'zxcvbnm,./', 'Shift'),
					['          SPACE          ']
				];

				var letters = "1234567890qwertyuiopasdfghjklzxcvbnm";
				for ( var i=0; i<keyboard.length; i++ ) {
					var keys = keyboard[i];
					document.write('<div class="keyboard-row">');
					for ( var j=0; j<keys.length; j++ ) {
						document.write('<div class="keyboard-key">' + keys[j].toUpperCase().replace(/ /g, '&nbsp;') + '</div>');
					}
					document.write('</div>');
				}
			})();
		</script>
	</div>
	<p>
	<a class="big-rss-link" title="Subscribe to RSS Feed" href="http://oranlooney.com/feeds/blog/">Subscribe to RSS Feed</a>Thanks for reading. Please subscribe to the RSS feed and remember that future readers will thank you for leaving your comments and criticisms. 
	</p>
	<p>Back to <a href="http://oranlooney.com/tron-theme/">the article about this theme</a>.
	</p>

</div>
</div>

</body>
</html>

            
          
!
            
              /* a crosshair looks more tron-y */
* {
	cursor: crosshair;
}
body {
	background: black;
	color: rgba(21,171,195,1.0);
	font-family: "Bitstream Vera Sans Mono", monospace;
	/* give all text a cold glow */
	text-shadow: 0 0 5px rgba(21,171,195,0.7);
}

.content-page {
	font-size: 13px;
	line-height: 21px;
	display: block;
	/*margin: 0px 5px 20px 55px; todo*/
    margin: 0 auto 20px;
	width: 500px;
	padding: 25px 75px;
	border: 1px solid rgba(21,171,195,1.0);
	background: url(../images/quote_right.png) top right no-repeat;

	-moz-border-radius: 15px;
	border-radius: 15px;

	-moz-box-shadow: 0 0 9px rgba(21,171,195,1.0);
	-webkit-box-shadow: 0 0 9px rgba(21,171,195,1.0);
	box-shadow: 0 0 9px rgba(21,171,195,1.0);
}

.content-page a {
	color: rgb(36,198,224);
	text-shadow: 0 0 5px rgba(36,198,224,1.0);
	cursor: pointer;
}

.content-page h1 {
	margin: .8em 0 0 0;
	font-size: 1.7em;
	text-align: center;
	font-weight: bold;
	padding: .5em;
	border: 1px solid rgba(36,198,24,1.0);
	margin-bottom: 1ex;
	font-family: "Bitstream Vera Sans Mono", monospace;

	-moz-border-radius: 1em;
	border-radius: 1em;
	background-color: rgba(36,198,224,1.0);
	color: black;

	-moz-box-shadow: 0 0 10px rgba(36,198,224,1.0);
	-webkit-box-shadow: 0 0 10px rgba(36,198,224,1.0);
	box-shadow: 0 0 10px rgba(36,198,224,1.0);
}
.content-page h2 {
	background: url(../images/quote_right.png) center right no-repeat;
}
a.big-rss-link {
	display: block;
	float: left;
	top: 10px;
	left: 0px;
	width: 59px;
	height: 58px;
	background-image: url(../images/rss.png);
	text-indent: -999em;
	margin: 5px;
	cursor: pointer;
}
a.big-rss-link:hover {
	background-image: url(../images/rss_bright.png);
}


.content-page blockquote {
	width: 400px;
	background-image: url(../images/quote_left.png);
	background-repeat: no-repeat;
	/*background: url(../images/quote_left.png) top left no-repeat, url(../images/quote_right.png) top right no-repeat;*/
	font-size: 1.3em;
	text-indent: 1em;
	padding: 20px 50px 10px;
	margin: .2em auto;

	-moz-border-radius: 1em;
	border-radius: 1em;

	border: 2px solid rgba(21,171,195,1.0);
	-moz-box-shadow: 0 0 5px rgba(21,171,195,1.0);
	-webkit-box-shadow: 0 0 5px rgba(21,171,195,1.0);
	box-shadow: 0 0 5px rgba(21,171,195,1.0);
}
.content-page code {
	font-family: "Bitstream Vera Sans Mono", monospace;
	font-style: normal;
	color: rgba(39,215,243,1.0);
	text-shadow: 0 0 5px rgba(39,215,243,1.0);
}
.content-page blockquote a {
    font-size: .85em;
}


.content-page ul {
	list-style-type: none;
    padding-left: 1ex;
}
.content-page ul li {
	background-image: url(../images/bullet_point.png);
	background-repeat: no-repeat;
	background-position: 0 2px;
	padding-left: 20px;
}
.content-page ol {
	list-style: decimal inside;
    padding-left: 1ex;
}
.content-page ol li {
	list-style: decimal inside;
    display: list-item;
}
/* shared styles for ul and ol items */
.content-page li {
	margin: 1em 0 1em;
	font-size: 13px;
	line-height: 17px;
	font-family: "Bitstream Vera Sans Mono", monospace;
}

/* Menu style */
ul.menu {
    position: relative;
    right: 500px;
	list-style-type: none;
}
ul.menu li {
	display: block;
	width: 110px;
	-moz-border-radius: 1em;
	border-radius: 1em;
	border: 1px solid rgba(21,171,195,1.0);
	text-align: center;
	background-color: rgba(0,0,0,0.7);
	margin-bottom: 0.5ex;
	-moz-box-shadow: 0 0 10px rgba(21,171,195,0.5);
	-webkit-box-shadow:
	box-shadow:
	cursor: pointer;
}
ul.menu li:hover {
	color: rgb(36,198,224);
	border-color: rgb(36,198,224);
	-moz-box-shadow:: 0 0 10px rgba(36,198,224,1.0);
	-moz-box-shadow: 0 0 10px rgba(36,198,224,0.9);
	text-shadow: 0 0 5px rgba(36,198,224,1.0);
	cursor: pointer;
}
ul.menu li:hover a {
	color: rgb(36,198,224);
	text-shadow: 0 0 5px rgba(36,198,224,1.0);
	cursor: pointer;
}
ul.menu li a {
	cursor: pointer;
	text-decoration: none;
	color: rgba(21,171,195,1.0);
}
ul.menu a:hover, ul.menu a:active,ul.menu a:visited:hover,ul.menu a:active:hover {
	text-decoration: none;
	cursor: pointer;
}
ul.menu li.menu_break {
	height: 10px;
	visibility: hidden;
}


#quick-search {
	display: none;
    position: relative;
    right: 385px;
	margin: 0 2px 1ex;
}
#quick-search input {
	width: 85px;
	padding-left: 19px;
	background-repeat: no-repeat;
	background-position: 2px 2px;
	font-size: 12px;
	font-style: normal;
	height: 18px;
	line-height: 18px;
	font-family: Verdana, sans-serif;
	border: 2px inset #ccc;
}
#quick-search button {
	display: none;
}

#sidebar {
	/* margin: 1em 5px 10px 0px; todo */
    position: absolute;
    left: 50%;
}


/* keyboard */
.inverse {
	background-color: rgba(21,171,195,1.0);
	color: rgba(0,0,0,0.7);
}

.glow { 
	-webkit-box-shadow:0 0 5px rgba(21,171,195,1.0); 
	-moz-box-shadow: 0 0 5px rgba(21,171,195,1.0); 
	box-shadow:0 0 5px rgba(21,171,195,1.0); 
}
.roundy {
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;

}

.keyboard {
	width: 27em;
	border: 4px double rgba(21,171,195,1.0);
	padding: 4px 0;
	font-size: 18px;
	cursor: pointer;
}
.keyboard * { 
	cursor: pointer;
}
.keyboard-row {
	clear: both;
	padding: 4px 0;
	text-align: center;
}
.keyboard-key {
	border: 1px solid rgba(21,171,195,1.0);
	display: inline;
	margin: 2px;
	padding: 0 5px;
	height: 20px;
}
.keyboard-key:hover {
	border: 1px solid rgba(36,198,224,1.0);
	background-color: rgba(36,198,224,1.0);
	-webkit-box-shadow:0 0 7px rgba(36,198,224,1.0); 
	-moz-box-shadow: 0 0 7px rgba(36,198,224,1.0); 
	box-shadow:0 0 7px rgba(36,198,224,1.0); 
}
.keyboard-key:active {
	border: 1px solid rgba(36,198,224,1.0);
	color: rgba(36,198,224,1.0);
	background-color: rgba(36,198,224,0.3);
	-webkit-box-shadow:0 0 7px rgba(36,198,224,1.0); 
	-moz-box-shadow: 0 0 7px rgba(36,198,224,1.0); 
	box-shadow:0 0 7px rgba(36,198,224,1.0); 
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console