MediaWiki:Vector-2022.css: Difference between revisions
MediaWiki interface page
More actions
mNo edit summary |
Adjusted wikitable padding |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 651: | Line 651: | ||
} | } | ||
/* | /* Wikitable */ | ||
/* Fix Vector-2022 issue that prevents tables from overflowing | |||
while also retaining border-radius styling */ | |||
body:not(.ns-special) .wikitable { | |||
display: inline-block; | |||
max-width: 100%; | |||
overflow-x: auto; | |||
overflow-y: hidden; | |||
background: transparent; | |||
border: none !important; | |||
border-collapse: separate !important; | |||
border-spacing: 0 !important; | |||
border-radius: 10px; | |||
clip-path: inset(0 round 10px); | |||
th { | |||
padding-top: 0.5em; | |||
padding-bottom: 0.5em; | |||
padding-left: 0.75em; | |||
} | |||
td { | |||
padding: 0.25em 0.75em; | |||
} | } | ||
} | } | ||