chart.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright 2021-2024 Avaiga Private Limited
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  5. * the License. You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
  10. * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  11. * specific language governing permissions and limitations under the License.
  12. */
  13. /**************************************************************
  14. TAIPY CHART
  15. ***************************************************************/
  16. /*************************************************
  17. OVERRIDES / NORMALIZATION
  18. **************************************************/
  19. .taipy-chart {
  20. border-radius: var(--border-radius);
  21. background-color: var(--color-paper);
  22. box-shadow: var(--box-shadow);
  23. overflow: hidden;
  24. }
  25. .card .taipy-chart {
  26. border-radius: 0;
  27. box-shadow: none;
  28. }
  29. /*************************************************
  30. UTILITY CLASSES
  31. **************************************************/
  32. /* .has-background: keep the original background */
  33. .taipy-chart:not(.has-background) .main-svg {
  34. background: transparent !important;
  35. }
  36. .js-plotly-plot.full-screen {
  37. position: fixed !important;
  38. height: 99vh !important;
  39. width: 99vw !important;
  40. display: block !important;
  41. left: 0;
  42. top: 0;
  43. z-index: 99999;
  44. overflow: hidden;
  45. background-color: var(--color-background);
  46. box-shadow: 10px 5px 5px var(--color-contrast);
  47. transition: left 1s ease, width 1s ease, top 1s ease, height 1s ease;
  48. }