"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| (ഒരേ ഉപയോക്താവ് ചെയ്ത ഇടയ്ക്കുള്ള 25 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല) | |||
| വരി 1: | വരി 1: | ||
.district-container { | |||
.district-container | background: linear-gradient(135deg, #f0f7ff, #ffffff); | ||
border: 3px solid #ccc; /* blue border */ | |||
border-radius: 12px; /* rounded corners */ | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* subtle shadow */ | |||
background: linear-gradient(135deg, # | padding: 20px; /* spacing inside */ | ||
border-radius: | background-color: #ffffff; /* white background */ | ||
box-shadow: 0 | margin: 10px auto; /* center horizontally */ | ||
max-width: 1200px; | |||
width: 96%; | |||
} | |||
.district-title { | |||
text-align: center; | text-align: center; | ||
color: #004EC3; | |||
font-size: 1.5rem; | |||
font-size: 1. | |||
font-weight: bold; | font-weight: bold; | ||
margin: 20px 0 15px 0; | |||
border-bottom: 2px solid #81bffc; /* subtle underline */ | |||
padding-bottom: 5px; | |||
} | } | ||
.district-items p { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 12px; | |||
gap: | margin: 0; /* remove default paragraph spacing */ | ||
margin: | |||
} | } | ||
.district-items p a { | |||
.district- | flex: 1 1 calc(12% - 10px); /* 4 per row */ | ||
flex: 1 1 | box-sizing: border-box; | ||
background: #ffffff; | background: #ffffff; | ||
border: 2px solid #0073e6; | border: 2px solid #0073e6; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: | padding: 5px 8px; | ||
text-align: center; | text-align: center; | ||
text-decoration: none; | |||
color: #004EC3; | |||
font-size: 0.9rem; | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
transition: all 0.25s ease; | transition: all 0.25s ease; | ||
} | } | ||
.district-items p a:hover { | |||
background: #81bffc; | |||
background: # | |||
color: #ffffff; | color: #ffffff; | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
border-color: #004ec3; | border-color: #004ec3; | ||
font-weight: bold; | |||
font- | |||
} | } | ||
/* Responsive */ | /* Responsive */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.district- | .district-items p a { | ||
flex: 1 1 calc(45% - 12px); | |||
} | } | ||
} | } | ||
@media (max-width: 480px) { | @media (max-width: 480px) { | ||
.district- | .district-items p a { | ||
flex: 1 1 100%; | |||
} | } | ||
} | } | ||