"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| വരി 1: | വരി 1: | ||
/* Flex container for items */ | /* Flex container for items */ | ||
.district-items { | .district-items { | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
justify-content: | justify-content: space-between; /* even distribution */ | ||
gap: 12px; | gap: 12px; /* consistent spacing */ | ||
margin-bottom: 20px; | margin-bottom: 20px; | ||
} | } | ||
| വരി 32: | വരി 10: | ||
/* Each item as clickable card */ | /* Each item as clickable card */ | ||
.district-items a { | .district-items a { | ||
flex: 1 1 | flex: 1 1 calc(25% - 12px); /* 4 items per row by default */ | ||
box-sizing: border-box; | |||
background: #ffffff; | background: #ffffff; | ||
border: 2px solid #0073e6; | border: 2px solid #0073e6; | ||
| വരി 47: | വരി 24: | ||
} | } | ||
/* Hover effect | /* Hover effect */ | ||
.district-items a:hover { | .district-items a:hover { | ||
background: #81bffc; | background: #81bffc; | ||
| വരി 57: | വരി 34: | ||
} | } | ||
/* | /* Responsive: 2 per row on tablets */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.district-items a { | .district-items a { | ||
flex: 1 1 calc(45% - 12px); | |||
font-size: 0.95rem; | font-size: 0.95rem; | ||
} | } | ||
} | } | ||
/* Responsive: 1 per row on mobile */ | |||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.district-items a { | .district-items a { | ||
flex: 1 1 100%; | |||
font-size: 0.9rem; | font-size: 0.9rem; | ||
} | } | ||
} | } | ||