Template:Insert quote panel/styles.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 33:
}
/* --- 4. SCENARIO: NO IMAGE (
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FA;
Line 43:
/* --- 5. SCENARIO: WITH IMAGE (Transparent, Clean) --- */
.insert-quote-panel.has-image {
gap: 15px;
}
Line 55:
/* =================================================================
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;
▲ width: 100% !important;
▲ max-width: 100% !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 {
Line 80 ⟶ 85:
}
/* 3.
.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 */
}
| |||