greens_report/www/graph.css

231 lines
3.7 KiB
CSS
Raw Normal View History

2021-03-31 14:24:46 +00:00
:root{
--color1: #f94144;
--color2: #f3722c;
--color3: #f8961e;
/* --color4: #f9844a; */
--color5: #f9c74f;
--color6: #90be6d;
--color7: #43aa8b;
--color8: #4d908e;
--color9: #577590;
--color10: #277da1;
--hover-color: var(--color1);
/* --hover-color: var(darkblue); */
2021-03-31 14:24:46 +00:00
--selected-color: var(--color1);
--selected-color: var(--color1);
}
body {
margin: 0;
2021-04-19 20:47:06 +00:00
/* overflow: hidden; */
/* background: linear-gradient(to top, #040308, #AD4A28, #DD723C, #fc7001, #dcb697, #9ba5ae, #3e5879, #020b1a); */
background:linear-gradient(to top, #414141, #99a6b8);
2021-03-31 14:24:46 +00:00
font-family: sans-serif;
min-height: 100vh;
}
svg {
cursor: grab;
font-family: sans-serif;
}
svg.dragging {
cursor: grabbing;
}
svg .links line,svg .links path{
stroke: #f3722c;
stroke-width: 6;
fill:none;
transition: stroke-width 1s;
cursor: pointer;
}
svg .links line.hover, svg .links path.hover{
2021-04-27 14:10:23 +00:00
stroke:var(--hover-color);
stroke-width: 12;
}
svg.zoomed .links line, svg.zoomed .links path{
stroke-width: 2;
2021-03-31 14:24:46 +00:00
}
2021-04-27 14:10:23 +00:00
svg.zoomed .links line, svg.zoomed .links path.hover{
stroke-width: 2;
stroke-width: 4;
}
2021-03-31 14:24:46 +00:00
.links text{
display:none;
font-size:5pt;
text-anchor: middle;
fill: whitesmoke;
}
.node{
cursor: pointer;
}
.node text.nodeTitle{
text-anchor: start;
dominant-baseline: hanging; /*achieves a 'text-anchor: top'*/
font-size:16pt;
transition: font-size .4s, opacity 1s;
fill: white;
opacity: 1;
2021-04-27 14:10:23 +00:00
pointer-events: none; /*prevent mouse glitches*/
}
.node:not(:hover):not(.linkHover) text.nodeTitle.overlapping{
opacity: 0;
}
svg.zoomed .node text.nodeTitle{
font-size:6pt;
}
svg.zoomed.zoomed2 .node text.nodeTitle{
font-size:3pt;
2021-03-31 14:24:46 +00:00
}
.node circle{
fill: white;
}
/* Whenever a connected link is hovered */
.node.linkHover circle{
stroke: var(--hover-color);
stroke-width: 5px;
}
.node.linkHover text.nodeTitle.overlapping{
transition: opacity 0s;
2021-03-31 14:24:46 +00:00
}
.node:hover circle{
stroke: var(--hover-color);
stroke-width: 5px;
}
.node:hover text{
transition: none;
fill: var(--hover-color);
}
2021-03-31 14:24:46 +00:00
.node.selected circle{
stroke: var(--selected-color);
stroke-width: 5px;
}
.node.City circle{
display:none;
}
.node.City{
fill:white;
stroke: black;
stroke-width: .5px;
font-size: 20px;
}
.node.Person circle {
fill: lightgreen
}
.node.Technology circle {
fill: lightcoral;
}
.node.Deployment circle {
fill: lightblue;
}
.node.Institution circle {
fill: lightgoldenrodyellow
}
.node.Dataset circle {
fill: plum
}
.labels .label text{
fill:yellow;
opacity: 1 !important;
}
2021-03-31 14:24:46 +00:00
/* .node.Person circle {
fill: var(--color2)
}
.node.Technology circle {
fill: var(--color3);
}
.node.Deployment circle {
fill: var(--color5);
}
.node.Institution circle {
fill: var(--color6)
}
.node.Dataset circle {
fill: var(--color7)
} */
#nodeInfo{
position: fixed;
display:block;
right:20px;
bottom:20px;
background:white;
padding: 10px;
border: solid 1px #ccc;
}
#nodeInfo.hidden{
display:none;
}
#nodeInfo h2{
margin: 0;
padding: 0;
}
#nodeInfo iframe{
width: 50vw;
height: calc(100vh - 40px - 20px - 30px);
}
#closeInfo{
cursor: pointer;
position: absolute;
right: 10px;
top: 10px;
}
#closeInfo:hover{
color: var(--hover-color);
}
a, a:link{
text-decoration: none;
}
a:hover{
text-decoration: underline;
2021-04-16 09:15:57 +00:00
}
#filters,#menu{
2021-04-16 09:15:57 +00:00
position: fixed;
left: 0;
top: 0;
background: white;
padding: 10px;
}
#map .borders{
stroke-width: 6px;
stroke: white;
fill:none;
2021-04-19 20:47:06 +00:00
}
#alluvial{
/* position:fixed; */
top:0;
left:0;
}
#alluvial .flow_label text{
font-size: 30;
}