Skip to content

The Open Standard for Generative UI

837 B
Raw Blame
@use "../../../../cssUtils" as cssUtils;
@use "../cartesian/chartBase" as base;
@use "../../prefix" as brand;

// The mini charts' frame (MiniChartFrame): square, at least 100px each way.
.#{brand.$prefix}-mini-chart {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 100px;
  min-height: 100px;

  > svg {
    display: block;
  }

  &--clickable {
    cursor: pointer;
  }
}

// The dot marking a single-value line mini: hollow, on the surface color.
.#{brand.$prefix}-mini-line-chart-point {
  fill: cssUtils.$background;
}

// Entrance: marks fade in. The whole rule is gated so reduced-motion users
// never sit at the opacity: 0 start.
@media (prefers-reduced-motion: no-preference) {
  .#{brand.$prefix}-mini-chart-mark--animated {
    opacity: 0;
    animation: #{brand.$prefix}-fade-appear 0.6s ease-out forwards;
  }
}