MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,256:
/* Recommended: Change the border to match so it looks flat */
border-color: #CCCCCC !important;
}
 
/* ======================================================= */
/* 6. AI ASSISTANT TYPOGRAPHY (Match Article Style) */
/* ======================================================= */
 
/* 1. Target the text container within the AI message */
.ext-aiassistant-message-assistant {
/* Ensure font size matches the article body (usually 14px or 0.875em) */
font-size: 1em !important;
color: #202122 !important; /* Standard MediaWiki text color */
}
 
/* 2. Unify Line-Height for Paragraphs and Lists */
.ext-aiassistant-message-assistant p,
.ext-aiassistant-message-assistant li,
.ext-aiassistant-message-assistant ul,
.ext-aiassistant-message-assistant ol {
/* Matches your #content rule: line-height: 1.6 */
line-height: 1.6 !important;
}
 
/* 3. Add Spacing Between Paragraphs */
.ext-aiassistant-message-assistant p {
/* Standard MediaWiki paragraph spacing (approx 1em) */
margin-bottom: 1.1em !important;
margin-top: 0 !important;
}
 
/* 4. Fix List Spacing (Bullets) */
.ext-aiassistant-message-assistant ul,
.ext-aiassistant-message-assistant ol {
margin-top: 0.3em !important;
margin-bottom: 1.1em !important; /* Space after the list */
padding-left: 2em !important; /* Standard indentation */
}
 
.ext-aiassistant-message-assistant li {
/* Small gap between bullet points for readability */
margin-bottom: 0.1em !important;
}
 
/* 5. Ensure Citations [1] don't break the line height */
.ext-aiassistant-cite {
line-height: 1 !important;
font-size: 80% !important;
vertical-align: super !important;
}