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

Content deleted Content added
No edit summary
No edit summary
 
(35 intermediate revisions by the same user not shown)
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;
}
Line 33 ⟶ 34:
}
 
/* =================================================================
/* --- 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-left: 0 !important0 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.hasno-image .insert-quote-content smallblockquote,
.insert-quote-panel.hasno-image .insert-quote-content .citetemplatequote,
.insert-quote-panel.hasno-image .insert-quote-content citep,
.insert-quote-panel.hasno-image .insert-quote-content .sourcediv {
border: none !important;
contentpadding: ""0 !important;
margin-left: 0 !important;
background: transparent !important;
line-height: 1.6; /* Optimized for readability in business contexts */
 
/* 3. Author & Attribution Styling */
.insert-quote-panel.hasno-image .insert-quote-content small::before.templatequotecite,
.insert-quote-panel.hasno-image .insert-quote-content cite::before {
display: block !important;
floatpadding: none1em 0 0 0 !important;
margin-top: 10.5em !important75em;
font-styleweight: normal;
 
/* =================================================================
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left)
================================================================= */
.insert-quote-panel.has-image {
gap: 15px;
padding-top: 10px; /* UPDATED: Adds space above the whole panel */
}
 
/* Reset the wrapper */
.insert-quote-panel.has-image .insert-quote-content {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
color: #202122;
}
 
/* --- B1. RESET THE QUOTE TEXT (Only for Has-Image) --- */
/* -----------------------------------------------------------
DEEP RESET FOR {{Quote}} TEMPLATE
----------------------------------------------------------- */
 
/* 1. Reset the inner Quote Box */
.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;
marginpadding-left: 0 !important;
margin: 0 !important;
widthborder: 100%none !important;
text-alignbackground: lefttransparent !important;
displaywidth: none100% !important;
max-width: 100% !important;
float: none !important;
}
 
/* 2--- B2. ResetRESET TextTHE AlignmentAUTHOR & Margins(Only for the QuoteHas-Image) Body--- */
.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 {
text-indentdisplay: 0block !important;
text-align: left !important;
margin-left: 0 !important;
padding-left: 0 !important;
margin-left: 0 !important;
margin-top: 0em !important;
margin-bottom: 0 !important;
}
 
/* --- B3. REMOVE TOP GAP (Only for Has-Image) --- */
/* 3. Remove top space from the first line (so it aligns with photo) */
.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;
 
/* -----------------------------------------------------------
THE FIX: AUTHOR / CITATION STYLING
----------------------------------------------------------- */
 
/* Target every possible container for the author */
.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,
.insert-quote-panel.has-image .insert-quote-content .source {
/* Force it to be a block on its own line */
display: block !important;
/* Remove any "hanging" indentation or left margins */
margin-left: 0 !important;
padding-left: 0 !important;
text-indent: 0 !important;
/* Force Left Align */
text-align: left !important;
/* Add the space ABOVE the author */
margin-top: 1.5em !important;
padding-top: 0.5em !important; /* Extra breathing room */
/* Optional: Ensure font is normal, not tiny */
font-style: normal;
line-height: 1.4;
width: 100%;
 
/* HACK: Sometimes {{Quote}} adds an em-dash (—) before the author using CSS.
This hides it if it's causing the hanging indent issue. */
.insert-quote-panel.has-image .insert-quote-content small::before,
.insert-quote-panel.has-image .insert-quote-content cite::before {
content: "" !important;
display: none !important;
}