Files
sibedas/resources/scss/components/_circle.scss
Firman Herdiansyah 99e99fa2e6 Update Dashboard Layout
2025-02-05 13:36:33 +07:00

228 lines
5.4 KiB
SCSS

:root {
--circle-color: #c97a04; /* Default warna lingkaran */
}
.circle-container {
width: 200px; /* Ukuran lingkaran */
height: 200px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--circle-color);; /* Warna lingkaran utama */
border-radius: 50%; /* Membuat lingkaran */
border: 6px solid white; /* Border putih */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek bayangan */
position: absolute;
.circle-content {
width: 180px; /* Ukuran lingkaran dalam */
height: 180px;
background-color: var(--circle-color); /* Warna lingkaran dalam */
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: white; /* Warna teks */
border: 4px solid white; /* Border lingkaran dalam */
padding: 10px;
box-sizing: border-box;
}
.circle-content .document-title {
font-size: 14px;
font-weight: bold;
margin: 0 5px;
line-height: 1.5;
}
.circle-content .document-total {
font-size: 14px;
font-weight: bold;
color: #000000; /* Warna biru gelap untuk total */
background-color: white; /* Background putih untuk total */
padding: 0 7px;
border-radius: 10px;
margin: 0;
}
.circle-content .document-count {
font-size: 24px;
font-weight: bold;
margin: 0;
}
.circle-content .document-type {
font-size: 14px;
margin: 0;
}
.small-circle-container {
position: absolute;
bottom: 0;
right: 0;
width: 50px; /* Ukuran lingkaran kecil */
height: 50px;
background-color: #2d4f90; /* Warna lingkaran kecil */
border-radius: 50%; /* Membuat lingkaran */
// border: 4px solid white; /* Border putih */
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek bayangan */
.small-circle-content{
width: 45px;
height: 45px;
background-color: #2d4f90; /* Warna lingkaran kecil */
border-radius: 50%; /* Membuat lingkaran */
border: 2px solid white; /* Border putih */
display: flex;
align-items: center;
justify-content: center;
.small-percentage {
font-size: 10px;
font-weight: bold;
color: white; /* Warna teks */
margin: 0;
}
}
}
}
.arrow-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; /* Agar SVG tidak menghalangi interaksi */
}
// .circle-container {
// width: 20vw; /* Responsif menggunakan unit viewport */
// height: 20vw; /* Pastikan tinggi sama dengan lebar */
// display: flex;
// align-items: center;
// justify-content: center;
// background-color: var(--circle-color); /* Warna lingkaran utama */
// border-radius: 50%; /* Membuat lingkaran */
// border: 0.4vw solid white; /* Border putih responsif */
// box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek bayangan */
// position: relative;
// min-width: 150px; /* Ukuran minimum untuk layar kecil */
// min-height: 150px;
// }
// .circle-content {
// width: 85%; /* 85% dari ukuran lingkaran luar */
// height: 85%;
// background-color: var(--circle-color); /* Warna lingkaran dalam */
// border-radius: 50%;
// display: flex;
// flex-direction: column;
// align-items: center;
// justify-content: center;
// text-align: center;
// color: white; /* Warna teks */
// border: 0.4vw solid white; /* Border lingkaran dalam responsif */
// padding: 10px;
// box-sizing: border-box;
// }
// .circle-content .document-title {
// font-size: 1.2vw; /* Font responsif berbasis viewport */
// font-weight: bold;
// margin: 0 10px;
// line-height: 1.5;
// }
// .circle-content .document-total {
// font-size: 1.2vw; /* Font responsif */
// font-weight: bold;
// color: #000000; /* Warna biru gelap untuk total */
// background-color: white; /* Background putih untuk total */
// padding: 0.5vw 0.2vw;
// border-radius: 10px;
// margin: 5px 0;
// }
// .circle-content .document-count {
// font-size: 2vw; /* Font responsif besar */
// font-weight: bold;
// margin: 0;
// }
// .circle-content .document-type {
// font-size: 1.4vw;
// margin: 0;
// }
// /* Media Query untuk layar lebih kecil (tablet) */
// @media (max-width: 768px) {
// .circle-container {
// width: 40vw;
// height: 40vw;
// border-width: 2vw; /* Border lebih besar di layar kecil */
// }
// .circle-content {
// width: 90%;
// height: 90%;
// border-width: 1vw;
// }
// .circle-content .document-title {
// font-size: 3vw;
// }
// .circle-content .document-total {
// font-size: 2.5vw;
// padding: 1vw;
// }
// .circle-content .document-count {
// font-size: 5vw;
// }
// .circle-content .document-type {
// font-size: 3vw;
// }
// }
// /* Media Query untuk layar sangat kecil (ponsel) */
// @media (max-width: 480px) {
// .circle-container {
// width: 50vw;
// height: 50vw;
// border-width: 3vw;
// }
// .circle-content {
// width: 95%;
// height: 95%;
// }
// .circle-content .document-title {
// font-size: 4vw;
// }
// .circle-content .document-total {
// font-size: 3.5vw;
// }
// .circle-content .document-count {
// font-size: 6vw;
// }
// .circle-content .document-type {
// font-size: 4vw;
// }
// }