Jump to content

Template:Article thumbnail/styles.css

From Insurer Brain
/* Container for the whole card */
.article-thumb {
  vertical-align: top;
  width: 150px;                 /* Fixed width for grid consistency */
  padding: 0px 10px 20px 0px;   /* Added right padding for breathing room between cards */
  background: transparent;      /* Clean look */
  display: inline-block;
  text-align: left;             /* Force left alignment of the whole block */
  box-sizing: border-box;
}

/* Image wrapper */
.article-thumb__imgwrap {
  width: 100%;
  height: 160px;                /* Consistent height for image area */
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* Align the image to the left within its container */
  overflow: hidden;
  margin-bottom: 8px;           /* Space between image and text */
}

.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Text Content Area */
.article-thumb__content {
  font-size: 0.85em;            /* Global size for all text in the card */
  line-height: 1.3;
}

.article-thumb__title a {
  font-weight: bold;            /* Title is 0.85em but bold for hierarchy */
  color: #000;
  text-decoration: none;
}

.article-thumb__subtitle {
  color: #333;                  /* Slightly lighter than black */
}

.article-thumb__description {
  color: #666;                  /* Soft gray for meta-info */
}