MediaWiki:Common.css: Difference between revisions
From AbhiprayaVedi
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
. | /* META DISPLAY - TARGETS YOUR EXISTING STRUCTURE */ | ||
.article-wrapper span:first-child, | |||
font-size: | .article-wrapper > *:first-child { | ||
display: block !important; | |||
margin: 0 | text-align: center !important; | ||
line-height: 1. | font-size: 1.15em !important; | ||
font-weight: bold !important; | |||
color: #444 !important; | |||
background: #f8f9fa !important; | |||
padding: 6px 12px !important; | |||
margin: 0.1em auto 0.6em auto !important; | |||
border-radius: 4px !important; | |||
line-height: 1.2 !important; | |||
max-width: 300px !important; | |||
} | } | ||
.article-meta { | /* META SEPARATOR SPACING */ | ||
.article-wrapper .meta-sep { | |||
margin: 0 0.8em !important; | |||
font-weight: normal !important; | |||
margin: | |||
} | } | ||
. | /* PROTECT ALL WORKING FIXES */ | ||
.article-content p { | |||
margin-top: 0.2em !important; | |||
margin-bottom: 0.8em !important; | |||
} | } | ||
.article-content p:first-child { | |||
margin-top: 0 !important; | |||
.article- | |||
margin-top: 0; | |||
} | } | ||
.article-floatbox { | .article-floatbox { | ||
float: right | float: right !important; | ||
margin-top: -15px !important; | |||
margin | position: relative !important; | ||
z-index: 2; | |||
} | } | ||
| Line 84: | Line 41: | ||
float: left !important; | float: left !important; | ||
margin: 0.2em 1em 0.5em 0 !important; | margin: 0.2em 1em 0.5em 0 !important; | ||
} | } | ||
Revision as of 13:34, 2 February 2026
/* META DISPLAY - TARGETS YOUR EXISTING STRUCTURE */
.article-wrapper span:first-child,
.article-wrapper > *:first-child {
display: block !important;
text-align: center !important;
font-size: 1.15em !important;
font-weight: bold !important;
color: #444 !important;
background: #f8f9fa !important;
padding: 6px 12px !important;
margin: 0.1em auto 0.6em auto !important;
border-radius: 4px !important;
line-height: 1.2 !important;
max-width: 300px !important;
}
/* META SEPARATOR SPACING */
.article-wrapper .meta-sep {
margin: 0 0.8em !important;
font-weight: normal !important;
}
/* PROTECT ALL WORKING FIXES */
.article-content p {
margin-top: 0.2em !important;
margin-bottom: 0.8em !important;
}
.article-content p:first-child {
margin-top: 0 !important;
}
.article-floatbox {
float: right !important;
margin-top: -15px !important;
position: relative !important;
z-index: 2;
}
.thumb {
float: left !important;
margin: 0.2em 1em 0.5em 0 !important;
}