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

Content deleted Content added
No edit summary
No edit summary
 
(40 intermediate revisions by the same user not shown)
Line 1:
/* Template:Insert quote panel/styles.css */
 
/* --- 1. MAIN CONTAINER (Flexbox Setup) --- */
.insert-quote-panel {
clear: both;
Line 9:
display: flex;
flex-direction: row;
align-items: flex-start; /* Aligns image top with text top */
color: #202122;
}
 
/* --- 2. FORMAT: WITH IMAGE (Simple, Tight Layout)STYLING --- */
.insert-quote-panel.has-image {
flex: 0 0 auto;
gap: 0.5em; /* Brings text closer to the image on the left */
line-height: 0;
margin-top: 5px;
}
.insert-quote-image img {
 
border-radius: 50%;
.insert-quote-panel.has-image .insert-quote-content {
border: 1px solid #ffffff;
background: transparent; /* Simple background */
width: 44px;
border: none; /* REMOVES the vertical gray bar */
height: 44px;
padding: 0; /* Removes padding so text aligns strictly top-left */
colorobject-fit: #202122cover;
}
 
/* --- 3. CONTENT WRAPPER --- */
/* CRITICAL: Removes default paragraph margin so text starts at the very top */
.insert-quote-panel.has-image .insert-quote-content > *:first-child {
margin-topflex: 01;
min-width: 0;
width: 100%;
}
 
/* =================================================================
/* --- 3. FORMAT: 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 .5em .5em 0.5em;
/* 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;
}
 
/* 2. Global Reset for Nested Wiki Elements */
/* --- 4. SHARED CONTENT SETTINGS --- */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-content {
.insert-quote-panel.no-image .insert-quote-content blockquote,
flex: 1;
.insert-quote-panel.no-image .insert-quote-content .templatequote,
min-width: 0;
.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-content a,
.insert-quote-panel.no-image .insert-quote-content .templatequotecite,
.insert-quote-content a:visited { color: #202122; text-decoration: underline; }
.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. IMAGE STYLING (Round + White Crop) --- */
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left)
.insert-quote-image {
================================================================= */
flex: 0 0 auto;
.insert-quote-panel.has-image {
line-height: 0;
margin-topgap: 015px;
padding-top: 10px; /* UPDATED: Adds space above the whole panel */
}
 
.insert-quote-panel.has-image img.insert-quote-content {
background: transparent !important;
border-radius: 50%;
border: 1pxnone solid #ffffff!important;
padding: 0 !important;
width: 50px;
heightmargin: 50px0 !important;
object-fitcolor: cover#202122;
}
 
/* --- B1. RESET THE QUOTE TEXT (Only for Has-Image) --- */
.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,
.insert-quote-panel.has-image .insert-quote-content div {
margin-left: 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) --- */
.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;
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-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;
}