index.css 785 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. .background2-canvas {
  6. position: absolute;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 100%;
  11. pointer-events: none;
  12. z-index: -1;
  13. }
  14. /* Ensure smooth rendering */
  15. .background2-canvas {
  16. image-rendering: -webkit-optimize-contrast;
  17. image-rendering: -moz-crisp-edges;
  18. image-rendering: crisp-edges;
  19. image-rendering: pixelated;
  20. }
  21. /* Dark mode specific adjustments */
  22. [data-theme='dark'] .background2-canvas {
  23. opacity: 0.9;
  24. }
  25. /* Light mode specific adjustments */
  26. [data-theme='light'] .background2-canvas {
  27. opacity: 0.8;
  28. }
  29. /* Animation performance optimization */
  30. .background2-canvas {
  31. will-change: transform;
  32. transform: translateZ(0);
  33. backface-visibility: hidden;
  34. }