Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

189 wiersze
3.2 KiB

  1. :root {
  2. --charts-label-color: #313b44;
  3. --charts-axis-line-color: #f4f5f6;
  4. --charts-tooltip-title: var(--charts-label-color);
  5. --charts-tooltip-label: var(--charts-label-color);
  6. --charts-tooltip-value: #192734;
  7. --charts-tooltip-bg: #ffffff;
  8. --charts-stroke-width: 2px;
  9. --charts-dataset-circle-stroke: #ffffff;
  10. --charts-dataset-circle-stroke-width: var(--charts-stroke-width);
  11. --charts-legend-label: var(--charts-label-color);
  12. --charts-legend-value: var(--charts-label-color);
  13. }
  14. .chart-container {
  15. position: relative; /* for absolutely positioned tooltip */
  16. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
  17. "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
  18. "Helvetica Neue", sans-serif;
  19. .axis,
  20. .chart-label {
  21. fill: var(--charts-label-color);
  22. line {
  23. stroke: var(--charts-axis-line-color);
  24. }
  25. }
  26. .dataset-units {
  27. circle {
  28. stroke: var(--charts-dataset-circle-stroke);
  29. stroke-width: var(--charts-dataset-circle-stroke-width);
  30. }
  31. path {
  32. fill: none;
  33. stroke-opacity: 1;
  34. stroke-width: var(--charts-stroke-width);
  35. }
  36. }
  37. .dataset-path {
  38. stroke-width: var(--charts-stroke-width);
  39. }
  40. .path-group {
  41. path {
  42. fill: none;
  43. stroke-opacity: 1;
  44. stroke-width: var(--charts-stroke-width);
  45. }
  46. }
  47. line.dashed {
  48. stroke-dasharray: 5, 3;
  49. }
  50. .axis-line {
  51. .specific-value {
  52. text-anchor: start;
  53. }
  54. .y-line {
  55. text-anchor: end;
  56. }
  57. .x-line {
  58. text-anchor: middle;
  59. }
  60. }
  61. .legend-dataset-label {
  62. fill: var(--charts-legend-label);
  63. font-weight: 600;
  64. }
  65. .legend-dataset-value {
  66. fill: var(--charts-legend-value);
  67. }
  68. }
  69. .graph-svg-tip {
  70. position: absolute;
  71. z-index: 99999;
  72. padding: 10px;
  73. font-size: 12px;
  74. text-align: center;
  75. background: var(--charts-tooltip-bg);
  76. box-shadow: 0px 1px 4px rgba(17, 43, 66, 0.1),
  77. 0px 2px 6px rgba(17, 43, 66, 0.08),
  78. 0px 40px 30px -30px rgba(17, 43, 66, 0.1);
  79. border-radius: 6px;
  80. ul {
  81. padding-left: 0;
  82. display: flex;
  83. }
  84. ol {
  85. padding-left: 0;
  86. display: flex;
  87. }
  88. ul.data-point-list {
  89. li {
  90. min-width: 90px;
  91. font-weight: 600;
  92. }
  93. }
  94. .svg-pointer {
  95. position: absolute;
  96. height: 12px;
  97. width: 12px;
  98. border-radius: 2px;
  99. background: var(--charts-tooltip-bg);
  100. transform: rotate(45deg);
  101. margin-top: -7px;
  102. margin-left: -6px;
  103. }
  104. &.comparison {
  105. text-align: left;
  106. padding: 0px;
  107. pointer-events: none;
  108. .title {
  109. display: block;
  110. padding: 16px;
  111. margin: 0;
  112. color: var(--charts-tooltip-title);
  113. font-weight: 600;
  114. line-height: 1;
  115. pointer-events: none;
  116. text-transform: uppercase;
  117. strong {
  118. color: var(--charts-tooltip-value);
  119. }
  120. }
  121. ul {
  122. margin: 0;
  123. white-space: nowrap;
  124. list-style: none;
  125. &.tooltip-grid {
  126. display: grid;
  127. grid-template-columns: repeat(4, minmax(0, 1fr));
  128. gap: 5px;
  129. }
  130. }
  131. li {
  132. display: inline-block;
  133. display: flex;
  134. flex-direction: row;
  135. font-weight: 600;
  136. line-height: 1;
  137. padding: 5px 15px 15px 15px;
  138. .tooltip-legend {
  139. height: 12px;
  140. width: 12px;
  141. margin-right: 8px;
  142. border-radius: 2px;
  143. }
  144. .tooltip-label {
  145. margin-top: 4px;
  146. font-size: 11px;
  147. line-height: 1.25;
  148. max-width: 150px;
  149. white-space: normal;
  150. color: var(--charts-tooltip-label);
  151. }
  152. .tooltip-value {
  153. color: var(--charts-tooltip-value);
  154. }
  155. }
  156. }
  157. }