treemap.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. :root {
  2. --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
  3. "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  4. --background-color: #2b2d42;
  5. --text-color: #edf2f4;
  6. }
  7. html {
  8. box-sizing: border-box;
  9. }
  10. *,
  11. *:before,
  12. *:after {
  13. box-sizing: inherit;
  14. }
  15. html {
  16. background-color: var(--background-color);
  17. color: var(--text-color);
  18. font-family: var(--font-family);
  19. }
  20. body {
  21. padding: 0;
  22. margin: 0;
  23. }
  24. html,
  25. body {
  26. height: 100%;
  27. width: 100%;
  28. overflow: hidden;
  29. }
  30. body {
  31. display: flex;
  32. flex-direction: column;
  33. }
  34. svg {
  35. vertical-align: middle;
  36. width: 100%;
  37. height: 100%;
  38. max-height: 100vh;
  39. }
  40. main {
  41. flex-grow: 1;
  42. height: 100vh;
  43. padding: 20px;
  44. }
  45. .tooltip {
  46. position: absolute;
  47. z-index: 1070;
  48. border: 2px solid;
  49. border-radius: 5px;
  50. padding: 5px;
  51. white-space: nowrap;
  52. font-size: 0.875rem;
  53. background-color: var(--background-color);
  54. color: var(--text-color);
  55. }
  56. .tooltip-hidden {
  57. visibility: hidden;
  58. opacity: 0;
  59. }
  60. .sidebar {
  61. position: fixed;
  62. top: 0;
  63. left: 0;
  64. right: 0;
  65. display: flex;
  66. flex-direction: row;
  67. font-size: 0.7rem;
  68. align-items: center;
  69. margin: 0 50px;
  70. height: 20px;
  71. }
  72. .size-selectors {
  73. display: flex;
  74. flex-direction: row;
  75. align-items: center;
  76. }
  77. .size-selector {
  78. display: flex;
  79. flex-direction: row;
  80. align-items: center;
  81. justify-content: center;
  82. margin-right: 1rem;
  83. }
  84. .size-selector input {
  85. margin: 0 0.3rem 0 0;
  86. }
  87. .filters {
  88. flex: 1;
  89. display: flex;
  90. flex-direction: row;
  91. align-items: center;
  92. }
  93. .module-filters {
  94. display: flex;
  95. flex-grow: 1;
  96. }
  97. .module-filter {
  98. display: flex;
  99. flex-direction: row;
  100. align-items: center;
  101. justify-content: center;
  102. flex: 1;
  103. }
  104. .module-filter input {
  105. flex: 1;
  106. height: 1rem;
  107. padding: 0.01rem;
  108. font-size: 0.7rem;
  109. margin-left: 0.3rem;
  110. }
  111. .module-filter + .module-filter {
  112. margin-left: 0.5rem;
  113. }