Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
flex-direction: row; |
flex-direction: row; |
||
align-items: flex-start; |
align-items: flex-start; |
||
/* Lock text color */ |
|||
color: #202122; |
|||
} |
} |
||
| Line 33: | Line 36: | ||
} |
} |
||
| ⚫ | |||
SCENARIO A: NO IMAGE (Restoring your Original Style) |
|||
| ⚫ | |||
.insert-quote-panel.no-image .insert-quote-content { |
.insert-quote-panel.no-image .insert-quote-content { |
||
/* Exact properties from your initial request */ |
|||
background: #F8F9FA; |
background: #F8F9FA; |
||
border: 0 solid #9CA4AC; |
border: 0 solid #9CA4AC; |
||
border-radius: 0; |
|||
padding: .5em; /* Creates the space inside the gray box */ |
|||
padding: .5em .5em .5em 0; /* Keeps your original padding */ |
|||
color: #202122; |
color: #202122; |
||
} |
} |
||
/* We do NOT add any resets here. |
|||
| ⚫ | |||
This ensures the inner {{Quote}} keeps its default margins |
|||
and doesn't touch the left side. */ |
|||
/* Optional: Link colors (from your original) */ |
|||
| ⚫ | |||
| ⚫ | |||
color: #202122; |
|||
text-decoration: underline; |
|||
| ⚫ | |||
/* ================================================================= |
|||
| ⚫ | |||
================================================================= */ |
|||
.insert-quote-panel.has-image { |
.insert-quote-panel.has-image { |
||
gap: 15px; |
gap: 15px; |
||
} |
} |
||
| Line 54: | Line 75: | ||
} |
} |
||
| ⚫ | |||
| ⚫ | |||
/* This removes the default indent so text aligns with the photo */ |
|||
THE FIX: UNIVERSAL ALIGNMENT RESET |
|||
| ⚫ | |||
Force Text and Author to align flush left in ALL scenarios |
|||
| ⚫ | |||
| ⚫ | |||
.insert-quote-panel.has-image .insert-quote-content p, |
|||
| ⚫ | |||
| ⚫ | |||
.insert-quote-content .quotebox, |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
margin-left: 0 !important; |
margin-left: 0 !important; |
||
padding-left: 0 !important; |
padding-left: 0 !important; |
||
| ⚫ | |||
| ⚫ | |||
box-sizing: border-box; |
|||
| ⚫ | |||
/* Special fix for "Has Image": Remove all margins from the blockquote wrapper */ |
|||
| ⚫ | |||
| ⚫ | |||
margin: 0 !important; |
margin: 0 !important; |
||
padding: 0 !important; |
|||
border: none !important; |
border: none !important; |
||
background: transparent !important; |
background: transparent !important; |
||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
/* |
/* --- B2. RESET THE AUTHOR (Only for Has-Image) --- */ |
||
/* Forces author to align left and adds vertical space */ |
|||
.insert-quote-content .templatequotecite, |
|||
.insert-quote-content |
.insert-quote-panel.has-image .insert-quote-content .templatequotecite, |
||
.insert-quote- |
.insert-quote-panel.has-image .insert-quote-content cite, |
||
.insert-quote-panel.has-image .insert-quote-content small { |
|||
display: block !important; |
display: block !important; |
||
/* |
/* ALIGNMENT: Flush Left */ |
||
text-align: left !important; |
text-align: left !important; |
||
padding-left: 0 !important; |
padding-left: 0 !important; |
||
margin-left: 0 !important; |
margin-left: 0 !important; |
||
/* |
/* SPACING: Below text */ |
||
margin-top: 1.5em !important; |
margin-top: 1.5em !important; |
||
margin-bottom: 0 !important; |
margin-bottom: 0 !important; |
||
margin-right: 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 > .quotebox > *:first-child, |
||
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
||
Revision as of 22:22, 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;
/* Lock text color */
color: #202122;
}
/* --- 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%;
}
/* =================================================================
SCENARIO A: NO IMAGE (Restoring your Original Style)
================================================================= */
.insert-quote-panel.no-image .insert-quote-content {
/* Exact properties from your initial request */
background: #F8F9FA;
border: 0 solid #9CA4AC;
border-radius: 0;
padding: .5em .5em .5em 0; /* Keeps your original padding */
color: #202122;
}
/* We do NOT add any resets here.
This ensures the inner {{Quote}} keeps its default margins
and doesn't touch the left side. */
/* Optional: Link colors (from your original) */
.insert-quote-panel.no-image a,
.insert-quote-panel.no-image a:visited {
color: #202122;
text-decoration: underline;
}
/* =================================================================
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left)
================================================================= */
.insert-quote-panel.has-image {
gap: 15px;
}
.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) --- */
/* This removes the default indent so text aligns with the photo */
.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) --- */
/* Forces author to align left and adds vertical space */
.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;
/* ALIGNMENT: Flush Left */
text-align: left !important;
padding-left: 0 !important;
margin-left: 0 !important;
/* SPACING: Below text */
margin-top: 1.5em !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;
}