_panel_heatmap.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. padding-left: 10px;
  58. }
  59. .heatmap-legend-values {
  60. display: inline-block;
  61. }
  62. .axis .tick {
  63. text {
  64. fill: $text-color;
  65. color: $text-color;
  66. font-size: $font-size-heatmap-tick;
  67. }
  68. line {
  69. opacity: 0.4;
  70. stroke: $text-color-weak;
  71. }
  72. .domain {
  73. opacity: 0.4;
  74. stroke: $text-color-weak;
  75. }
  76. }
  77. }