Template:Insert quote panel/styles.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(37 intermediate revisions by the same user not shown)
Line 4:
.insert-quote-panel {
clear: both;
width: 100%; /* Ensures the main wrapper takes full page width */
box-sizing: border-box;
margin: 0 0 2em 0;
Line 10:
flex-direction: row;
align-items: flex-start;
color: #202122;
}
 
Line 16 ⟶ 17:
flex: 0 0 auto;
line-height: 0;
margin-top: 05px;
}
.insert-quote-image img {
border-radius: 50%;
border: 1px solid #ffffff;
width: 50px44px;
height: 50px44px;
object-fit: cover;
}
 
/* --- 3. CONTENT WRAPPER (Shared) --- */
.insert-quote-content {
flex: 1; /* Grow to fill remaining space */
min-width: 0; /* CSS fix for flex containers */
width: 100%; /* Ensures content tries to be full width */
}
 
/* =================================================================
/* --- 4. SCENARIO A: NO IMAGE (GrayRefined Box)2px ---Minimalist */Bar)
================================================================= */
 
/* 1. Main Content Container */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FAtransparent !important;
border-left: 02px solid #9CA4AC202122;
padding border-radius: .5em0;
/* Adjusted padding: Top, Right, Bottom, Left */
color: #202122;
/* 1.2em left padding creates a sophisticated gap from the thin bar */
padding: 0 0 0 1.2em;
color: #202122;
box-sizing: border-box;
}
 
/* --- 52. SCENARIO:Global WITHReset IMAGEfor (Clean,Nested Transparent)Wiki ---Elements */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-panel.has-image {
.insert-quote-panel.hasno-image .insert-quote-content smallblockquote,
gap: 15px;
.insert-quote-panel.hasno-image .insert-quote-content cite.templatequote,
.insert-quote-panel.hasno-image .insert-quote-content {p,
.insert-quote-panel.hasno-image .insert-quote-content .citediv {
border: none !important;
border padding: none0 !important;
backgroundmargin: transparent0 !important;
background: transparent !important;
line-height: 1.6; /* Optimized for readability in business contexts */
}
 
/* 3. Author & Attribution Styling */
.insert-quote-panel.has-image .insert-quote-content {
.insert-quote-panel.no-image .insert-quote-content .templatequotecite,
background: transparent !important;
.insert-quote-panel.no-image .insert-quote-content cite {
border: none !important;
padding display: 0block !important;
margin padding: 1em 0 0 0 !important;
color margin-top: #2021220.75em;
font-weight: normal;
}
 
/* =================================================================
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left)
DEEP RESET & FIXES FOR {{Quote}} TEMPLATE
================================================================= */
.insert-quote-panel.has-image {
gap: 15px;
padding-top: 10px; /* UPDATED: Adds space above the whole panel */
 
.insert-quote-panel.has-image .insert-quote-content {
/* 1. Force the inner {{Quote}} box to be Full Width */
background: transparent !important;
.insert-quote-content .quotebox,
floatborder: none !important; /* Prevents it from sticking to one side */
.insert-quote-content blockquote {
widthpadding: 100%0 !important; /* Fixes the "limited width" issue */
max-widthmargin: 100%0 !important;
color: #202122;
float: none !important; /* Prevents it from sticking to one side */
box-sizing: border-box;
}
 
/* 2--- B1. RemoveRESET grayTHE stylingQUOTE specificallyTEXT (Only for the "Has -Image") version--- */
.insert-quote-panel.has-image .insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote {,
.insert-quote-panel.has-image .insert-quote-content p,
background: transparent !important;
.insert-quote-panel.has-image .insert-quote-content div {
border: none !important;
paddingmargin-left: 0 !important;
padding-left: 0 !important;
margin: 0 !important;
border: none !important;
background: transparent !important;
width: 100% !important;
max-width: 100% !important;
}
 
/* 3--- B2. TextRESET AlignmentTHE &AUTHOR Positioning(Only for "Has -Image") --- */
.insert-quote-panel.has-image .insert-quote-content p.templatequotecite,
.insert-quote-panel.has-image .insert-quote-content div {cite,
.insert-quote-panel.has-image .insert-quote-content small {
display: block !important;
text-align: left !important;
padding-left: 0 !important;
margin-left: 0 !important;
margin-top: 0em !important;
margin-bottom: 0 !important;
}
 
/* 4--- B3. FixREMOVE TopTOP MarginGAP (TextOnly toofor lowHas-Image) --- */
.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;
 
/* 5. RESTORE AUTHOR SPACING (The fix for your second point) */
/* We target the <small> or <cite> tag usually found in {{Quote}} */
.insert-quote-panel.has-image .insert-quote-content small,
.insert-quote-panel.has-image .insert-quote-content cite,
.insert-quote-panel.has-image .insert-quote-content .cite {
display: block;
margin-top: 1em !important; /* Adds space between text and author */
font-style: normal; /* Optional: standardizes author text */
}