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

Content deleted Content added
No edit summary
No edit summary
 
(34 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 30 ⟶ 31:
flex: 1;
min-width: 0;
width: 100%; /* Ensures the box takes full available width */
}
 
/* =================================================================
/* --- 4. SCENARIO: NO IMAGE (Original Gray Box) --- */
SCENARIO A: NO IMAGE (Refined 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 (Transparent,Nested Clean)Wiki ---Elements */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-panel.hasno-image .insert-quote-content blockquote {,
.insert-quote-panel.no-image .insert-quote-content .templatequote,
.insert-quote-panel.no-image .insert-quote-content p,
.insert-quote-panel.no-image .insert-quote-content div {
floatborder: none !important;
padding: 0 !important;
margin: 0 !important;
background: transparent !important;
line-height: 1.6; /* Optimized for readability in business contexts */
}
 
/* 3. Author & Attribution Styling */
.insert-quote-panel.no-image .insert-quote-content .templatequotecite,
.insert-quote-panel.no-image .insert-quote-content cite {
display: block !important;
padding: 1em 0 0 0 !important;
margin-top: 0.75em;
font-weight: 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 */
}
 
.insert-quote-panel.has-image .insert-quote-content {
background: transparent !important; /* No gray box */
border: none !important; /* No border */
padding: 0 !important; /* No extra padding around the wrapper */
margin: 0 !important;
color: #202122;
}
 
/* --- B1. RESET THE QUOTE TEXT (Only for Has-Image) --- */
/* =================================================================
.insert-quote-panel.has-image .insert-quote-content .quotebox,
THE RESET: HIDE BORDERS BUT KEEP STRUCTURE (INDENTATION)
.insert-quote-panel.has-image .insert-quote-content blockquote {,
================================================================= */
.insert-quote-panel.has-image .insert-quote-content p,
 
.insert-quote-panel.has-image .insert-quote-content div {
/* 1. Force the inner {{Quote}} to be Full Width */
margin-left: 0 !important;
.insert-quote-content .quotebox,
padding-left: 0 !important;
.insert-quote-content blockquote {
margin: 0 !important;
border: none !important;
background: transparent !important;
width: 100% !important;
max-width: 100% !important;
float: none !important;
box-sizing: border-box;
}
 
/* --- B2. RESET THE AUTHOR (Only for Has-Image) --- */
/* 2. When an image is present:
.insert-quote-panel.has-image .insert-quote-content .templatequotecite,
- Hide the inner gray background/borders of the {{Quote}}
.insert-quote-panel.has-image .insert-quote-content cite,
- BUT DO NOT remove padding/margins. This preserves the indent. */
.insert-quote-panel.has-image .insert-quote-content .quotebox,small {
display: block !important;
.insert-quote-panel.has-image .insert-quote-content blockquote {
backgroundtext-align: transparentleft !important;
borderpadding-left: none0 !important;
boxmargin-shadowleft: none0 !important;
margin-top: 0em !important;
/* We REMOVED 'padding: 0' here so the default indentation works */
margin-bottom: 0 !important;
}
 
/* --- B3. REMOVE TOP GAP (Only for Has-Image) --- */
/* 3. ALIGNMENT FIX: Ensure the text starts at the top (aligned with photo) */
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child,
.insert-quote-panel.has-image .insert-quote-content > *:first-child {
Line 84 ⟶ 120:
padding-top: 0 !important;
}
 
/* (Deleted the aggressive "Author Fix" block completely.
This allows MediaWiki's default .templatequote-cite padding to take over.) */