Template:Blog post/styles.css

Revision as of 16:28, 3 October 2025 by Root (talk | contribs)
/* Title area (skin heading is the H1) */
.firstHeading { 
  font-size: 2.4rem; 
  line-height: 1.15; 
  font-weight: 800; 
  margin-bottom: 0.2rem;   /* smaller gap below title */
}
.blogpost-thumb {
height: 200px;
width: auto;
}

/* Byline */
.blog-byline { 
  color: #616161; 
  font-size: 0.98rem; 
  margin-top: 0;           /* remove extra space above */
  margin-bottom: 1rem; 
}
.blog-byline a { color: inherit; text-decoration: underline; }

/* Hero image viewport (fixed 250px high, crop anything below) */
.blog-hero {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  margin: 1rem auto 0.75rem;
}

/* MediaWiki wraps images; make the wrapper fill the viewport */
.blog-hero a.image,
.blog-hero span.image {            /* some skins use span when link= is empty */
  display: block;
  width: 100%;
  height: 100%;
}

/* Target the real <img> MediaWiki renders */
.blog-hero img.mw-file-element {
  display: block;
  width: 100% !important;         /* override any inline width */
  height: 100% !important;        /* force it to fill the 250px box */
  object-fit: cover;              /* crop while preserving aspect ratio */
  object-position: top;           /* show from the top down */
  border-radius: 8px;
  margin: 0;
  padding: 0;
}

/* Caption stays below the cropped area */
.blog-hero-cap {
  text-align: center;
  color: #6f6f6f;
  font-size: 0.92rem;
  margin-top: 0.45rem;
  font-style: italic;
}
Discuss this page