Mercurial > hg
annotate mercurial/templates/static/style-extra-coal.css @ 35530:acd8a2454b47
monoblue: make actual changeset entries have backgrounds on /graph
This patch removes a separate container for backgrounds only and puts
backgrounds on changeset elements themselves. This makes it so that JS code
doesn't need to create background elements separately anymore.
There's a bit of manipulating positions of elements: every changeset entry has
a "fg" element that gets a higher z-index than <canvas> element. This
prioritizes text information, so that even if it somehow gets close to the
graph drawn on <canvas> (which has z-index of 5), it'll still be on top of it.
This can happen if commit message has a long first line and browser window is
narrow, for example.
'parity' is added to each entry because there's no stripes2 class in monoblue,
only in paper.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 05 Jan 2018 19:08:00 +0800 |
parents | c258f4d2bfb2 |
children |
rev | line source |
---|---|
6436 | 1 body { |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
2 background: black url('background.png') repeat-x; |
6436 | 3 } |
4 | |
6453 | 5 .container { |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
6 padding-left: 0; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
7 padding-right: 150px; |
6453 | 8 } |
9 | |
6436 | 10 .main { |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
11 padding: 2em; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
12 border-right: 15px solid black; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
13 border-bottom: 15px solid black; |
6436 | 14 } |
15 | |
16 .menu { | |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
17 background: #999; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
18 padding: 10px; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
19 width: 75px; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
20 position: fixed; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
21 top: 27px; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
22 left: auto; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
23 right: 27px; |
7291
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
24 } |
5ac779ea7850
Backed out changeset a1f8ad3c1821
Brendan Cully <brendan@kublai.com>
parents:
7286
diff
changeset
|
25 |
6436 | 26 .menu ul { |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
27 border-left: 0; |
6436 | 28 } |
29 | |
30 .menu li.active { | |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
31 font-weight: normal; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
32 background: black; |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
33 color: white; |
7410
f1111704061e
coal/paper: show branch name in changeset view
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7408
diff
changeset
|
34 } |
f1111704061e
coal/paper: show branch name in changeset view
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7408
diff
changeset
|
35 |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
36 .menu li.active a { |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
37 color: white; |
26244
399e970e35c8
coal: copy newer things from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
25664
diff
changeset
|
38 } |
399e970e35c8
coal: copy newer things from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
25664
diff
changeset
|
39 |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
40 h3 { |
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
41 margin-top: -.7em; |
6436 | 42 } |
43 | |
44 div.description { | |
26284
c258f4d2bfb2
coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
45 border-left-width: 3px; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
14563
diff
changeset
|
46 } |