Template:Article thumbnail/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* Container |
/* Container - Removed all visual weight */ |
||
.article-thumb { |
.article-thumb { |
||
vertical-align: top; |
vertical-align: top; |
||
width: 150px; |
width: 150px; |
||
padding: 0px 15px 25px 0px; |
padding: 0px 15px 25px 0px; |
||
background: |
background: transparent !important; /* Forces removal of gray */ |
||
border: none; |
border: none !important; /* Forces removal of borders */ |
||
display: inline-block; |
display: inline-block; |
||
text-align: left; |
text-align: left; |
||
box-sizing: border-box; |
box-sizing: border-box; |
||
} |
} |
||
/* Image wrapper - no background |
/* Image wrapper - Ensures no background is inherited */ |
||
.article-thumb__imgwrap { |
.article-thumb__imgwrap { |
||
width: 100%; |
width: 100%; |
||
height: 160px; |
height: 160px; |
||
display: flex; |
display: flex; |
||
align-items: center; |
align-items: center; |
||
justify-content: flex-start; |
justify-content: flex-start; |
||
overflow: hidden; |
overflow: hidden; |
||
margin-bottom: 10px; |
margin-bottom: 10px; |
||
background: transparent !important; |
|||
} |
} |
||
/* Targeting MediaWiki's internal image and link classes specifically */ |
|||
.article-thumb__imgwrap img, |
|||
.article-thumb__imgwrap .mw-file-element, |
.article-thumb__imgwrap .mw-file-element, |
||
.article-thumb__imgwrap |
.article-thumb__imgwrap a.mw-file-description { |
||
display: block; |
display: block; |
||
max-width: 100%; |
max-width: 100%; |
||
| Line 29: | Line 32: | ||
width: auto; |
width: auto; |
||
height: auto; |
height: auto; |
||
border: none !important; /* Strips default MediaWiki thumbnail borders */ |
|||
background: none !important; /* Strips default gray image backgrounds */ |
|||
box-shadow: none !important; /* Strips any "lifted" effects */ |
|||
} |
} |
||
/* |
/* Content Area - Using the requested #202122 color */ |
||
.article-thumb__content { |
.article-thumb__content { |
||
font-size: 0.85em; |
font-size: 0.85em; |
||
line-height: 1.4; |
line-height: 1.4; |
||
color: #202122; |
color: #202122; |
||
} |
} |
||
/* Links and text styling */ |
|||
.article-thumb__title a { |
.article-thumb__title a { |
||
font-weight: bold; |
font-weight: bold; |
||
color: #202122; |
color: #202122; |
||
text-decoration: none; |
text-decoration: none; |
||
} |
|||
.article-thumb__title a:hover { |
|||
text-decoration: underline; /* Standard UX feedback */ |
|||
} |
} |
||
.article-thumb__subtitle, |
.article-thumb__subtitle, |
||
.article-thumb__description { |
.article-thumb__description { |
||
color: #202122; |
color: #202122; /* Normal text color as requested */ |
||
display: block; |
display: block; |
||
} |
} |
||
Revision as of 15:01, 4 January 2026
/* Container - Removed all visual weight */
.article-thumb {
vertical-align: top;
width: 150px;
padding: 0px 15px 25px 0px;
background: transparent !important; /* Forces removal of gray */
border: none !important; /* Forces removal of borders */
display: inline-block;
text-align: left;
box-sizing: border-box;
}
/* Image wrapper - Ensures no background is inherited */
.article-thumb__imgwrap {
width: 100%;
height: 160px;
display: flex;
align-items: center;
justify-content: flex-start;
overflow: hidden;
margin-bottom: 10px;
background: transparent !important;
}
/* Targeting MediaWiki's internal image and link classes specifically */
.article-thumb__imgwrap img,
.article-thumb__imgwrap .mw-file-element,
.article-thumb__imgwrap a.mw-file-description {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
border: none !important; /* Strips default MediaWiki thumbnail borders */
background: none !important; /* Strips default gray image backgrounds */
box-shadow: none !important; /* Strips any "lifted" effects */
}
/* Content Area - Using the requested #202122 color */
.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; /* Normal text color as requested */
display: block;
}