MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
} | } | ||
/* | /* Table styling */ | ||
table | .welcome-table { | ||
width: 100%; | |||
background: #f5f5f5; /* Very light grey, moved from outer table */ | |||
margin-top: 1.2em; /* Moved from outer table */ | |||
border: 1px solid #ccc; /* Moved from outer table */ | |||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
/* | /* Inner table styling (no longer needed, as there's no nested table) */ | ||
/* Text column */ | |||
padding: 0 !important; /* | .welcome-table td { | ||
margin: 0 !important; /* | padding: 0 !important; /* No padding for text cells */ | ||
line-height: 1 !important; /* | margin: 0 !important; /* No margins */ | ||
line-height: 1 !important; /* Tight line spacing */ | |||
vertical-align: top; | |||
} | } | ||
/* Image | /* Image column */ | ||
.welcome-table td[style*="width:30%"] { | |||
vertical-align: middle; /* Center | vertical-align: middle; /* Center image vertically */ | ||
padding-right: 2%; /* Match your original image padding */ | |||
padding-top: 1%; | |||
padding-bottom: 1%; | |||
} | } | ||
/* Image styling */ | /* Image styling */ | ||
.welcome-table td[style*="width:30%"] img { | |||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
| Line 44: | Line 38: | ||
/* Mobile responsiveness */ | /* Mobile responsiveness */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.welcome-table, | |||
.welcome-table tr, | |||
.welcome-table td { | |||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; | ||
} | } | ||
.welcome-table td[style*="width:30%"] { | |||
display: block !important; | display: block !important; | ||
width: 100% !important; | width: 100% !important; | ||
vertical-align: top; /* | vertical-align: top; /* Stack image on top on mobile */ | ||
padding-right: 2%; | padding-right: 2%; | ||
padding-top: 1%; | padding-top: 1%; | ||
padding-bottom: 1%; | padding-bottom: 1%; | ||
} | } | ||
.welcome-table td[style*="width:30%"] img { | |||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||