Template:Home/styles.css: Difference between revisions
Style homepage feature actions with MediaWiki design tokens |
Restyle homepage feature to match classic MediaWiki |
||
| Line 12: | Line 12: | ||
display:grid; | display:grid; | ||
grid-template-columns:1fr; | grid-template-columns:1fr; | ||
gap: | gap:12px; | ||
align-items: | align-items:start; | ||
margin:12px 0 16px; | margin:12px 0 16px; | ||
padding: | padding:12px; | ||
border:1px solid # | border:1px solid #a2a9b1; | ||
background:#fff; | |||
background:# | |||
} | } | ||
.featured-media .mw-file-description{ display:block; } | .featured-media .mw-file-description{ display:block; } | ||
| Line 26: | Line 25: | ||
height:auto; | height:auto; | ||
aspect-ratio:16 / 10; | aspect-ratio:16 / 10; | ||
border | border:1px solid #c8ccd1; | ||
object-fit:cover; | object-fit:cover; | ||
} | } | ||
.featured-kicker{ | .featured-kicker{ | ||
color:# | padding-bottom:2px; | ||
font- | border-bottom:1px solid #a2a9b1; | ||
font- | color:#202122; | ||
font-family:'Linux Libertine','Georgia','Times',serif; | |||
font-size:1.2rem; | |||
font-weight:400; | |||
line-height:1.3; | |||
} | } | ||
.featured-title{ | .featured-title{ | ||
margin-top: | margin-top:8px; | ||
font-size:1. | font-size:1.1rem; | ||
font-weight:700; | font-weight:700; | ||
line-height:1. | line-height:1.4; | ||
} | } | ||
.featured-title a{ color: | .featured-title a{ color:#36c; text-decoration:none; } | ||
.featured-title a:hover{ text-decoration:underline; } | .featured-title a:hover{ text-decoration:underline; } | ||
.featured-text{ margin-top: | .featured-text{ margin-top:6px; color:#202122; line-height:1.5; } | ||
.featured- | .featured-links{ margin-top:8px; font-size:0.875rem; text-align:right; } | ||
} | |||
@media (min-width:720px){ | @media (min-width:720px){ | ||
.featured{ grid-template-columns:minmax( | .featured{ grid-template-columns:minmax(180px, 30%) minmax(0, 1fr); } | ||
} | } | ||