Template:Insert quote panel/styles.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 26:
}
/* --- 3. CONTENT WRAPPER
.insert-quote-content {
flex: 1;
Line 46:
}
/* Reset the wrapper */
.insert-quote-panel.has-image .insert-quote-content {
background: transparent !important;
Line 54 ⟶ 55:
}
/* -----------------------------------------------------------
DEEP RESET
----------------------------------------------------------- */
/* 1.
width: 100% !important; ▼
max-width: 100% !important;▼
float: none !important;▼
}▼
.insert-quote-panel.has-image .insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote {
Line 74 ⟶ 66:
padding: 0 !important;
margin: 0 !important;
▲ max-width: 100% !important;
▲ float: none !important;
}
/*
.insert-quote-panel.has-image .insert-quote-content p,
.insert-quote-panel.has-image .insert-quote-content div {
text-align: left !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 {
Line 89 ⟶ 86:
}
/* -----------------------------------------------------------
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 {
▲ display: block !important;
/* Force it to be a block on its own line */
margin-top: 1.5em !important; /* Large vertical gap */▼
/* 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;
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;
}
| |||