25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

117 lines
3.7 KiB

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