Mercurial > hg
comparison tests/test-hgweb.t @ 26536:93a3687a94d7
hgweb: ensure both foreground and background colors are specified (issue4872)
When users configure the default foreground or background color to
non-default (black on white) values, several hgweb styles lack
contrast for headers and table row items. This patch fixes that by
ensuring that where either foreground or background colors are
specified, both are specified.
author | Gijs Kruitbosch <gijskruitbosch@gmail.com> |
---|---|
date | Wed, 07 Oct 2015 21:08:14 +0100 |
parents | 4b0fc75f9403 |
children | ab2cd800f1b0 |
comparison
equal
deleted
inserted
replaced
26534:e4f27fb65da7 | 26536:93a3687a94d7 |
---|---|
338 | 338 |
339 static file | 339 static file |
340 | 340 |
341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server | 341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server |
342 200 Script output follows | 342 200 Script output follows |
343 content-length: 6379 | 343 content-length: 6412 |
344 content-type: text/css | 344 content-type: text/css |
345 | 345 |
346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; } | 346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; } |
347 a { color:#0000cc; } | 347 a { color:#0000cc; } |
348 a:hover, a:visited, a:active { color:#880000; } | 348 a:hover, a:visited, a:active { color:#880000; } |
349 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; } | 349 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; } |
350 div.page_header a:visited { color:#0000cc; } | 350 div.page_header a:visited { color:#0000cc; } |
351 div.page_header a:hover { color:#880000; } | 351 div.page_header a:hover { color:#880000; } |