Style changes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
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%;