recreate project
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
.circle-box {
|
||||
position: relative;
|
||||
width: 220px;
|
||||
height: 220px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 16px;
|
||||
color: #fff;
|
||||
font-size: 0.95rem;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
|
||||
transition: transform 0.3s ease;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
z-index: 1;
|
||||
/* Allow Bootstrap bg-* utilities to control color per card */
|
||||
/* background-color intentionally not set here */
|
||||
}
|
||||
|
||||
.circle-box:hover {
|
||||
transform: scale(1.07);
|
||||
}
|
||||
|
||||
/* Ensure readable text even if Bootstrap text-dark was used in markup */
|
||||
/* Respect text utility classes (let text-dark render dark text when present) */
|
||||
|
||||
/* Headings and subtext inside the circle */
|
||||
.circle-box h4 { color: #fff; margin-bottom: .25rem; }
|
||||
.circle-box small { color: rgba(255,255,255,0.9); }
|
||||
|
||||
.hover-popup {
|
||||
display: none;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background-color: white;
|
||||
color: black;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
width: 220px;
|
||||
z-index: 9999; /* make sure it's above all */
|
||||
font-size: 0.85rem;
|
||||
margin-top: 10px;
|
||||
text-align: left;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.circle-box:hover .hover-popup {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 992px) {
|
||||
.circle-box { width: 160px; height: 160px; }
|
||||
.hover-popup { width: 200px; }
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.circle-box { width: 120px; height: 120px; font-size: 0.85rem; }
|
||||
.hover-popup { width: 180px; font-size: 0.8rem; }
|
||||
}
|
||||
Reference in New Issue
Block a user