"ഫലകം:Listofdistricts2/styles.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

765 ബൈറ്റുകൾ നീക്കംചെയ്തിരിക്കുന്നു ,  30 സെപ്റ്റംബർ
തിരുത്തലിനു സംഗ്രഹമില്ല
No edit summary
No edit summary
വരി 1: വരി 1:
/* Flex container for items */
.district-items p {
.district-items {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
  justify-content: space-between; /* distribute evenly */
   gap: 12px;
   gap: 12px;
   margin-bottom: 20px;
   margin: 0; /* remove default paragraph spacing */
}
}


/* Each link/item inside district-items */
.district-items p a {
.district-items a,
   flex: 1 1 calc(25% - 12px); /* 4 per row */
.district-items span, /* in case MediaWiki uses spans */
.district-items div { /* fallback for other wrappers */
   flex: 1 1 calc(25% - 12px); /* 4 per row on desktop */
   box-sizing: border-box;
   box-sizing: border-box;
   background: #ffffff;
   background: #ffffff;
വരി 18: വരി 13:
   border-radius: 8px;
   border-radius: 8px;
   padding: 15px 10px;
   padding: 15px 10px;
  text-align: center;
  text-decoration: none;
   color: #004EC3;
   color: #004EC3;
   font-size: 1rem;
   font-size: 1rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
   display: flex;
   display: flex;
  flex-direction: column;
   justify-content: center;
   justify-content: center;
  align-items: center;
   transition: all 0.25s ease;
   transition: all 0.25s ease;
}
}


/* Hover effect */
.district-items p a:hover {
.district-items a:hover,
.district-items span:hover,
.district-items div:hover {
   background: #81bffc;
   background: #81bffc;
   color: #ffffff;
   color: #ffffff;
   transform: translateY(-2px);
   transform: translateY(-2px);
  box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
   border-color: #004ec3;
   border-color: #004ec3;
   font-weight: bold;
   font-weight: bold;
}
}


/* Subtext (if used) */
/* Responsive */
.district-items a small,
.district-items span small,
.district-items div small {
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
  color: #555;
}
 
/* Responsive: 2 per row on tablets */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .district-items a,
   .district-items p a {
  .district-items span,
  .district-items div {
     flex: 1 1 calc(45% - 12px);
     flex: 1 1 calc(45% - 12px);
    font-size: 0.95rem;
   }
   }
}
}


/* Responsive: 1 per row on mobile */
@media (max-width: 480px) {
@media (max-width: 480px) {
   .district-items a,
   .district-items p a {
  .district-items span,
  .district-items div {
     flex: 1 1 100%;
     flex: 1 1 100%;
    font-size: 0.9rem;
   }
   }
}
}
"https://schoolwiki.in/പ്രത്യേകം:മൊബൈൽവ്യത്യാസം/2866128" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്