MediaWiki:Gadget-home-articles.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ===== GTW Articles ===== */
.gtw-articles {
display:grid;
gap:14px;
grid-template-columns:1fr;
}
@media (min-width: 700px) {
.gtw-articles {
grid-template-columns: repeat(2,minmax(0,1fr));
}
}
@media (min-width: 1050px) {
.gtw-articles {
grid-template-columns: repeat(3,minmax(0,1fr));
}
}
.gtw-articles__card{
border-radius:16px;
overflow:hidden;
background:rgba(255,255,255,0.06);
border:1px solid rgba(255,255,255,0.10);
display:flex;
flex-direction:column;
height:100%;
}
.gtw-articles__thumb{
position:relative;
overflow:hidden;
background:rgba(255,255,255,0.04);
border-bottom:1px solid rgba(255,255,255,0.08);
aspect-ratio: 985 / 256;
}
.gtw-articles__thumb img{
width:100%;
height:100%;
display:block;
object-fit:cover;
object-position:center;
}
.gtw-articles__body{
padding:14px;
display:flex;
flex-direction:column;
gap:10px;
flex:1 1 auto;
}
.gtw-articles__meta{
margin:0;
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
font-size:0.86rem;
line-height:1.2;
opacity:0.78;
}
.gtw-articles__date{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.gtw-articles__kind{
white-space:nowrap;
flex:0 0 auto;
opacity:0.95;
padding:3px 8px;
border-radius:999px;
border:1px solid rgba(255,255,255,0.14);
background:rgba(255,255,255,0.04);
}
.gtw-articles__title{
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;
overflow:hidden;
margin:0;
}
.gtw-articles__blurb{
display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:3;
overflow:hidden;
margin:0;
}