Template:Insert quote panel/styles.css
Appearance
/* Template:Insert quote panel/styles.css */
/* --- 1. MAIN CONTAINER --- */
.insert-quote-panel {
clear: both;
width: 100%;
box-sizing: border-box;
margin: 0 0 2em 0;
display: flex;
flex-direction: row;
align-items: flex-start;
}
/* --- 2. IMAGE STYLING --- */
.insert-quote-image {
flex: 0 0 auto;
line-height: 0;
margin-top: 0;
}
.insert-quote-image img {
border-radius: 50%;
border: 1px solid #ffffff;
width: 50px;
height: 50px;
object-fit: cover;
}
/* --- 3. CONTENT WRAPPER --- */
.insert-quote-content {
flex: 1;
min-width: 0;
width: 100%;
}
/* --- 4. SCENARIO: NO IMAGE (Gray Box) --- */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FA;
border: 0 solid #9CA4AC;
padding: .5em;
color: #202122;
}
/* --- 5. SCENARIO: WITH IMAGE (Transparent, Clean) --- */
.insert-quote-panel.has-image {
gap: 15px;
}
.insert-quote-panel.has-image .insert-quote-content {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
color: #202122;
}
/* =================================================================
GLOBAL RESET: ENSURE CONTENT FILLS WIDTH
================================================================= */
.insert-quote-content .quotebox,
.insert-quote-content blockquote {
width: 100% !important;
max-width: 100% !important;
float: none !important;
box-sizing: border-box;
}
/* =================================================================
SPECIFIC FIXES FOR "HAS IMAGE"
================================================================= */
/* 1. Remove gray bar/padding only when image is present */
.insert-quote-panel.has-image .insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
}
/* 2. Text Alignment (Top) */
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child,
.insert-quote-panel.has-image .insert-quote-content > *:first-child {
margin-top: 0 !important;
padding-top: 0 !important;
}
/* 3. Author Spacing (Vertical gap) */
.insert-quote-panel.has-image .insert-quote-content .templatequotecite,
.insert-quote-panel.has-image .insert-quote-content cite,
.insert-quote-panel.has-image .insert-quote-content small {
display: block !important;
margin-top: 1.5em !important;
}
/* =================================================================
SPECIFIC FIX FOR "NO IMAGE" (The Indent Fix)
================================================================= */
/* This ensures the author name retains the standard MediaWiki indent
even if our other CSS rules tried to change widths. */
.insert-quote-panel.no-image .insert-quote-content .templatequotecite,
.insert-quote-panel.no-image .insert-quote-content cite {
display: block; /* Ensure it behaves as a block line */
padding-left: 2.3em !important; /* FORCE the default MediaWiki indent */
}