Reverse the direction of the tree and make it dynamically change the current tag.
This commit is contained in:
parent
4c189f38c2
commit
a7f5b5e033
2 changed files with 172 additions and 53 deletions
|
@ -697,11 +697,11 @@ p.editable:hover i {
|
|||
position: relative;
|
||||
}
|
||||
|
||||
#image-history-container .node.highlighted circle {
|
||||
#image-history-container .node circle.highlighted {
|
||||
stroke: steelblue;
|
||||
}
|
||||
|
||||
#image-history-container .node.current circle {
|
||||
#image-history-container .node circle.current {
|
||||
fill: steelblue;
|
||||
stroke-width: 2.5px;
|
||||
}
|
||||
|
@ -844,22 +844,47 @@ p.editable:hover i {
|
|||
|
||||
/* Creates a small triangle extender for the tooltip */
|
||||
.d3-tip:after {
|
||||
box-sizing: border-box;
|
||||
display: inline;
|
||||
font-size: 10px;
|
||||
width: 100%;
|
||||
line-height: 1;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
content: "\25BC";
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
display: inline;
|
||||
font-size: 10px;
|
||||
width: 100%;
|
||||
line-height: 1;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
/* Style northward tooltips differently */
|
||||
/* Nrthward tooltips */
|
||||
.d3-tip.n:after {
|
||||
margin: -3px 0 0 0;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
content: "\25BC";
|
||||
margin: -1px 0 0 0;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Eastward tooltips */
|
||||
.d3-tip.e:after {
|
||||
content: "\25C0";
|
||||
margin: -4px 0 0 0;
|
||||
top: 50%;
|
||||
left: -8px;
|
||||
}
|
||||
|
||||
/* Southward tooltips */
|
||||
.d3-tip.s:after {
|
||||
content: "\25B2";
|
||||
margin: 0 0 1px 0;
|
||||
top: -8px;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Westward tooltips */
|
||||
.d3-tip.w:after {
|
||||
content: "\25B6";
|
||||
margin: -4px 0 0 -1px;
|
||||
top: 50%;
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
.d3-tip .full-id {
|
||||
|
|
Reference in a new issue