UNPKG

jkstra

Version:

Small JavaScript graph routing library

54 lines (47 loc) 855 B
body { font-family: sans-serif; padding: 18px; } #controls { display: flex; margin-bottom: 30px; background-color: #efefef; border-radius: 3px; } #controls > div { flex: 1; padding: 6px; } input[type=checkbox] { margin-right: 6px; } table { border-collapse: collapse; } td { width: 15px; height: 15px; border: 1px solid #ccc; } td:hover { background-color: #efefef; } .onTree { background-color: #faa; } .onPath { background-color: red; } .off { background-color: black !important; } .start { box-shadow: inset 0 0 0px 3px blue; } .end:after { content: ''; display: block; width: 12px; height: 12px; transform: translate(-50%, -50%); border-radius: 50%; background-color: blue; position: relative; top: 50%; left: 50%; box-sizing: border-box; }