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

Content deleted Content added
No edit summary
No edit summary
 
(30 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: 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;
border-radius: 0;
padding: .5em; /* Creates the space inside the gray box */
/* Adjusted padding: Top, Right, Bottom, Left */
color: #202122;
/* 1.2em left padding creates a sophisticated gap from the thin bar */
padding: 0 !important0 0 1.2em;
color: #202122;
box-sizing: border-box;
}
 
/* 2. Global Reset for Nested Wiki Elements */
/* --- 5. SCENARIO: WITH IMAGE (Transparent) --- */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-panel.hasno-image .insert-quote-content blockquote {,
.insert-quote-panel.hasno-image .insert-quote-content .quoteboxtemplatequote,
.insert-quote-panel.no-image .insert-quote-content p,
.insert-quote-panel.no-image .insert-quote-content div {
widthborder: 100%none !important;
margin-rightpadding: 0 !important;
margin-top: 1.5em0 !important;
max-widthbackground: 100%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;
}
 
/* =================================================================
/* --- 5. SCENARIO B: WITH IMAGE (Clean, Transparent), ---Flush */Left)
================================================================= */
.insert-quote-panel.has-image {
gap: 15px; /* Space between photo and text */
padding-top: .5em10px; /* CreatesUPDATED: theAdds space insideabove the graywhole boxpanel */
}
 
Line 54 ⟶ 88:
}
 
/* A--- B1. RESET THE QUOTE TEXT (RemovesOnly defaultfor indentationHas-Image) --- */
/* =================================================================
.insert-quote-panel.has-image .insert-quote-content .quotebox,
THE FIX: UNIVERSAL ALIGNMENT RESET
.insert-quote-panel.has-image .insert-quote-content blockquote,
Force Text and Author to align flush left in ALL scenarios
.insert-quote-panel.has-image .insert-quote-content p,
================================================================= */
.insert-quote-panel.has-image .insert-quote-content div {
 
/* A. RESET THE QUOTE TEXT (Removes default indentation) */
.insert-quote-content .quotebox,
.insert-quote-content blockquote,
.insert-quote-content p,
.insert-quote-content div {
margin-left: 0 !important;
padding-left: 0 !important;
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
 
/* Special fix for "Has Image": Remove all margins from the blockquote wrapper */
.insert-quote-panel.has-image .insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote {
margin: 0 !important;
padding: 0 !important;
border: none !important;
background: transparent !important;
width: 100% !important;
max-width: 100% !important;
}
 
/* B--- B2. RESET THE AUTHOR (RemovesOnly defaultfor indentationHas-Image) --- */
.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;
/* FORCE LEFT ALIGNMENT */
text-align: left !important;
padding-left: 0 !important;
margin-left: 0 !important;
margin-top: 0em !important;
/* Vertical Spacing */
margin-top: 1.5em !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
}
 
/* C--- B3. REMOVE TOP GAP (AlignOnly textfor with image topHas-Image) --- */
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child,
.insert-quote-panel.has-image .insert-quote-content > *:first-child {