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

Content deleted Content added
No edit summary
No edit summary
 
(39 intermediate revisions by the same user not shown)
Line 9:
display: flex;
flex-direction: row;
align-items: flex-start;
color: #202122;
}
 
/* --- 2. IMAGE STYLING --- */
/* =========================================
.insert-quote-image {
SCENARIO A: WITH PROFILE IMAGE
flex: 0 0 auto;
(Transparent, No border, Text tight to image)
line-height: 0;
========================================= */
margin-top: 5px;
.insert-quote-panel.has-image {
gap: 10px; /* Very close spacing (approx 0.6em) */
}
.insert-quote-image img {
 
border-radius: 50%;
.insert-quote-panel.has-image .insert-quote-content {
border: 1px solid #ffffff;
background: transparent !important; /* Force removal of gray box */
width: 44px;
border: none !important; /* Force removal of gray bar */
height: 44px;
padding: 0 !important; /* Remove padding to move left */
colorobject-fit: #202122cover;
}
 
/* --- 3. CONTENT WRAPPER --- */
/* FIX: "Text too low"
.insert-quote-content {
MediaWiki adds <p> tags with top-margins automatically.
flex: 1;
This forces the first paragraph to jump up to the top line. */
min-width: 0;
.insert-quote-panel.has-image .insert-quote-content > p:first-child,
width: 100%;
.insert-quote-panel.has-image .insert-quote-content > div:first-child,
.insert-quote-panel.has-image .insert-quote-content > *:first-child {
margin-top: 0 !important;
padding-top: 0 !important;
}
 
/* =================================================================
SCENARIO BA: NO IMAGE (DEFAULTRefined 2px Minimalist Bar)
================================================================= */
(Gray background box)
 
========================================= */
/* 1. Main Content Container */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FAtransparent !important;
border: 0 solid #9CA4AC; /* Or border-left: 4px...2px dependingsolid on your pref */#202122;
padding border-radius: .5em0;
/* Adjusted padding: Top, Right, Bottom, Left */
/* 1.2em left padding creates a sophisticated gap from the thin bar */
padding: 0 0 0 1.2em;
color: #202122;
box-sizing: border-box;
}
 
/* 2. Global Reset for Nested Wiki Elements */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-panel.no-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 {
border: 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;
border: none !important;
padding: 0 !important;
margin: 0 !important;
color: #202122;
}
 
/* --- B1. RESET THE QUOTE TEXT (Only for Has-Image) --- */
/* =========================================
.insert-quote-panel.has-image .insert-quote-content .quotebox,
SHARED STYLES
.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 {
flex: 1;
min margin-widthleft: 0 !important;
padding-left: 0 !important;
margin: 0 !important;
border: none !important;
background: transparent !important;
width: 100% !important;
max-width: 100% !important;
}
 
/* --- B2. RESET THE AUTHOR (Only for Has-Image) Styling--- */
.insert-quote-panel.has-image {.insert-quote-content .templatequotecite,
.insert-quote-panel.has-image .insert-quote-content cite,
flex: 0 0 auto;
.insert-quote-panel.has-image .insert-quote-content small {
line-height: 0;
display: block !important;
margin-top: 0;
text-align: left !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) --- */
.insert-quote-image img {
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child,
border-radius: 50%;
.insert-quote-panel.has-image .insert-quote-content > *:first-child {
border: 1px solid #ffffff;
margin-top: 0 !important;
width: 50px;
padding-top: 0 !important;
height: 50px;
object-fit: cover;
}