mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-15 01:21:03 +00:00
Animate nodes for fun :)
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
.Node-Location {
|
.Node-Location {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
background: #d64ca8;
|
background: #666;
|
||||||
border: 1px solid #000;
|
border: 1px solid #222;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
margin-top: -6px;
|
margin-top: -6px;
|
||||||
@@ -10,6 +10,15 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: background-color 0.25s linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Node-Location-odd {
|
||||||
|
background: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Node-Location-synced {
|
||||||
|
background: #d64ca8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Node-Location:hover {
|
.Node-Location:hover {
|
||||||
|
|||||||
@@ -77,8 +77,16 @@ export namespace Node {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let className = 'Node-Location';
|
||||||
|
|
||||||
|
if (propagationTime) {
|
||||||
|
className += ' Node-Location-synced';
|
||||||
|
} else if (height % 2 === 1) {
|
||||||
|
className += ' Node-Location-odd';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="Node-Location" style={{ left, top }}>
|
<div className={className} style={{ left, top }}>
|
||||||
<table className="Node-details">
|
<table className="Node-details">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user