"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
ദൃശ്യരൂപം
No edit summary |
No edit summary |
||
| വരി 31: | വരി 31: | ||
/* Each item as clickable card */ | /* Each item as clickable card */ | ||
.district- | .district-items a { | ||
flex: 1 1 auto; | flex: 1 1 auto; | ||
min-width: 140px; | min-width: 140px; | ||
| വരി 48: | വരി 48: | ||
/* Hover effect – invert colors */ | /* Hover effect – invert colors */ | ||
.district- | .district-items a:hover { | ||
background: #81bffc; | background: #81bffc; | ||
color: #ffffff; | color: #ffffff; | ||
11:16, 30 സെപ്റ്റംബർ 2025-നു നിലവിലുണ്ടായിരുന്ന രൂപം
/* Container */
.district-container {
width: 94%;
margin: 15px auto;
padding: 20px;
background: linear-gradient(135deg, #f0f7ff, #e6ecff);
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
border:3px solid #ccc;
text-align: center;
}
/* Section title (full width) */
.district-title {
font-size: 1.4rem;
font-weight: bold;
color: #004EC3;
margin: 20px 0 10px 0;
width: 100%;
text-align: center;
}
/* Flex container for items */
.district-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-bottom: 20px;
}
/* Each item as clickable card */
.district-items a {
flex: 1 1 auto;
min-width: 140px;
max-width: 220px;
background: #ffffff;
border: 2px solid #0073e6;
border-radius: 8px;
padding: 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;
}
/* Hover effect – invert colors */
.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;
}
.district-item:hover small {
color: #e6f0ff;
}
.district-list .district-item a:hover {
color: #ffffff;
font-weight:bold;
}
/* Small subtext inside cards */
.district-item small {
display: block;
font-size: 0.85rem;
margin-top: 4px;
color: #555;
}
/* Responsive */
@media (max-width: 768px) {
.district-item {
min-width: 45%;
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.district-item {
min-width: 100%;
font-size: 0.9rem;
}
}