annotate mercurial/templates/static/style.css @ 35522:ab9d8d298510

hgweb: make .info a block element by default Using a <div> instead of a <span> with "display: block" makes more sense. While at it, let's adjust top margin in monoblue so that text in .info doesn't overlap changeset "tags" elements (they are quite large in monoblue).
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 03 Jan 2018 09:41:01 +0800
parents ec71518acd4a
children bb5a03dfd7ff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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; }
29387
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26536
diff changeset
13 tr.thisrev a { color:#999999; text-decoration: none; }
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 26536
diff changeset
14 tr.thisrev pre { color:#009900; }
30074
8f34e217338b hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents: 29628
diff changeset
15 td.annotate {
8f34e217338b hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents: 29628
diff changeset
16 white-space: nowrap;
8f34e217338b hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents: 29628
diff changeset
17 }
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
18 div.annotate-info {
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
19 display: none;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
20 position: absolute;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
21 background-color: #FFFFFF;
29628
6217180f9ab8 spartan: make annotate popup use theme colors
Anton Shestakov <av6@dwimlabs.net>
parents: 29522
diff changeset
22 border: 1px solid #888;
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
23 text-align: left;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
24 color: #000000;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
25 padding: 5px;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
26 }
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
27 div.annotate-info a { color: #0000FF; }
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
28 td.annotate:hover div.annotate-info { display: inline; }
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
29 .buttons a {
8505
dc50108ce188 spartan: simplify CSS colors (#xxxxxx -> #xxx)
Martin Geisler <mg@lazybytes.net>
parents: 7327
diff changeset
30 background-color: #666;
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
31 padding: 2pt;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
32 color: white;
19075
6bc76c0e60b9 css: fixed font-family
Alexander Plavin <me@aplavin.ru>
parents: 9999
diff changeset
33 font-family: sans-serif;
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
34 font-weight: bold;
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 .navigate a {
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
37 background-color: #ccc;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
38 padding: 2pt;
19075
6bc76c0e60b9 css: fixed font-family
Alexander Plavin <me@aplavin.ru>
parents: 9999
diff changeset
39 font-family: sans-serif;
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
40 color: black;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
41 }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
42
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
43 .metatag {
8505
dc50108ce188 spartan: simplify CSS colors (#xxxxxx -> #xxx)
Martin Geisler <mg@lazybytes.net>
parents: 7327
diff changeset
44 background-color: #888;
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
45 color: white;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
46 text-align: right;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
47 }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
48
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
49 /* Common */
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
50 pre { margin: 0; }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
51
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
52 .logo {
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
53 float: right;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
54 clear: right;
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
55 }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
56
2132
4990b62fd0a6 hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 2131
diff changeset
57 /* Changelog/Filelog entries */
4990b62fd0a6 hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 2131
diff changeset
58 .logEntry { width: 100%; }
4990b62fd0a6 hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 2131
diff changeset
59 .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
60 .logEntry th.label { width: 16em; }
2132
4990b62fd0a6 hgweb: Synchronised filelogentry to changelogentry.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 2131
diff changeset
61 .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
62 .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
63 .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
64
2686
d98eebc48d5e [hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents: 2171
diff changeset
65 /* Shortlog entries */
4703
bc63247c66e9 hgweb: improve shortlog formatting
Matt Mackall <mpm@selenic.com>
parents: 4659
diff changeset
66 .slogEntry { width: 100%; }
bc63247c66e9 hgweb: improve shortlog formatting
Matt Mackall <mpm@selenic.com>
parents: 4659
diff changeset
67 .slogEntry .age { width: 8em; }
2686
d98eebc48d5e [hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents: 2171
diff changeset
68 .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
69 .slogEntry td.author { width: 15em; }
2686
d98eebc48d5e [hgweb] Shortlog template for default theme
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents: 2171
diff changeset
70
1778
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
71 /* Tag entries */
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
72 #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
73 #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
74
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
75 /* Changeset entry */
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
76 #changesetEntry { }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
77 #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
78 #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
79
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
80 /* File diff view */
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
81 #filediffEntry { }
b08b87cecc37 [hgweb] Move CSS from headers into static files
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents:
diff changeset
82 #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
83
6693
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
84 /* Graph */
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
85 div#wrapper {
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
86 position: relative;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
87 margin: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
88 padding: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
89 }
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
90
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
91 canvas {
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
92 position: absolute;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
93 z-index: 5;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
94 top: -0.6em;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
95 margin: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
96 }
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
97
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
98 ul#nodebgs {
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
99 list-style: none inside none;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
100 padding: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
101 margin: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
102 top: -0.7em;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
103 }
7327
a1758089ee35 Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents: 6693
diff changeset
104
6693
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
105 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
106 height: 39px;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
107 }
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
108
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
109 ul#graphnodes {
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
110 position: absolute;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
111 z-index: 10;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
112 top: -0.85em;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
113 list-style: none inside none;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
114 padding: 0;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
115 }
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
116
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
117 ul#graphnodes li .info {
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
118 font-size: 70%;
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6096
diff changeset
119 }