"മീഡിയവിക്കി:Common.css" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| വരി 614: | വരി 614: | ||
top: -50px; | top: -50px; | ||
right: 10px; | right: 10px; | ||
} | |||
/* ========================================================= | |||
MOBILE OPTIMIZATION LAYER | |||
========================================================= */ | |||
/* Improve base readability on small screens */ | |||
@media (max-width: 768px) { | |||
html, body { | |||
font-size: 1em !important; | |||
} | |||
p { | |||
font-size: 1em; | |||
line-height: 1.7; | |||
} | |||
#firstHeading { | |||
font-size: 1.5em !important; | |||
padding: 12px !important; | |||
} | |||
/* Disable problematic floats */ | |||
.infobox, | |||
.messagebox.small-talk, | |||
.location { | |||
float: none !important; | |||
margin: 0.5em auto !important; | |||
width: 100% !important; | |||
position: static !important; | |||
} | |||
/* Navigation boxes */ | |||
.navbox, | |||
.navbox-inner, | |||
.navbox-subgroup { | |||
font-size: 95%; | |||
} | |||
/* Tables: prevent overflow */ | |||
table.wikitable, | |||
table.prettytable, | |||
table.infobox { | |||
display: block; | |||
overflow-x: auto; | |||
width: 100% !important; | |||
} | |||
/* Remove fixed widths */ | |||
.messagebox { | |||
width: 100% !important; | |||
} | |||
/* Hide non-essential elements on mobile */ | |||
#t-upload { | |||
display: none !important; | |||
} | |||
} | |||
/* ========================================================= | |||
WIKIMEDIA COMMONS GALLERY (RESPONSIVE) | |||
========================================================= */ | |||
.commons-gallery { | |||
width: 100%; | |||
margin: 1em 0; | |||
} | |||
.commons-gallery-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); | |||
gap: 8px; | |||
} | |||
.commons-gallery-item { | |||
margin: 0; | |||
} | |||
.commons-gallery-item img { | |||
width: 100%; | |||
height: auto; | |||
display: block; | |||
border-radius: 4px; | |||
} | |||
.commons-gallery-item figcaption { | |||
font-size: 0.75em; | |||
line-height: 1.3; | |||
text-align: center; | |||
padding-top: 4px; | |||
} | |||
/* Extra tightening for very small screens */ | |||
@media (max-width: 480px) { | |||
.commons-gallery-grid { | |||
gap: 6px; | |||
} | |||
.commons-gallery-item figcaption { | |||
font-size: 0.7em; | |||
} | |||
div.firstBoxes { | |||
width: 100% !important; | |||
float: none !important; | |||
min-height: auto; | |||
} | |||
} | } | ||