Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Downgrading fonts for windows chrome.

  • Loading branch information...
commit 6d50a7154e52c0e982f23a22b3f05ccca3e820ee 1 parent 4d36ae9
@KirinDave authored
View
1  css/columnal/columnal.css
@@ -92,6 +92,7 @@ p { font-size: 1em;}
/* p + p, p + ul {margin-top: -.8em;} */
h1 { font-size: 2em; line-height:1.2em; font-weight:normal; margin:1em 0 .5em; }
p + h1 { margin-top:.5em; }
+p + h2 { margin-top: 1.2em; }
h2, h3, h4, h5, h6 { font-weight: bold; }
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p { margin-top: 0;} /* fix for weird Chrome collapse bug */
h2 { font-size:1.7em; line-height:1.3em; margin-bottom: 10px; }
View
27 css/downgrades.css
@@ -0,0 +1,27 @@
+
+
+.win.chrome header h1.toplevel {
+ font-family: "Georgia", serif;
+}
+
+.win.chrome nav > ul li {
+ font-family: "Georgia", serif;
+}
+
+.win.chrome div.content {
+ font-family: "Times New Roman", serif;
+}
+
+.win.chrome div.content ul {
+ font-family: "Times New Roman", serif;
+ color: red;
+}
+
+.win.chrome h2 {
+ font-family: "Times New Roman", serif;
+ font-weight: bold;
+}
+
+.win.chrome p {
+ font-family: "Times New Roman", serif;
+}
View
9 css/neoclassical.css
@@ -70,9 +70,6 @@ p {
font-family: "Sorts Mill Goudy";
}
-body {
- font-family: "Sorts Mill Goudy";
-}
p + p {
margin-top: 1em;
@@ -112,4 +109,8 @@ a:visited {
a:hover {
text-decoration: underline;
color: #23679E;
-}
+}
+
+body {
+ font-family: "Sorts Mill Goudy";
+}
View
8 js/css_browser_selector.js
@@ -0,0 +1,8 @@
+/*
+CSS Browser Selector v0.4.0 (Nov 02, 2010)
+Rafael Lima (http://rafael.adm.br)
+http://rafael.adm.br/css_browser_selector
+License: http://creativecommons.org/licenses/by/2.5/
+Contributors: http://rafael.adm.br/css_browser_selector#contributors
+*/
+function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
View
10 templates/post.html
@@ -1,6 +1,12 @@
<section class="post">
-<p class="byline">by <em>$author$</em> on <strong>$date$</strong></p>
-<div class="content">
+<div class="row">
+ <div class="col_1 ">&nbsp;</div>
+ <div class="col_10">
+ <p class="byline">by <em>$author$</em> on <strong>$date$</strong></p>
+ <div class="content">
$body$
+ </div>
+ </div>
+ <div class="col_1 omega">&nbsp;</div>
</div>
</section>
View
6 templates/toplevel.html
@@ -7,6 +7,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <script src="/js/css_browser_selector.js"></script>
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
@@ -22,7 +23,7 @@
<!-- <link rel="stylesheet" href="/css/style.css?v=2"> -->
<!-- The Columnal Grid (base, load first) -->
- <link rel="stylesheet" href="css/columnal/columnal.css" type="text/css" media="screen" />
+ <link rel="stylesheet" href="/css/columnal/columnal.css" type="text/css" media="screen" />
<!-- Fixes for IE -->
<!--[if lt IE 9]>
@@ -43,9 +44,10 @@
<!-- <link rel="stylesheet" href="/css/classic.css"> -->
<link rel="stylesheet" href="/css/neoclassical.css">
+ <link rel="stylesheet" href="/css/downgrades.css">
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
- <script src="js/libs/modernizr-1.7.min.js"></script>
+ <script src="/js/libs/modernizr-1.7.min.js"></script>
<!-- We inject custom fonts here. -->
<link href='http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer+SC|Sorts+Mill+Goudy:400,400italic' rel='stylesheet' type='text/css'>
Please sign in to comment.
Something went wrong with that request. Please try again.