Jump to content

Template:Article thumbnail/styles.css: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
Line 2: Line 2:
.article-thumb {
.article-thumb {
vertical-align: top;
vertical-align: top;
width: 180px;
width: 150px;
/* Increase the second value (40px) to add more space to the right */
/* Increase the second value (40px) to add more space to the right */
padding: 0px 30px 30px 0px;
padding: 0px 20px 20px 0px;
background: transparent !important;
background: transparent !important;
border: 0;
border: 0;
Line 18: Line 18:
.article-thumb__imgwrap {
.article-thumb__imgwrap {
width: 100%;
width: 100%;
height: 150px;
height: 130px;
display: flex;
display: flex;
align-items: center;
align-items: center;
Line 54: Line 54:
font-size: 0.85em !important;
font-size: 0.85em !important;
font-weight: normal;
font-weight: normal;
line-height: 1.4;
line-height: 1;
display: block;
display: block;
}
}

Revision as of 20:32, 4 January 2026

/* Base card style */
.article-thumb {
  vertical-align: top;
  width: 150px;
  /* Increase the second value (40px) to add more space to the right */
  padding: 0px 20px 20px 0px; 
  background: transparent !important;
  border: 0;
  box-sizing: border-box;
  display: inline-block;
}

/* Alignment Modifier Classes */
.article-thumb--align-center { text-align: center; }
.article-thumb--align-left   { text-align: left; }
.article-thumb--align-right  { text-align: right; }

.article-thumb__imgwrap {
  width: 100%;
  height: 130px; 
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  overflow: hidden;
  margin-bottom: 0px;
}

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

/* Page Title / Caption */
.article-thumb__caption {
  margin: 0px;
  line-height: 1;
  font-weight: bold;
}

/* Direct link targeting to force 0.85em on mobile */
.article-thumb__caption a {
  font-size: 0.85em !important;
  color: #202122 !important;
  text-decoration: none;
}

/* Subtitle and Description */
.article-thumb__text {
  color: #202122;
  font-size: 0.85em !important; 
  font-weight: normal;
  line-height: 1;
  display: block;
}

.article-thumb a {
  text-decoration: none;
}