[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-users
Subject:    [fossil-users] CSS fix
From:       Michal Suchanek <hramrach () centrum ! cz>
Date:       2010-05-27 14:05:10
Message-ID: AANLkTilrnn3z6Qyt6k67P-sUJfkgOuTGbJAZZN7qTq9j () mail ! gmail ! com
[Download RAW message or body]

Hello

sending a patch which fixes the fossil CSS.

Currently the CSS is broken because it sets background color and not
text color which may result in some nice visual effects like white
text on white pages.

Reported as issue 53aa95f382

Thanks

Michal

["fix-css.diff" (text/x-diff)]

Index: src/skins.c
===================================================================
--- src/skins.c
+++ src/skins.c
@@ -30,10 +30,11 @@
 @ REPLACE INTO config VALUES('css','/* General settings for the entire page */
 @ body {
 @   margin: 0ex 1ex;
 @   padding: 0px;
 @   background-color: white;
+@   color: black;
 @   font-family: "sans serif";
 @ }
 @
 @ /* The project logo in the upper left-hand corner of each page */
 @ div.logo {
@@ -222,10 +223,11 @@
 @ REPLACE INTO config VALUES('css','/* General settings for the entire page */
 @ body {
 @   margin: 0ex 0ex;
 @   padding: 0px;
 @   background-color: #fef3bc;
+@   color: black;
 @   font-family: sans-serif;
 @ }
 @
 @ /* The project logo in the upper left-hand corner of each page */
 @ div.logo {
@@ -427,10 +429,14 @@
 @     padding:0px;
 @     font-family:verdana, arial, helvetica, "sans serif";
 @     color:#333;
 @     background-color:white;
 @ }
+@ a { color: #000; }
+@ a:link { color: #000; }
+@ a:visited { color: #222; }
+@ a:hover { color: #300; }
 @
 @ /* consistent colours */
 @ h2 {
 @   color: #333;
 @ }

Index: src/style.c
===================================================================
--- src/style.c
+++ src/style.c
@@ -251,12 +251,17 @@
 @ /* General settings for the entire page */
 @ body {
 @   margin: 0ex 1ex;
 @   padding: 0px;
 @   background-color: white;
+@   color:black;
 @   font-family: sans-serif;
 @ }
+@ a { color: #31718e; }
+@ a:link { color: #31718e;}
+@ a:visited { color: #37318e; }
+@ a:hover { color: #8e3171; }
 @
 @ /* The project logo in the upper left-hand corner of each page */
 @ div.logo {
 @   display: table-cell;
 @   text-align: center;



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic