MediaWiki:Gadget-TablePreviews.css

/* */

.preview { height: 100px; max-height: 100px; overflow: hidden; position: relative; cursor: pointer; }

.nopreview { height: 100px; max-height: 100px; overflow: auto; position: relative; width: auto; }

.hideTable { text-align: center; padding-left: 50%; }

table.preview:after { content: "Show More"; font-family: sans-serif; text-align: center; display: flex; justify-content: center; align-items: flex-end; position: absolute; z-index: 1; bottom: 0; left: 0; pointer-events: none; background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 90%); width: 100%; height: 50%; cursor: pointer; }

table#showMore.nopreview:after { content: "Hide"; font-family: sans-serif; text-align: center; display: flex; justify-content: center; align-items: flex-end; position: absolute; z-index: 1; bottom: auto; left: 0; pointer-events: all; background-image: none; cursor: pointer; width: 100%; }

table.preview tr:nth-child(n+4) { display: none; }