changeset 1311:18052001fe11 redmine-2.2-integration

Use a nice code font (font files reqd)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 18 Jun 2013 14:53:53 +0100
parents c0eedaadb1f2
children 033fecbc3438 12556ba57d17
files public/stylesheets/scm.css public/themes/soundsoftware/stylesheets/fonts-generic.css public/themes/soundsoftware/stylesheets/fonts-mac.css public/themes/soundsoftware/stylesheets/fonts-ms.css public/themes/soundsoftware/stylesheets/fonts.css
diffstat 5 files changed, 33 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/public/stylesheets/scm.css	Tue Jun 18 14:31:48 2013 +0100
+++ b/public/stylesheets/scm.css	Tue Jun 18 14:53:53 2013 +0100
@@ -35,7 +35,7 @@
 #changes-legend li { float: left; background-position: 5px 0; }
 
 table.filecontent { border: 1px solid #e2e2e2;  border-collapse: collapse; width:98%; background-color: #fafafa; }
-table.filecontent tbody {font-family:"Liberation Mono", Courier, monospace; font-size:12px;}
+table.filecontent tbody {font-family:"SourceCodePro-Regular","Liberation Mono", Courier, monospace; font-size:12px;}
 table.filecontent th { border: 1px solid #e2e2e2; background-color: #eee; }
 table.filecontent th.filename { background-color: #e4e4d4; text-align: left; padding:5px;}
 table.filecontent tr.spacing th { text-align:center; }
@@ -61,7 +61,7 @@
 table.filecontent td.line-code pre {
     margin: 0px;
     white-space: pre-wrap;
-    font-family:"Liberation Mono", Courier, monospace; font-size:12px;
+    font-family:"SourceCodePro-Regular","Liberation Mono", Courier, monospace; font-size:12px;
 }
 
 /* 12 different colors for the annonate view */
--- a/public/themes/soundsoftware/stylesheets/fonts-generic.css	Tue Jun 18 14:31:48 2013 +0100
+++ b/public/themes/soundsoftware/stylesheets/fonts-generic.css	Tue Jun 18 14:53:53 2013 +0100
@@ -1,4 +1,4 @@
-@import url(fonts.css?2);
+@import url(fonts.css?3);
 
 h1, #project-ancestors-title, #top-menu a {
   font-family: Insider, 'Gill Sans', Tahoma, sans-serif;
@@ -22,3 +22,10 @@
   line-height: 1.34;
 }
 
+code,pre,.code,.line-code,.embedded a.el {
+  font-family: 'SourceCodePro-Regular', monospace;
+  font-weight: normal;
+  font-size: 0.9em;
+}
+
+
--- a/public/themes/soundsoftware/stylesheets/fonts-mac.css	Tue Jun 18 14:31:48 2013 +0100
+++ b/public/themes/soundsoftware/stylesheets/fonts-mac.css	Tue Jun 18 14:53:53 2013 +0100
@@ -1,4 +1,4 @@
-@import url(fonts.css?2);
+@import url(fonts.css?3);
 
 h1, #project-ancestors-title, #top-menu a {
   font-family: Insider, "Lucida Grande", sans-serif;
@@ -22,3 +22,9 @@
   line-height: 1.34;
 }
 
+code,pre,.code,.line-code,.embedded a.el {
+  font-family: 'SourceCodePro-Regular', monospace;
+  font-weight: normal;
+  font-size: 0.9em;
+}
+
--- a/public/themes/soundsoftware/stylesheets/fonts-ms.css	Tue Jun 18 14:31:48 2013 +0100
+++ b/public/themes/soundsoftware/stylesheets/fonts-ms.css	Tue Jun 18 14:53:53 2013 +0100
@@ -1,4 +1,4 @@
-@import url(fonts.css?2);
+@import url(fonts.css?3);
 
 /* IE likes us to separate out normal & bold into different fonts
    rather than use the selectors on the same font */
@@ -24,3 +24,10 @@
   font-weight: normal;
   line-height: 1.34;
 }
+
+code,pre,.code,.line-code,.embedded a.el {
+  font-family: 'SourceCodePro-Regular', monospace;
+  font-weight: normal;
+  font-size: 0.9em;
+}
+
--- a/public/themes/soundsoftware/stylesheets/fonts.css	Tue Jun 18 14:31:48 2013 +0100
+++ b/public/themes/soundsoftware/stylesheets/fonts.css	Tue Jun 18 14:53:53 2013 +0100
@@ -30,3 +30,11 @@
     src: url('fonts/24BC35_0_0.eot');
     src: url('fonts/24BC35_0_0.eot?#iefix') format('embedded-opentype'), url('fonts/24BC35_0_0.woff') format('woff'), url('fonts/24BC35_0_0.ttf') format('truetype');
 }
+
+@font-face {
+    font-family: 'SourceCodePro-Regular';
+    font-weight: normal;
+    font-style: normal;
+    src: url('fonts/SourceCodePro-Regular-webfont.eot');
+    src: url('fonts/SourceCodePro-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/SourceCodePro-Regular-webfont.woff') format('woff'), url('fonts/SourceCodePro-Regular-webfont.ttf') format('truetype');
+}