Template:Article thumbnail/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary |
||
| (17 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* |
/* Base card style */ |
||
.article-thumb { |
.article-thumb { |
||
vertical-align: top; |
vertical-align: top; |
||
width: 150px; |
width: 150px; |
||
/* Increase the second value (40px) to add more space to the right */ |
|||
padding: 0px 20px 20px 0px; |
|||
background: none; /* Removed background */ |
|||
background: transparent !important; |
|||
border: none; /* Removed border */ |
|||
border: 0; |
|||
text-align: left; /* Left align everything */ |
|||
box-sizing: border-box; |
box-sizing: border-box; |
||
| ⚫ | |||
} |
} |
||
/* Alignment Modifier Classes */ |
|||
/* Image wrapper - no background or border */ |
|||
.article-thumb--align-center { text-align: center; } |
|||
.article-thumb--align-left { text-align: left; } |
|||
.article-thumb--align-right { text-align: right; } |
|||
.article-thumb__imgwrap { |
.article-thumb__imgwrap { |
||
width: 100%; |
width: 100%; |
||
height: 130px; |
|||
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; |
||
overflow: hidden; |
overflow: hidden; |
||
margin-bottom: |
margin-bottom: 0px; |
||
} |
} |
||
.article-thumb__imgwrap |
.article-thumb__imgwrap img, |
||
.article-thumb__imgwrap |
.article-thumb__imgwrap .mw-file-element { |
||
display: block; |
display: block; |
||
max-width: 100%; |
max-width: 100%; |
||
| Line 31: | Line 35: | ||
} |
} |
||
/* |
/* Page Title / Caption */ |
||
.article- |
.article-thumb__caption { |
||
margin: 0px; |
|||
font-size: 0.85em; /* Uniform size for all text */ |
|||
line-height: 1 |
line-height: 1; |
||
font-weight: bold; |
|||
color: #202122; /* Standard dark text color */ |
|||
} |
} |
||
/* Direct link targeting to force 0.85em on mobile */ |
|||
/* Links and text styling */ |
|||
.article- |
.article-thumb__caption a { |
||
font-size: 0.85em !important; |
|||
font-weight: bold; /* Keep bold to anchor the eye */ |
|||
color: #202122; |
/* color: #202122 !important; |
||
text-decoration: none; |
text-decoration: none;*/ |
||
} |
} |
||
/* Subtitle and Description */ |
|||
.article-thumb__title a:hover { |
|||
.article-thumb__text { |
|||
text-decoration: underline; /* Standard UX feedback */ |
|||
color: #202122; |
|||
font-size: 0.85em !important; |
|||
font-weight: normal; |
|||
line-height: 1; |
|||
display: block; |
|||
} |
} |
||
.article- |
.article-thumb a { |
||
text-decoration: none; |
|||
.article-thumb__description { |
|||
color: #202122; /* Matches the title color as requested */ |
|||
| ⚫ | |||
} |
} |
||
Latest revision as of 20:36, 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;
}