// // circle.scss // :root { --circle-color: #c97a04; /* Default warna lingkaran */ } .circle-container { width: 200px; /* Ukuran lingkaran */ height: 200px; display: flex; text-align: center; 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; // overflow: hidden; .circle-content { min-width: 180px; /* Ukuran lingkaran dalam */ min-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; word-wrap: break-word; /* Break words if too long */ white-space: normal; /* Allow multi-line text */ text-align: center; /* Center text inside the circle */ overflow-wrap: break-word; /* Ensures breaking in modern browsers */ display: block; /* Ensures it respects container size */ max-width: 100%; /* Prevents exceeding the circle size */ } .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; max-width: 100%; } .circle-content .document-count { font-size: 24px; font-weight: bold; margin: 0; max-width: 100%; } .circle-content .document-type { font-size: 14px; margin: 0; max-width: 100%; } .small-circle-container { position: absolute; bottom: -10px; right: -10px; 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 */ z-index: 10; .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; } } } } // .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; // } // }