[gnome-web-www/wptest] specific style hooks for windows due to bug 643375
- From: Andreas Nilsson <andreasn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www/wptest] specific style hooks for windows due to bug 643375
- Date: Wed, 7 Mar 2012 14:41:21 +0000 (UTC)
commit 4cd4327c37edf105a9bb2b4cd1a4a25be13e43d4
Author: Andreas Nilsson <nisses mail home se>
Date: Wed Mar 7 15:41:09 2012 +0100
specific style hooks for windows due to bug 643375
theme/css/text.css | 8 ++++++++
theme/js/template.js | 13 +++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/theme/css/text.css b/theme/css/text.css
index 04791eb..21a11d5 100644
--- a/theme/css/text.css
+++ b/theme/css/text.css
@@ -10,6 +10,14 @@ body {
line-height: 1.6;
color: #2e3436;
}
+
+body.win {
+ font-family: "Trebuchet MS", Arial, sans-serif;
+ font-size: 14px;
+ line-height: 1.6;
+ color: #2e3436;
+}
+
h1, h2, h3, h4, h5, h6, dt {
color: #0489B7;
}
diff --git a/theme/js/template.js b/theme/js/template.js
index d9c3dc7..6d70b87 100644
--- a/theme/js/template.js
+++ b/theme/js/template.js
@@ -1,4 +1,17 @@
$(document).ready(function() {
+
+ // Get browser
+ $.each($.browser, function(i) {
+ $('body').addClass(i);
+ return false;
+ });
+
+ // Get OS
+ var match = navigator.userAgent.toLowerCase().match(/(win|mac|linux)/);
+ if (match) {
+ $('body').addClass(match[0]);
+ }
+
/* Global search placeholder
* ====================================================================== */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]