Chart.css 811 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * DOM element rendering detection
  3. * https://davidwalsh.name/detect-node-insertion
  4. */
  5. @keyframes chartjs-render-animation {
  6. from { opacity: 0.99; }
  7. to { opacity: 1; }
  8. }
  9. .chartjs-render-monitor {
  10. animation: chartjs-render-animation 0.001s;
  11. }
  12. /*
  13. * DOM element resizing detection
  14. * https://github.com/marcj/css-element-queries
  15. */
  16. .chartjs-size-monitor,
  17. .chartjs-size-monitor-expand,
  18. .chartjs-size-monitor-shrink {
  19. position: absolute;
  20. direction: ltr;
  21. left: 0;
  22. top: 0;
  23. right: 0;
  24. bottom: 0;
  25. overflow: hidden;
  26. pointer-events: none;
  27. visibility: hidden;
  28. z-index: -1;
  29. }
  30. .chartjs-size-monitor-expand > div {
  31. position: absolute;
  32. width: 1000000px;
  33. height: 1000000px;
  34. left: 0;
  35. top: 0;
  36. }
  37. .chartjs-size-monitor-shrink > div {
  38. position: absolute;
  39. width: 200%;
  40. height: 200%;
  41. left: 0;
  42. top: 0;
  43. }