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