Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| (35 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
flex-direction: row; |
flex-direction: row; |
||
align-items: flex-start; |
align-items: flex-start; |
||
| ⚫ | |||
} |
} |
||
| Line 16: | Line 17: | ||
flex: 0 0 auto; |
flex: 0 0 auto; |
||
line-height: 0; |
line-height: 0; |
||
margin-top: |
margin-top: 5px; |
||
} |
} |
||
.insert-quote-image img { |
.insert-quote-image img { |
||
border-radius: 50%; |
border-radius: 50%; |
||
border: 1px solid #ffffff; |
border: 1px solid #ffffff; |
||
width: |
width: 44px; |
||
height: |
height: 44px; |
||
object-fit: cover; |
object-fit: cover; |
||
} |
} |
||
| Line 33: | Line 34: | ||
} |
} |
||
/* ================================================================= |
|||
SCENARIO A: NO IMAGE (Refined 2px Minimalist Bar) |
|||
================================================================= */ |
|||
/* 1. Main Content Container */ |
|||
.insert-quote-panel.no-image .insert-quote-content { |
.insert-quote-panel.no-image .insert-quote-content { |
||
background: |
background: transparent !important; |
||
border: |
border-left: 2px solid #202122; |
||
border-radius: 0; |
|||
/* Adjusted padding: Top, Right, Bottom, Left */ |
|||
| ⚫ | |||
/* 1.2em left padding creates a sophisticated gap from the thin bar */ |
|||
| ⚫ | |||
color: #202122; |
|||
box-sizing: border-box; |
|||
} |
} |
||
/* |
/* 2. Global Reset for Nested Wiki Elements */ |
||
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
line-height: 1.6; /* Optimized for readability in business contexts */ |
|||
| ⚫ | |||
/* 3. Author & Attribution Styling */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* ================================================================= |
|||
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left) |
|||
================================================================= */ |
|||
.insert-quote-panel.has-image { |
.insert-quote-panel.has-image { |
||
gap: 15px; |
gap: 15px; |
||
padding-top: 10px; /* UPDATED: Adds space above the whole panel */ |
|||
} |
} |
||
/* 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; |
||
border: none !important; |
border: none !important; |
||
padding: 0 !important; |
padding: 0 !important; |
||
margin: 0 !important; |
margin: 0 !important; |
||
color: #202122; |
color: #202122; |
||
} |
} |
||
/* --- B1. RESET THE QUOTE TEXT (Only for Has-Image) --- */ |
|||
/* ----------------------------------------------------------- |
|||
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 .quotebox, |
||
.insert-quote-panel.has-image .insert-quote-content blockquote |
.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; |
|||
| ⚫ | |||
margin: 0 !important; |
margin: 0 !important; |
||
border: none !important; |
|||
| ⚫ | |||
| ⚫ | |||
max-width: 100% !important; |
max-width: 100% !important; |
||
| ⚫ | |||
} |
} |
||
/* |
/* --- B2. RESET THE AUTHOR (Only for Has-Image) --- */ |
||
.insert-quote-panel.has-image .insert-quote-content |
.insert-quote-panel.has-image .insert-quote-content .templatequotecite, |
||
.insert-quote-panel.has-image .insert-quote-content |
.insert-quote-panel.has-image .insert-quote-content cite, |
||
.insert-quote-panel.has-image .insert-quote-content small { |
|||
| ⚫ | |||
text-align: left !important; |
text-align: left !important; |
||
| ⚫ | |||
padding-left: 0 !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) --- */ |
|||
/* 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 > .quotebox > *:first-child, |
||
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
.insert-quote-panel.has-image .insert-quote-content > *:first-child { |
||
margin-top: 0 !important; |
margin-top: 0 !important; |
||
padding-top: 0 !important; |
padding-top: 0 !important; |
||
| ⚫ | |||
/* ----------------------------------------------------------- |
|||
THE FIX: AUTHOR / CITATION STYLING |
|||
----------------------------------------------------------- */ |
|||
/* Target every possible container for the author */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* Force it to be a block on its own line */ |
|||
| ⚫ | |||
/* Remove any "hanging" indentation or left margins */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
/* Force Left Align */ |
|||
| ⚫ | |||
/* Add the space ABOVE the author */ |
|||
| ⚫ | |||
padding-top: 0.5em !important; /* Extra breathing room */ |
|||
/* Optional: Ensure font is normal, not tiny */ |
|||
| ⚫ | |||
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. */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
Latest revision as of 15:50, 29 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;
color: #202122;
}
/* --- 2. IMAGE STYLING --- */
.insert-quote-image {
flex: 0 0 auto;
line-height: 0;
margin-top: 5px;
}
.insert-quote-image img {
border-radius: 50%;
border: 1px solid #ffffff;
width: 44px;
height: 44px;
object-fit: cover;
}
/* --- 3. CONTENT WRAPPER --- */
.insert-quote-content {
flex: 1;
min-width: 0;
width: 100%;
}
/* =================================================================
SCENARIO A: NO IMAGE (Refined 2px Minimalist Bar)
================================================================= */
/* 1. Main Content Container */
.insert-quote-panel.no-image .insert-quote-content {
background: transparent !important;
border-left: 2px solid #202122;
border-radius: 0;
/* Adjusted padding: Top, Right, Bottom, Left */
/* 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 */
/* Targets blockquotes, paragraphs, and standard quote templates inside the panel */
.insert-quote-panel.no-image .insert-quote-content blockquote,
.insert-quote-panel.no-image .insert-quote-content .templatequote,
.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-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;
}
/* =================================================================
SCENARIO B: WITH IMAGE (Clean, Transparent, Flush Left)
================================================================= */
.insert-quote-panel.has-image {
gap: 15px;
padding-top: 10px; /* UPDATED: Adds space above the whole panel */
}
.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) --- */
.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;
}