"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
ദൃശ്യരൂപം
No edit summary |
No edit summary |
||
| വരി 1: | വരി 1: | ||
/* Container */ | /* Container */ | ||
.district- | .district-container { | ||
width: 100%; | width: 100%; | ||
margin: 10px auto; | margin: 10px auto; | ||
| വരി 10: | വരി 10: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.district-list { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 12px; | |||
justify-content: center; | |||
} | |||
/* Section title */ | /* Section title */ | ||
.district-list .district-title { | .district-list .district-title { | ||
17:04, 29 സെപ്റ്റംബർ 2025-നു നിലവിലുണ്ടായിരുന്ന രൂപം
/* Container */
.district-container {
width: 100%;
margin: 10px auto;
padding: 15px;
background: linear-gradient(135deg, #f0f9ff, #ffffff);
border-radius: 10px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
border: 3px solid #7BBCE5;
text-align: center;
}
.district-list {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
}
/* Section title */
.district-list .district-title {
font-size: 1.3rem;
font-weight: bold;
color: #004ec3;
margin: 15px 0 10px 0;
}
/* Items container */
.district-list .district-items {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin: 10px 0 20px 0;
}
/* Each item */
.district-list .district-item {
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;
box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
transition: all 0.25s ease;
cursor: pointer;
}
/* Hover effect – invert colors */
.district-list .district-item:hover {
background: #0073e6;
color: #ffffff;
transform: translateY(-2px);
box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
border-color: #004ec3;
}
/* Keep small text visible in inverted mode */
.district-list .district-item:hover small {
color: #e6f0ff;
}
/* Smaller text for sub-labels */
.district-list .district-item small {
display: block;
font-size: 0.85rem;
color: #555;
margin-top: 4px;
}
/* Responsive */
@media (max-width: 768px) {
.district-list .district-item {
min-width: 45%;
font-size: 0.95rem;
}
}
@media (max-width: 480px) {
.district-list .district-item {
min-width: 100%;
font-size: 0.9rem;
}
}