Mercurial > hg
annotate templates/static/style-coal.css @ 7394:03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
This patch removes tables altogether for file and diff, and removes
one column from annotate, making firefox's incremental renderer much
faster for large files.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 20 Nov 2008 18:15:50 -0800 |
parents | 06a6942554dc |
children | 7b2a77b20964 |
rev | line source |
---|---|
6436 | 1 body { |
2 margin: 0; | |
3 padding: 0; | |
4 background: black url(background.png) repeat-x; | |
6451 | 5 font-family: sans-serif; |
6436 | 6 } |
7 | |
6453 | 8 .container { |
9 padding-right: 150px; | |
10 } | |
11 | |
6436 | 12 .main { |
6453 | 13 position: relative; |
6436 | 14 background: white; |
15 padding: 2em; | |
16 border-right: 15px solid black; | |
17 border-bottom: 15px solid black; | |
18 } | |
19 | |
7291
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
20 #.main { |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
21 width:98%; |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
22 } |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
23 |
6436 | 24 .overflow { |
25 width: 100%; | |
26 overflow: auto; | |
27 } | |
28 | |
29 .menu { | |
30 background: #999; | |
31 padding: 10px; | |
32 width: 75px; | |
33 margin: 0; | |
6463 | 34 font-size: 80%; |
6436 | 35 text-align: left; |
36 position: fixed; | |
37 top: 27px; | |
38 left: auto; | |
39 right: 27px; | |
40 } | |
41 | |
7291
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
42 #.menu { |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
43 position: absolute !important; |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
44 top:expression(eval(document.body.scrollTop + 27)); |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
45 } |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
46 |
6436 | 47 .menu ul { |
48 list-style: none; | |
49 padding: 0; | |
50 margin: 10px 0 0 0; | |
51 } | |
52 | |
53 .menu li { | |
54 margin-bottom: 3px; | |
55 padding: 2px 4px; | |
56 background: white; | |
57 color: black; | |
58 font-weight: normal; | |
59 } | |
60 | |
61 .menu li.active { | |
6463 | 62 background: black; |
63 color: white; | |
6436 | 64 } |
65 | |
6463 | 66 .menu a { color: black; display: block; } |
67 | |
6436 | 68 .search { |
69 position: absolute; | |
70 top: .7em; | |
71 right: 2em; | |
72 } | |
73 | |
7299
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
74 form.search span { |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
75 display: none; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
76 position: absolute; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
77 top: 40px; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
78 right: 0px; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
79 width: 190px; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
80 padding: 5px; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
81 background: #ffc; |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
82 font-size: 70%; |
7299
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
83 border: 1px solid yellow; |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
84 -moz-border-radius: 5px; /* this works only in camino/firefox */ |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
85 -webkit-border-radius: 5px; /* this is just for Safari */ |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
86 } |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
87 |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
88 form.search:hover span { display: block; } |
288dda59233c
coal/paper: show a search tip when hovering over search box
Benoit Allard <benoit@aeteurope.nl>
parents:
7291
diff
changeset
|
89 |
6436 | 90 a { text-decoration:none; } |
91 .age { white-space:nowrap; } | |
92 .date { white-space:nowrap; } | |
93 .indexlinks { white-space:nowrap; } | |
7340
06a6942554dc
hgweb: improve color discrimination for paper and coal
Matt Mackall <mpm@selenic.com>
parents:
7327
diff
changeset
|
94 .parity0 { background-color: #f0f0f0; } |
6436 | 95 .parity1 { background-color: white; } |
96 .plusline { color: green; } | |
7340
06a6942554dc
hgweb: improve color discrimination for paper and coal
Matt Mackall <mpm@selenic.com>
parents:
7327
diff
changeset
|
97 .minusline { color: #dc143c; } /* crimson */ |
6436 | 98 .atline { color: purple; } |
99 | |
100 .navigate { | |
101 text-align: right; | |
102 font-size: 60%; | |
103 margin: 1em 0 1em 0; | |
104 } | |
105 | |
106 .tag { | |
107 color: #999; | |
108 font-size: 70%; | |
109 font-weight: normal; | |
110 margin-left: .5em; | |
6571
e6f71ca3de8a
coal: fix CSS errors as reported by Firefox
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6463
diff
changeset
|
111 vertical-align: baseline; |
6436 | 112 } |
113 | |
114 /* Common */ | |
115 pre { margin: 0; } | |
116 | |
117 h2 { font-size: 120%; border-bottom: 1px solid #999; } | |
7314
a0843c82d1a2
coal/paper: link repo name to hgweb root
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7299
diff
changeset
|
118 h2 a { color: #000; } |
6436 | 119 h3 { |
120 margin-top: -.7em; | |
121 font-size: 100%; | |
122 } | |
123 | |
124 /* log and tags tables */ | |
125 .bigtable { | |
126 border-bottom: 1px solid #999; | |
127 border-collapse: collapse; | |
128 font-size: 90%; | |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
129 width: 100%; |
6436 | 130 font-weight: normal; |
131 text-align: left; | |
132 } | |
133 | |
134 .bigtable td { | |
135 padding: 1px 4px 1px 4px; | |
136 vertical-align: top; | |
137 } | |
138 | |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
139 .bigtable th { |
6436 | 140 padding: 1px 4px 1px 4px; |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
141 border-bottom: 1px solid #999; |
6436 | 142 font-size: smaller; |
143 } | |
144 .bigtable tr { border: none; } | |
145 .bigtable .age { width: 6em; } | |
7181
1e39a2459359
coal/paper: widen author column in log table
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6864
diff
changeset
|
146 .bigtable .author { width: 12em; } |
6436 | 147 .bigtable .description { } |
148 .bigtable .node { width: 5em; font-family: monospace;} | |
149 .bigtable .lineno { width: 2em; text-align: right;} | |
150 .bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;} | |
6452 | 151 .bigtable .permissions { width: 8em; text-align: left;} |
6436 | 152 .bigtable .size { width: 5em; text-align: right; } |
6571
e6f71ca3de8a
coal: fix CSS errors as reported by Firefox
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6463
diff
changeset
|
153 .bigtable .annotate { text-align: right; } |
6436 | 154 .bigtable td.annotate { font-size: smaller; } |
7394
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
155 .bigtable td.source { font-size: inherit; } |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
156 |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
157 .source, .sourcefirst, .sourcelast { |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
158 font-family: monospace; |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
159 white-space: pre; |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
160 font-size: 90%; |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
161 } |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
162 .sourcefirst { border-bottom: 1px solid #999; font-weight: bold; font-size: smaller; } |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
163 .sourcelast { border-top: 1px solid #999; } |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
164 .source a { color: #999; font-size: smaller; font-family: monospace;} |
03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents:
7340
diff
changeset
|
165 .bottomline { border-bottom: 1px solid #999; } |
6436 | 166 |
6454 | 167 .fileline { font-family: monospace; } |
6463 | 168 .fileline img { border: 0; } |
6454 | 169 |
6436 | 170 /* Changeset entry */ |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
171 #changesetEntry { |
6436 | 172 border-collapse: collapse; |
173 font-size: 90%; | |
174 width: 100%; | |
175 margin-bottom: 1em; | |
176 } | |
177 | |
7327
a1758089ee35
Kill trailing whitespace in templates
Thomas Arendsen Hein <thomas@intevation.de>
parents:
7314
diff
changeset
|
178 #changesetEntry th { |
6436 | 179 padding: 1px 4px 1px 4px; |
180 width: 4em; | |
181 text-align: right; | |
182 font-weight: normal; | |
183 color: #999; | |
184 margin-right: .5em; | |
185 vertical-align: top; | |
186 } | |
187 | |
188 div.description { | |
189 border-left: 3px solid #999; | |
190 margin: 1em 0 1em 0; | |
191 padding: .3em; | |
192 } | |
6691
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
193 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
194 div#wrapper { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
195 position: relative; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
196 border-top: 1px solid black; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
197 border-bottom: 1px solid black; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
198 margin: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
199 padding: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
200 } |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
201 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
202 canvas { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
203 position: absolute; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
204 z-index: 5; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
205 top: -0.7em; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
206 margin: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
207 } |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
208 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
209 ul#graphnodes { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
210 position: absolute; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
211 z-index: 10; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
212 top: -1.0em; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
213 list-style: none inside none; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
214 padding: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
215 } |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
216 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
217 ul#nodebgs { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
218 list-style: none inside none; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
219 padding: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
220 margin: 0; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
221 top: -0.7em; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
222 } |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
223 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
224 ul#graphnodes li, ul#nodebgs li { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
225 height: 39px; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
226 } |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
227 |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
228 ul#graphnodes li .info { |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
229 display: block; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
230 font-size: 70%; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
231 position: relative; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
232 top: -3px; |
0dba955c2636
add graph page to hgweb
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6571
diff
changeset
|
233 } |