Mercurial > hg
annotate mercurial/templates/static/style.css @ 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 | a65714215377 |
children | 6b77adc2c7b5 |
rev | line source |
---|---|
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
1 a { text-decoration:none; } |
2130
90ee844b9f71
hgweb templates: Don't word wrap "foo bar ago" (e.g. "3 months\nago")
Thomas Arendsen Hein <thomas@intevation.de>
parents:
1778
diff
changeset
|
2 .age { white-space:nowrap; } |
5273
6e0f05f6f68d
hgweb: Show date of last change for each file in manifest
Thomas Arendsen Hein <thomas@intevation.de>
parents:
4703
diff
changeset
|
3 .date { white-space:nowrap; } |
2171
290534ee163c
Add download links to hgwebdir index page for allowed archive types.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2132
diff
changeset
|
4 .indexlinks { white-space:nowrap; } |
26536
93a3687a94d7
hgweb: ensure both foreground and background colors are specified (issue4872)
Gijs Kruitbosch <gijskruitbosch@gmail.com>
parents:
21124
diff
changeset
|
5 .parity0 { background-color: #ddd; color: #000; } |
93a3687a94d7
hgweb: ensure both foreground and background colors are specified (issue4872)
Gijs Kruitbosch <gijskruitbosch@gmail.com>
parents:
21124
diff
changeset
|
6 .parity1 { background-color: #eee; color: #000; } |
8505
dc50108ce188
spartan: simplify CSS colors (#xxxxxx -> #xxx)
Martin Geisler <mg@lazybytes.net>
parents:
7327
diff
changeset
|
7 .lineno { width: 60px; color: #aaa; font-size: smaller; |
8507
decf329f00cb
spartan: ensure equal heights for file and annotate views
Martin Geisler <mg@lazybytes.net>
parents:
8505
diff
changeset
|
8 text-align: right; } |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
9 .plusline { color: green; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
10 .minusline { color: red; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
11 .atline { color: purple; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
12 .annotate { font-size: smaller; text-align: right; padding-right: 1em; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
13 .buttons a { |
8505
dc50108ce188
spartan: simplify CSS colors (#xxxxxx -> #xxx)
Martin Geisler <mg@lazybytes.net>
parents:
7327
diff
changeset
|
14 background-color: #666; |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
15 padding: 2pt; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
16 color: white; |
19075 | 17 font-family: sans-serif; |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
18 font-weight: bold; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
19 } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
20 .navigate a { |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
21 background-color: #ccc; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
22 padding: 2pt; |
19075 | 23 font-family: sans-serif; |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
24 color: black; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
25 } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
26 |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
27 .metatag { |
8505
dc50108ce188
spartan: simplify CSS colors (#xxxxxx -> #xxx)
Martin Geisler <mg@lazybytes.net>
parents:
7327
diff
changeset
|
28 background-color: #888; |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
29 color: white; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
30 text-align: right; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
31 } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
32 |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
33 /* Common */ |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
34 pre { margin: 0; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
35 |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
36 .logo { |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
37 float: right; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
38 clear: right; |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
39 } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
40 |
2132
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
41 /* Changelog/Filelog entries */ |
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
42 .logEntry { width: 100%; } |
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
43 .logEntry .age { width: 15%; } |
21124
a65714215377
hgweb: align entries in "changelog" and "revisions" pages of "spartan" style
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
19075
diff
changeset
|
44 .logEntry th.label { width: 16em; } |
2132
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
45 .logEntry th { font-weight: normal; text-align: right; vertical-align: top; } |
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
46 .logEntry th.age, .logEntry th.firstline { font-weight: bold; } |
4990b62fd0a6
hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents:
2131
diff
changeset
|
47 .logEntry th.firstline { text-align: left; width: inherit; } |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
48 |
2686
d98eebc48d5e
[hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
2171
diff
changeset
|
49 /* Shortlog entries */ |
4703
bc63247c66e9
hgweb: improve shortlog formatting
Matt Mackall <mpm@selenic.com>
parents:
4659
diff
changeset
|
50 .slogEntry { width: 100%; } |
bc63247c66e9
hgweb: improve shortlog formatting
Matt Mackall <mpm@selenic.com>
parents:
4659
diff
changeset
|
51 .slogEntry .age { width: 8em; } |
2686
d98eebc48d5e
[hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
2171
diff
changeset
|
52 .slogEntry td { font-weight: normal; text-align: left; vertical-align: top; } |
4703
bc63247c66e9
hgweb: improve shortlog formatting
Matt Mackall <mpm@selenic.com>
parents:
4659
diff
changeset
|
53 .slogEntry td.author { width: 15em; } |
2686
d98eebc48d5e
[hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents:
2171
diff
changeset
|
54 |
1778
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
55 /* Tag entries */ |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
56 #tagEntries { list-style: none; margin: 0; padding: 0; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
57 #tagEntries .tagEntry { list-style: none; margin: 0; padding: 0; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
58 |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
59 /* Changeset entry */ |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
60 #changesetEntry { } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
61 #changesetEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
62 #changesetEntry th.files, #changesetEntry th.description { vertical-align: top; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
63 |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
64 /* File diff view */ |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
65 #filediffEntry { } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
66 #filediffEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; } |
b08b87cecc37
[hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff
changeset
|
67 |
6693
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
68 /* Graph */ |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
69 div#wrapper { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
70 position: relative; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
71 margin: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
72 padding: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
73 } |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
74 |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
75 canvas { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
76 position: absolute; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
77 z-index: 5; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
78 top: -0.6em; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
79 margin: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
80 } |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
81 |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
82 ul#nodebgs { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
83 list-style: none inside none; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
84 padding: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
85 margin: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
86 top: -0.7em; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
87 } |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
6693
diff
changeset
|
88 |
6693
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
89 ul#graphnodes li, ul#nodebgs li { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
90 height: 39px; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
91 } |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
92 |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
93 ul#graphnodes { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
94 position: absolute; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
95 z-index: 10; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
96 top: -0.85em; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
97 list-style: none inside none; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
98 padding: 0; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
99 } |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
100 |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
101 ul#graphnodes li .info { |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
102 display: block; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
103 font-size: 70%; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
104 position: relative; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
105 top: -1px; |
7f58dec6aeb7
hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents:
6096
diff
changeset
|
106 } |