greens_report/www/graph.css

332 lines
5.4 KiB
CSS
Raw Normal View History

2021-04-28 07:38:06 +00:00
@font-face {
font-family: 'Lexend Mega Regular';
font-style: normal;
font-weight: normal;
src: local('Lexend Mega Regular'), url('LexendMega-Regular.woff') format('woff');
}
2021-03-31 14:24:46 +00:00
2021-04-28 07:38:06 +00:00
:root {
2021-03-31 14:24:46 +00:00
--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); */
2021-04-28 07:38:06 +00:00
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;
}
2021-04-28 07:38:06 +00:00
svg .links line, svg .links path {
stroke: #f3722c;
stroke-width: 6;
2021-04-28 07:38:06 +00:00
fill: none;
transition: stroke-width 1s;
cursor: pointer;
}
2021-04-28 07:38:06 +00:00
svg .links line.hover, svg .links path.hover {
stroke: var(--hover-color);
2021-04-27 14:10:23 +00:00
stroke-width: 12;
}
2021-04-28 07:38:06 +00:00
svg.zoomed .links line, svg.zoomed .links path {
stroke-width: 2;
2021-03-31 14:24:46 +00:00
}
2021-04-28 07:38:06 +00:00
svg.zoomed .links line, svg.zoomed .links path.hover {
2021-04-27 14:10:23 +00:00
stroke-width: 2;
stroke-width: 4;
}
2021-03-31 14:24:46 +00:00
2021-04-28 07:38:06 +00:00
svg .title {
font-size: 200;
}
svg .subtitle {
font-size: 100;
}
svg #countries .country{
fill:rgba(200,200,200,0.7);
}
svg #countries .country.eu_country{
fill:black;
}
svg #header #titlePath, svg #header #subtitlePath {
stroke: none;
fill: none;
}
svg #header text {
font-size: 180px;
font-family: "Lexend Mega Regular";
/*Comfortaa*/
opacity: .8;
fill: black;
text-shadow: rgba(0, 0, 0, .5) 5px 5px 10px;
/* text-transform: uppercase; */
}
svg #header text:nth-of-type(2) {
dominant-baseline: hanging;
transform: translate(10px, 25px);
}
svg #header text#subtitle {
font-size: 70px;
fill: var(--color9);
}
.links text {
display: none;
font-size: 5pt;
2021-03-31 14:24:46 +00:00
text-anchor: middle;
fill: whitesmoke;
}
2021-04-28 07:38:06 +00:00
.node {
cursor: pointer;
}
2021-04-28 07:38:06 +00:00
.node text.nodeTitle {
text-anchor: start;
2021-04-28 07:38:06 +00:00
dominant-baseline: hanging;
/*achieves a 'text-anchor: top'*/
font-size: 16pt;
transition: font-size .4s, opacity 1s;
fill: white;
opacity: 1;
2021-04-28 07:38:06 +00:00
pointer-events: none;
/*prevent mouse glitches*/
}
2021-04-28 07:38:06 +00:00
.node:not(:hover):not(.linkHover) text.nodeTitle.overlapping {
opacity: 0;
}
2021-04-28 07:38:06 +00:00
svg.zoomed .node text.nodeTitle {
font-size: 6pt;
}
2021-04-28 07:38:06 +00:00
svg.zoomed.zoomed2 .node text.nodeTitle {
font-size: 3pt;
2021-03-31 14:24:46 +00:00
}
2021-04-28 07:38:06 +00:00
.node circle {
2021-03-31 14:24:46 +00:00
fill: white;
}
/* Whenever a connected link is hovered */
2021-04-28 07:38:06 +00:00
.node.linkHover circle {
stroke: var(--hover-color);
stroke-width: 5px;
}
2021-04-28 07:38:06 +00:00
.node.linkHover text.nodeTitle.overlapping {
transition: opacity 0s;
2021-03-31 14:24:46 +00:00
}
2021-04-28 07:38:06 +00:00
.node:hover circle {
2021-03-31 14:24:46 +00:00
stroke: var(--hover-color);
stroke-width: 5px;
}
2021-04-28 07:38:06 +00:00
.node:hover text {
transition: none;
2021-04-28 07:38:06 +00:00
fill: var(--hover-color);
}
2021-04-28 07:38:06 +00:00
.node.selected circle {
2021-03-31 14:24:46 +00:00
stroke: var(--selected-color);
stroke-width: 5px;
}
2021-04-28 07:38:06 +00:00
.node.City circle {
display: none;
2021-03-31 14:24:46 +00:00
}
2021-04-28 07:38:06 +00:00
.node.City {
fill: white;
2021-03-31 14:24:46 +00:00
stroke: black;
stroke-width: .5px;
font-size: 20px;
}
2021-04-28 07:38:06 +00:00
2021-03-31 14:24:46 +00:00
.node.Person circle {
fill: lightgreen
}
2021-04-28 07:38:06 +00:00
2021-03-31 14:24:46 +00:00
.node.Technology circle {
fill: lightcoral;
}
2021-04-28 07:38:06 +00:00
2021-03-31 14:24:46 +00:00
.node.Deployment circle {
fill: lightblue;
}
2021-04-28 07:38:06 +00:00
2021-03-31 14:24:46 +00:00
.node.Institution circle {
fill: lightgoldenrodyellow
}
2021-04-28 07:38:06 +00:00
2021-03-31 14:24:46 +00:00
.node.Dataset circle {
fill: plum
}
2021-04-28 07:38:06 +00:00
.labels .label text {
fill: yellow;
opacity: 1 !important;
2021-04-28 07:38:06 +00:00
}
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)
} */
2021-04-28 07:38:06 +00:00
#nodeInfo {
2021-03-31 14:24:46 +00:00
position: fixed;
2021-04-28 07:38:06 +00:00
display: block;
right: 20px;
bottom: 20px;
background: white;
2021-03-31 14:24:46 +00:00
padding: 10px;
border: solid 1px #ccc;
}
2021-04-28 07:38:06 +00:00
#nodeInfo.hidden {
display: none;
2021-03-31 14:24:46 +00:00
}
2021-04-28 07:38:06 +00:00
#nodeInfo h2 {
2021-03-31 14:24:46 +00:00
margin: 0;
padding: 0;
}
2021-04-28 07:38:06 +00:00
#nodeInfo iframe {
2021-03-31 14:24:46 +00:00
width: 50vw;
height: calc(100vh - 40px - 20px - 30px);
}
2021-04-28 07:38:06 +00:00
#closeInfo {
2021-03-31 14:24:46 +00:00
cursor: pointer;
position: absolute;
right: 10px;
top: 10px;
}
2021-04-28 07:38:06 +00:00
#closeInfo:hover {
2021-03-31 14:24:46 +00:00
color: var(--hover-color);
}
2021-04-28 07:38:06 +00:00
a, a:link {
2021-03-31 14:24:46 +00:00
text-decoration: none;
}
2021-04-28 07:38:06 +00:00
a:hover {
2021-03-31 14:24:46 +00:00
text-decoration: underline;
2021-04-16 09:15:57 +00:00
}
2021-04-28 07:38:06 +00:00
header {
2021-04-16 09:15:57 +00:00
position: fixed;
2021-04-28 07:38:06 +00:00
bottom: 0;
right: 0;
2021-04-16 09:15:57 +00:00
background: white;
padding: 10px;
}
2021-04-28 07:38:06 +00:00
h1 {
/* color:var(--color9); */
margin: 0;
text-transform: uppercase;
display: none;
}
p.subtitle {
margin: 0;
color: var(--color10);
/* text-transform: uppercase;; */
display: none;
}
#filters h3{
text-align: center;;
}
#filters label {
cursor: pointer;
display: block;
padding: 10px;
}
#filters span:hover {
color: var(--hover-color);
}
#filters input {
/* display: none; */
}
#filters input+span {
display: inline-block;
padding-left: 10px;
/* background: var(--color9); */
text-decoration:line-through;
}
#filters input:checked+span {
/* color: var(--selected-color); */
text-decoration: none;
/* box-shadow: inset 0 0 5px black; */
}
#map .borders {
stroke-width: 6px;
stroke: white;
2021-04-28 07:38:06 +00:00
fill: none;
2021-04-19 20:47:06 +00:00
}
2021-04-28 07:38:06 +00:00
#alluvial {
2021-04-19 20:47:06 +00:00
/* position:fixed; */
2021-04-28 07:38:06 +00:00
top: 0;
left: 0;
2021-04-19 20:47:06 +00:00
}
2021-04-28 07:38:06 +00:00
#alluvial .flow_label text {
2021-04-19 20:47:06 +00:00
font-size: 30;
}