"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
ദൃശ്യരൂപം
No edit summary |
No edit summary |
||
| വരി 7: | വരി 7: | ||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 6px 12px rgba(0,0,0,0.2); | box-shadow: 0 6px 12px rgba(0,0,0,0.2); | ||
border:3px solid #ccc; | border: 3px solid #ccc; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| വരി 26: | വരി 26: | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: center; | justify-content: center; | ||
gap: 12px; | gap: 12px; /* handles spacing, no need for margins */ | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
| വരി 54: | വരി 54: | ||
box-shadow: 3px 3px 10px rgba(0,0,0,0.15); | box-shadow: 3px 3px 10px rgba(0,0,0,0.15); | ||
border-color: #004ec3; | border-color: #004ec3; | ||
font-weight: bold; | |||
} | } | ||
/* Small subtext inside cards */ | /* Small subtext inside cards */ | ||
.district- | .district-items a small { | ||
display: block; | display: block; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
| വരി 73: | വരി 67: | ||
/* Responsive */ | /* Responsive */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.district- | .district-items a { | ||
min-width: 45%; | min-width: 45%; | ||
font-size: 0.95rem; | font-size: 0.95rem; | ||
| വരി 80: | വരി 74: | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.district- | .district-items a { | ||
min-width: 100%; | min-width: 100%; | ||
font-size: 0.9rem; | font-size: 0.9rem; | ||
} | } | ||
} | } | ||
11:23, 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; /* handles spacing, no need for margins */
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;
font-weight: bold;
}
/* Small subtext inside cards */
.district-items a small {
display: block;
font-size: 0.85rem;
margin-top: 4px;
color: #555;
}
/* Responsive */
@media (max-width: 768px) {
.district-items a {
min-width: 45%;
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.district-items a {
min-width: 100%;
font-size: 0.9rem;
}
}