"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| വരി 3: | വരി 3: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: space-between; /* | justify-content: space-between; /* distribute evenly */ | ||
align-items: stretch; /* 🔑 equal height cards */ | |||
gap: 12px; | |||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
| വരി 10: | വരി 11: | ||
/* Each item as clickable card */ | /* Each item as clickable card */ | ||
.district-items a { | .district-items a { | ||
flex: 1 1 calc(25% - 12px); /* 4 | flex: 1 1 calc(25% - 12px); /* 4 per row by default */ | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: #ffffff; | background: #ffffff; | ||
border: 2px solid #0073e6; | border: 2px solid #0073e6; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: 10px; | padding: 15px 10px; | ||
color: #004EC3; | color: #004EC3; | ||
font-size: 1rem; | font-size: 1rem; | ||
| വരി 22: | വരി 23: | ||
box-shadow: 2px 2px 6px rgba(0,0,0,0.08); | box-shadow: 2px 2px 6px rgba(0,0,0,0.08); | ||
transition: all 0.25s ease; | transition: all 0.25s ease; | ||
display: flex; /* 🔑 makes content flexible */ | |||
flex-direction: column; /* keep text stacked */ | |||
justify-content: center; /* center text vertically */ | |||
} | } | ||
| വരി 32: | വരി 36: | ||
border-color: #004ec3; | border-color: #004ec3; | ||
font-weight: bold; | font-weight: bold; | ||
} | |||
/* Subtext (if used) */ | |||
.district-items a small { | |||
display: block; | |||
font-size: 0.85rem; | |||
margin-top: 4px; | |||
color: #555; | |||
} | } | ||
11:25, 30 സെപ്റ്റംബർ 2025-നു നിലവിലുണ്ടായിരുന്ന രൂപം
/* Flex container for items */
.district-items {
display: flex;
flex-wrap: wrap;
justify-content: space-between; /* distribute evenly */
align-items: stretch; /* 🔑 equal height cards */
gap: 12px;
margin-bottom: 20px;
}
/* Each item as clickable card */
.district-items a {
flex: 1 1 calc(25% - 12px); /* 4 per row by default */
box-sizing: border-box;
background: #ffffff;
border: 2px solid #0073e6;
border-radius: 8px;
padding: 15px 10px;
color: #004EC3;
font-size: 1rem;
text-align: center;
text-decoration: none;
box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
transition: all 0.25s ease;
display: flex; /* 🔑 makes content flexible */
flex-direction: column; /* keep text stacked */
justify-content: center; /* center text vertically */
}
/* Hover effect */
.district-items a:hover {
background: #81bffc;
color: #ffffff;
transform: translateY(-2px);
box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
border-color: #004ec3;
font-weight: bold;
}
/* Subtext (if used) */
.district-items a small {
display: block;
font-size: 0.85rem;
margin-top: 4px;
color: #555;
}
/* Responsive: 2 per row on tablets */
@media (max-width: 768px) {
.district-items a {
flex: 1 1 calc(45% - 12px);
font-size: 0.95rem;
}
}
/* Responsive: 1 per row on mobile */
@media (max-width: 480px) {
.district-items a {
flex: 1 1 100%;
font-size: 0.9rem;
}
}