Commit 264508d7263f1a545d361d8e3bd95f1ea4dec66a

Lea Verou 2012-07-29T01:25:43

Style changes

diff --git a/code.js b/code.js
index c839b49..8ecd246 100644
--- a/code.js
+++ b/code.js
@@ -170,7 +170,7 @@ var p = $u.element.create('p', {
 		id: 'theme'
 	},
 	contents: 'Theme:',
-	before: 'header #features'
+	after: '.intro'
 });
 var themes = components.themes;
 var current = (location.search.match(/theme=([\w-]+)/) || [,'prism'])[1];
@@ -188,7 +188,7 @@ if (current == 'prism') {
 }
 
 function setTheme(id) {
-	$('#prism-css').href = themes.meta.path.replace(/\{id}/g, id);
+	$('link[href="prism.css"]').href = themes.meta.path.replace(/\{id}/g, id);
 	localStorage.setItem('theme', id);
 	
 	history.pushState(null, '', location.pathname + (id !== 'prism'? '?theme=' + id : '') + location.hash);
diff --git a/index.html b/index.html
index b7b27e3..efffe25 100644
--- a/index.html
+++ b/index.html
@@ -9,7 +9,7 @@
 <meta charset="utf-8" />
 <title>Prism</title>
 <link rel="stylesheet" href="style.css" />
-<link rel="stylesheet" href="prism-funky.css" data-noprefix id="prism-css" />
+<link rel="stylesheet" href="prism.css" data-noprefix />
 <script src="../prefixfree/prefixfree.min.js"></script>
 
 </head>
diff --git a/style.css b/style.css
index cdbdfcb..c74e72a 100644
--- a/style.css
+++ b/style.css
@@ -126,7 +126,6 @@ header, footer {
 }
 
 header {
-	overflow: hidden;
 	background-image: url(img/spectrum.png);
 	background-image: linear-gradient(45deg, white 50%, transparent 50%),
 	                  linear-gradient(135deg, transparent 50%, white 50%),
@@ -173,14 +172,7 @@ header {
 		font-size: 150%;
 	}
 	
-	header p:after {
-		content: '';
-		display: block;
-		clear: both;
-	}
-	
 	#features {
-		float: left;
 		width: 62em;
 		margin-top: 2em;
 		font-size: 80%;