Jump to content

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

From Insurer Brain
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Container - Removed all visual weight */
/* Container */
.article-thumb {
.article-thumb {
vertical-align: top;
vertical-align: top;
width: 150px;
width: 150px;
padding: 0px 0px 0px 0px;
padding: 0px 15px 20px 0px; /* Added 15px right padding for a gap between cards */
background: transparent !important; /* Forces removal of gray */
background: transparent !important;
border: none !important; /* Forces removal of borders */
border: none !important;
display: inline-block;
display: inline-block;
text-align: left;
text-align: left;
Line 11: Line 11:
}
}


/* Image wrapper - Ensures no background is inherited */
/* Image wrapper */
.article-thumb__imgwrap {
.article-thumb__imgwrap {
width: 100%;
width: 100%;
height: 150px;
height: 150px; /* Fixed height to keep the grid aligned */
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: flex-start;
justify-content: flex-start; /* Aligns "as is" image to the left */
overflow: hidden;
overflow: hidden;
margin-bottom: 0px;
margin-bottom: 5px;
background: transparent !important;
background: transparent !important;
}
}


/* Targeting MediaWiki's internal image and link classes specifically */
/* Strip MediaWiki default styling from image links and files */
.article-thumb__imgwrap img,
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap a.mw-file-description {
.article-thumb__imgwrap a,
.article-thumb__imgwrap .mw-file-description {
display: block;
display: block;
width: 150px !important; /* Forces the width */
height: 150px !important; /* Force the height you want */
height: 150px !important; /* Forces the height */
width: auto !important; /* Let width be "as is" based on aspect ratio */
max-width: 150px;
/* ADD THESE TWO LINES */
object-position: top; /* Ensures the CEO's head isn't cut off if cropped */

border: none !important;
border: none !important;
background: none !important;
background: none !important;
background-color: transparent !important;
box-shadow: none !important;
box-shadow: none !important;
}
}


/* Content Area - Using the requested #202122 color */
/* Content Area */
.article-thumb__content {
.article-thumb__content {
font-size: 0.85em;
font-size: 0.85em;
Line 54: Line 53:
.article-thumb__subtitle,
.article-thumb__subtitle,
.article-thumb__description {
.article-thumb__description {
color: #202122; /* Normal text color as requested */
color: #202122;
display: block;
display: block;
}
}

Revision as of 15:12, 4 January 2026

/* Container */
.article-thumb {
  vertical-align: top;
  width: 150px;
  padding: 0px 15px 20px 0px;   /* Added 15px right padding for a gap between cards */
  background: transparent !important;
  border: none !important;
  display: inline-block;
  text-align: left;
  box-sizing: border-box;
}

/* Image wrapper */
.article-thumb__imgwrap {
  width: 100%;
  height: 150px;                 /* Fixed height to keep the grid aligned */
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* Aligns "as is" image to the left */
  overflow: hidden;
  margin-bottom: 5px;
  background: transparent !important;
}

/* Strip MediaWiki default styling from image links and files */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap a,
.article-thumb__imgwrap .mw-file-description {
  display: block;
  height: 150px !important;      /* Force the height you want */
  width: auto !important;        /* Let width be "as is" based on aspect ratio */
  max-width: 150px;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Content Area */
.article-thumb__content {
  font-size: 0.85em;
  line-height: 1.4;
  color: #202122;
}

.article-thumb__title a {
  font-weight: bold;
  color: #202122;
  text-decoration: none;
}

.article-thumb__subtitle, 
.article-thumb__description {
  color: #202122;
  display: block;
}