Files
gsfdc/demo-dify/dify/web/app/components/base/simple-pie-chart/index.module.css
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

34 lines
895 B
CSS

@property --simple-pie-chart-percentage {
syntax: '<number>';
inherits: false;
initial-value: 0;
}
.simplePieChart {
border-radius: 50%;
background:
radial-gradient(closest-side, transparent 83%, var(--simple-pie-chart-stroke) 83%),
conic-gradient(
var(--simple-pie-chart-color) calc(var(--simple-pie-chart-percentage) * 1%),
#fff 0
);
animation: reveal var(--simple-pie-chart-duration) cubic-bezier(0.215, 0.61, 0.355, 1);
transition: --simple-pie-chart-percentage 500ms cubic-bezier(0.215, 0.61, 0.355, 1);
box-shadow:
0 0 5px -3px rgb(from var(--simple-pie-chart-color) r g b / 0.1),
0.5px 0.5px 3px 0 rgb(from var(--simple-pie-chart-color) r g b / 0.3);
}
@keyframes reveal {
from {
--simple-pie-chart-percentage: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.simplePieChart {
animation: none;
transition: none;
}
}