_panel_heatmap.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. $font-size-heatmap-tick: 11px;
  2. .heatmap-canvas-wrapper {
  3. // position: relative;
  4. cursor: crosshair;
  5. }
  6. .heatmap-panel {
  7. position: relative;
  8. .axis .tick {
  9. text {
  10. fill: $text-color;
  11. color: $text-color;
  12. font-size: $font-size-heatmap-tick;
  13. }
  14. line {
  15. opacity: 0.4;
  16. stroke: $text-color-weak;
  17. }
  18. }
  19. // This hack prevents mouseenter/mouseleave events get fired too often
  20. svg {
  21. pointer-events: none;
  22. rect {
  23. pointer-events: visiblePainted;
  24. }
  25. }
  26. }
  27. .heatmap-tooltip {
  28. white-space: nowrap;
  29. font-size: $font-size-sm;
  30. background-color: $graph-tooltip-bg;
  31. color: $text-color;
  32. }
  33. .heatmap-histogram rect {
  34. fill: $text-color-weak;
  35. }
  36. .heatmap-crosshair {
  37. line {
  38. stroke: darken($red, 15%);
  39. stroke-width: 1;
  40. }
  41. }
  42. .heatmap-selection {
  43. stroke-width: 1;
  44. fill: rgba(102, 102, 102, 0.4);
  45. stroke: rgba(102, 102, 102, 0.8);
  46. }
  47. .heatmap-legend-wrapper {
  48. @include clearfix();
  49. margin: 0 $spacer;
  50. padding-top: 4px;
  51. svg {
  52. width: 100%;
  53. max-width: 300px;
  54. height: 18px;
  55. float: left;
  56. white-space: nowrap;
  57. }
  58. .heatmap-legend-values {
  59. display: inline-block;
  60. }
  61. .axis .tick {
  62. text {
  63. fill: $text-color;
  64. color: $text-color;
  65. font-size: $font-size-heatmap-tick;
  66. }
  67. line {
  68. opacity: 0.4;
  69. stroke: $text-color-weak;
  70. }
  71. .domain {
  72. opacity: 0.4;
  73. stroke: $text-color-weak;
  74. }
  75. }
  76. }