body {
margin: 0;
padding: 0;
font-family: sans-serif;
display: flex;
justify-content: center;
height: 100vh;
background: #0d0c2d;
}
.container {
display: grid;
grid-template-columns: repeat(1, 80px);
grid-gap: 10px;
margin: auto 0;
}
@media (min-width: 420px) and (max-width: 659px) {
.container {
grid-template-columns: repeat(2, 80px);
}
}
@media (min-width: 660px) and (max-width: 899px) {
.container {
grid-template-columns: repeat(3, 80px);
}
}
@media (min-width: 900px) {
.container {
grid-template-columns: repeat(4, 80px);
}
}
.container .box {
width: 100%;
}
.container .box h2 {
display: block;
text-align: center;
color: #fff;
}
.container .box .chart {
position: relative;
width: 100%;
height: 100%;
text-align: center;
font-size: 40px;
line-height: 120px;
height: 80px;
color: #fff;
}
.container .box canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
width: 100%;
}
$(function() {
$('.chart').easyPieChart({
size: 80,
barColor: "#17d3e6",
scaleLength: 0,
lineWidth: 15,
trackColor: "#373737",
lineCap: "circle",
animate: 2000,
});
});
Я хочу сделать круг ближе, но вроде не получается. Я просто пробую все на этом CSS и вроде ничего не работает. Кто-нибудь знает, как это решить? что мне изменить, чтобы круг стал ближе? Для промежутка между кругами A и B и C и D.
UPDATE размеры js и css уже были изменены, но линия шире, какое решение?