.
This commit is contained in:
@@ -33,13 +33,18 @@
|
||||
#theme-toggle{margin-left:0.5rem}
|
||||
/* Top Trumps card styles */
|
||||
.toptrump-card{max-width:320px;border-radius:10px;overflow:hidden;background:var(--card-bg);color:var(--text);box-shadow:0 6px 18px rgba(0,0,0,0.12);border:1px solid rgba(0,0,0,0.06)}
|
||||
.toptrump-card .hero-image{height:180px;background-size:cover;background-position:center}
|
||||
.toptrump-card .hero-image{height:180px;background-size:cover;background-position:center;position:relative;overflow:hidden}
|
||||
/* Hero image: make the dinosaur image larger, cover the banner and remove shadow */
|
||||
.toptrump-card .hero-image img.card-hero-img{
|
||||
display:block;
|
||||
margin:8px auto 0;
|
||||
width:92%;
|
||||
height:140px;
|
||||
position:absolute;
|
||||
left:50%;
|
||||
top:50%;
|
||||
transform:translate(-50%,-50%);
|
||||
/* ensure the image fills the banner while keeping aspect ratio */
|
||||
min-width:110%;
|
||||
min-height:110%;
|
||||
width:auto;
|
||||
height:auto;
|
||||
object-fit:cover;
|
||||
border-radius:6px;
|
||||
box-shadow:none;
|
||||
|
||||
Reference in New Issue
Block a user