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 3: Line 3:
vertical-align: top;
vertical-align: top;
width: 150px; /* Fixed width for grid consistency */
width: 150px; /* Fixed width for grid consistency */
padding: 0px 10px 20px 0px; /* Added right padding for breathing room between cards */
padding: 0px 15px 25px 0px; /* Space for the grid gap */
background: transparent; /* Clean look */
background: none; /* Removed background */
border: none; /* Removed border */
display: inline-block;
display: inline-block;
text-align: left; /* Force left alignment of the whole block */
text-align: left; /* Left align everything */
box-sizing: border-box;
box-sizing: border-box;
}
}


/* Image wrapper */
/* Image wrapper - no background or border */
.article-thumb__imgwrap {
.article-thumb__imgwrap {
width: 100%;
width: 100%;
height: 160px; /* Consistent height for image area */
height: 160px; /* Consistent vertical alignment for the row */
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: flex-start; /* Align the image to the left within its container */
justify-content: flex-start; /* Image sits on the left */
overflow: hidden;
overflow: hidden;
margin-bottom: 8px; /* Space between image and text */
margin-bottom: 10px; /* Clean gap between image and text */
}
}


Line 32: Line 33:
/* Text Content Area */
/* Text Content Area */
.article-thumb__content {
.article-thumb__content {
font-size: 0.85em; /* Global size for all text in the card */
font-size: 0.85em; /* Uniform size for all text */
line-height: 1.3;
line-height: 1.4;
color: #202122; /* Standard dark text color */
}
}


/* Links and text styling */
.article-thumb__title a {
.article-thumb__title a {
font-weight: bold; /* Title is 0.85em but bold for hierarchy */
font-weight: bold; /* Keep bold to anchor the eye */
color: #000;
color: #202122;
text-decoration: none;
text-decoration: none;
}
}


.article-thumb__subtitle {
.article-thumb__title a:hover {
text-decoration: underline; /* Standard UX feedback */
color: #333; /* Slightly lighter than black */
}
}


.article-thumb__subtitle,
.article-thumb__description {
.article-thumb__description {
color: #666; /* Soft gray for meta-info */
color: #202122; /* Matches the title color as requested */
display: block;
}
}

Revision as of 14:58, 4 January 2026

/* Container for the whole card */
.article-thumb {
  vertical-align: top;
  width: 150px;                 /* Fixed width for grid consistency */
  padding: 0px 15px 25px 0px;   /* Space for the grid gap */
  background: none;             /* Removed background */
  border: none;                 /* Removed border */
  display: inline-block;
  text-align: left;             /* Left align everything */
  box-sizing: border-box;
}

/* Image wrapper - no background or border */
.article-thumb__imgwrap {
  width: 100%;
  height: 160px;                /* Consistent vertical alignment for the row */
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* Image sits on the left */
  overflow: hidden;
  margin-bottom: 10px;          /* Clean gap 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;            /* Uniform size for all text */
  line-height: 1.4;
  color: #202122;               /* Standard dark text color */
}

/* Links and text styling */
.article-thumb__title a {
  font-weight: bold;            /* Keep bold to anchor the eye */
  color: #202122;
  text-decoration: none;
}

.article-thumb__title a:hover {
  text-decoration: underline;   /* Standard UX feedback */
}

.article-thumb__subtitle, 
.article-thumb__description {
  color: #202122;               /* Matches the title color as requested */
  display: block;
}