Template:Article thumbnail/styles.css: Difference between revisions
Appearance
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 |
padding: 0px 15px 25px 0px; /* Space for the grid gap */ |
||
background: |
background: none; /* Removed background */ |
||
| ⚫ | |||
display: inline-block; |
display: inline-block; |
||
text-align: left; /* |
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: 160px; /* Consistent vertical alignment for the row */ |
||
display: flex; |
display: flex; |
||
align-items: center; |
align-items: center; |
||
justify-content: flex-start; /* |
justify-content: flex-start; /* Image sits on the left */ |
||
overflow: hidden; |
overflow: hidden; |
||
margin-bottom: |
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; /* |
font-size: 0.85em; /* Uniform size for all text */ |
||
line-height: 1. |
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; /* |
font-weight: bold; /* Keep bold to anchor the eye */ |
||
color: # |
color: #202122; |
||
text-decoration: none; |
text-decoration: none; |
||
} |
} |
||
.article- |
.article-thumb__title a:hover { |
||
text-decoration: underline; /* Standard UX feedback */ |
|||
| ⚫ | |||
} |
} |
||
.article-thumb__subtitle, |
|||
.article-thumb__description { |
.article-thumb__description { |
||
color: # |
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;
}