_forcegraph.scss 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .graph {
  2. height: 100vh;
  3. background: url(img/gplaypattern.png);
  4. svg {
  5. display: block;
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .link {
  10. stroke-opacity: 0.8;
  11. line {
  12. stroke-width: 2.5px;
  13. cursor: pointer;
  14. }
  15. &.highlight line {
  16. stroke-width: 7px;
  17. stroke-dasharray: 10, 10;
  18. opacity: 1;
  19. }
  20. }
  21. .node {
  22. fill: #fff;
  23. stroke-width: 2.5px;
  24. stroke: #AEC7E8;
  25. &:not(.unknown) {
  26. cursor: pointer;
  27. }
  28. &.highlight {
  29. stroke: #FFD486;
  30. stroke-width: 6px;
  31. fill: orange;
  32. point-order: stroke;
  33. }
  34. &.unknown {
  35. stroke: #d00000;
  36. }
  37. }
  38. .label {
  39. text {
  40. font-size: 0.8em;
  41. }
  42. rect {
  43. fill: rgba(255, 255, 255, 0.8);
  44. }
  45. }
  46. }
  47. @media screen and (max-width: $minscreenwidth) {
  48. .graph {
  49. height: 60vh;
  50. }
  51. }