From ea9862eddca749a3306be6e0d3eeb2e7bea8f071 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 13 Aug 2021 11:55:14 +0200 Subject: [PATCH] close button and usability styling --- www/graph.css | 20 ++++++++++++++++++++ www/index.html | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/www/graph.css b/www/graph.css index f0491cf..c53e97c 100644 --- a/www/graph.css +++ b/www/graph.css @@ -223,6 +223,7 @@ svg.zoomed.zoomed2 .node text.nodeTitle { } .selectedNode .node:not(.linkedSelected) path { fill: lightgray !important; + opacity: .5; /* same as linkHover/linkedHover but without border */ } @@ -560,3 +561,22 @@ p.subtitle { #alluvial .flow_label text { font-size: 30; } + +#closeSelection{ + pointer-events: none; + opacity: 0; + position: absolute; + top: 0; + right: 0; + background-color: white; + font-size: 200%; + width: 35px; + text-align:center; + z-index: 10; +} + +.selectedNode #closeSelection{ + pointer-events: all;; + opacity: 1; + cursor: pointer; +} \ No newline at end of file diff --git a/www/index.html b/www/index.html index 832dac8..afacb0d 100644 --- a/www/index.html +++ b/www/index.html @@ -9,7 +9,7 @@
- +
×