Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
} |
} |
||
/* --- 3. CONTENT WRAPPER |
/* --- 3. CONTENT WRAPPER --- */ |
||
.insert-quote-content { |
.insert-quote-content { |
||
flex: 1; |
flex: 1; |
||
| Line 46: | Line 46: | ||
} |
} |
||
/* Reset the wrapper */ |
|||
.insert-quote-panel.has-image .insert-quote-content { |
.insert-quote-panel.has-image .insert-quote-content { |
||
background: transparent !important; |
background: transparent !important; |
||
| Line 54: | Line 55: | ||
} |
} |
||
/* ----------------------------------------------------------- |
|||
/* ================================================================= |
|||
DEEP RESET |
DEEP RESET FOR {{Quote}} TEMPLATE |
||
----------------------------------------------------------- */ |
|||
================================================================= */ |
|||
/* 1. |
/* 1. Reset the inner Quote Box */ |
||
.insert-quote-content .quotebox, |
|||
.insert-quote-content blockquote { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
box-sizing: border-box; |
|||
| ⚫ | |||
/* 2. Remove gray styling specifically for the "Has Image" version */ |
|||
.insert-quote-panel.has-image .insert-quote-content .quotebox, |
.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 blockquote { |
||
| Line 74: | Line 66: | ||
padding: 0 !important; |
padding: 0 !important; |
||
margin: 0 !important; |
margin: 0 !important; |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
/* |
/* 2. Reset Text Alignment & Margins for the Quote Body */ |
||
.insert-quote-panel.has-image .insert-quote-content p, |
.insert-quote-panel.has-image .insert-quote-content p, |
||
.insert-quote-panel.has-image .insert-quote-content div { |
.insert-quote-panel.has-image .insert-quote-content div { |
||
text-align: left !important; |
text-align: left !important; |
||
| ⚫ | |||
padding-left: 0 !important; |
|||
} |
} |
||
/* 3. Remove top space from the first line (so it aligns with photo) */ |
|||
/* Fix text starting too low */ |
|||
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child, |
.insert-quote-panel.has-image .insert-quote-content > .quotebox > *:first-child, |
||
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
||
| Line 89: | Line 86: | ||
} |
} |
||
/* ----------------------------------------------------------- |
|||
/* 4. FIX AUTHOR SPACING & ALIGNMENT |
|||
THE FIX: AUTHOR / CITATION STYLING |
|||
Force the author to be a block, add top margin, and force LEFT alignment */ |
|||
----------------------------------------------------------- */ |
|||
/* Target every possible container for the author */ |
|||
.insert-quote-panel.has-image .insert-quote-content small, |
.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 .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 */ |
|||
| ⚫ | |||
padding-top: 0.5em !important; /* Extra breathing room */ |
|||
/* Optional: Ensure font is normal, not tiny */ |
|||
font-style: normal; |
font-style: normal; |
||
line-height: 1.4; |
|||
width: 100%; |
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; |
|||
} |
} |
||
Revision as of 21:56, 16 December 2025
/* Template:Insert quote panel/styles.css */
/* --- 1. MAIN CONTAINER --- */
.insert-quote-panel {
clear: both;
width: 100%;
box-sizing: border-box;
margin: 0 0 2em 0;
display: flex;
flex-direction: row;
align-items: flex-start;
}
/* --- 2. IMAGE STYLING --- */
.insert-quote-image {
flex: 0 0 auto;
line-height: 0;
margin-top: 0;
}
.insert-quote-image img {
border-radius: 50%;
border: 1px solid #ffffff;
width: 50px;
height: 50px;
object-fit: cover;
}
/* --- 3. CONTENT WRAPPER --- */
.insert-quote-content {
flex: 1;
min-width: 0;
width: 100%;
}
/* --- 4. SCENARIO: NO IMAGE (Gray Box) --- */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FA;
border: 0 solid #9CA4AC;
padding: .5em;
color: #202122;
}
/* --- 5. SCENARIO: WITH IMAGE (Clean, Transparent) --- */
.insert-quote-panel.has-image {
gap: 15px;
}
/* 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;
}
/* -----------------------------------------------------------
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 {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
max-width: 100% !important;
float: none !important;
}
/* 2. Reset Text Alignment & Margins for the Quote Body */
.insert-quote-panel.has-image .insert-quote-content p,
.insert-quote-panel.has-image .insert-quote-content div {
text-align: left !important;
margin-left: 0 !important;
padding-left: 0 !important;
}
/* 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;
}