Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
/* ================================================================= |
/* ================================================================= |
||
SCENARIO A: NO IMAGE ( |
SCENARIO A: NO IMAGE (2px Minimalist Editorial Style) |
||
================================================================= */ |
================================================================= */ |
||
/* 1. |
/* 1. MAIN CONTENT CONTAINER |
||
Defines the 2px bar and ensures a transparent background. */ |
|||
.insert-quote-panel.no-image .insert-quote-content { |
.insert-quote-panel.no-image .insert-quote-content { |
||
background: transparent !important; |
background: transparent !important; |
||
border-left: 2px solid #202122; |
border-left: 2px solid #202122; |
||
border-radius: 0; |
border-radius: 0; |
||
/* |
/* 1.4em padding ensures serif 'feet' don't touch the bar */ |
||
| ⚫ | |||
/* 1.2em left padding creates a sophisticated gap from the thin bar */ |
|||
| ⚫ | |||
color: #202122; |
color: #202122; |
||
box-sizing: border-box; |
box-sizing: border-box; |
||
display: block; |
|||
} |
} |
||
/* 2. |
/* 2. QUOTE TEXT (Vector 2022 Serif Typography) |
||
Applies the professional 'Linux Libertine' stack to all nested text 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 blockquote, |
||
.insert-quote-panel.no-image .insert-quote-content .templatequote, |
.insert-quote-panel.no-image .insert-quote-content .templatequote, |
||
| Line 60: | Line 61: | ||
margin: 0 !important; |
margin: 0 !important; |
||
background: transparent !important; |
background: transparent !important; |
||
line-height: 1.6; /* Optimized for readability in business contexts */ |
|||
/* Official Vector 2022 Serif Font Stack */ |
|||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif; |
|||
font-size: 1.18em; /* Adjusted for visual balance with sans-serif body text */ |
|||
line-height: 1.6; |
|||
| ⚫ | |||
} |
} |
||
/* 3. |
/* 3. AUTHOR & ATTRIBUTION (Standard Sans-Serif) |
||
Keeps the author in a clean, factual sans-serif font with standard styling. */ |
|||
.insert-quote-panel.no-image .insert-quote-content .templatequotecite, |
.insert-quote-panel.no-image .insert-quote-content .templatequotecite, |
||
.insert-quote-panel.no-image .insert-quote-content cite |
.insert-quote-panel.no-image .insert-quote-content cite, |
||
.insert-quote-panel.no-image .insert-quote-content small { |
|||
display: block !important; |
display: block !important; |
||
padding-left: 0 !important; |
padding-left: 0 !important; |
||
margin-top: 0. |
margin-top: 0.85em; |
||
| ⚫ | |||
/* Standard Text Specs */ |
|||
font-style: italic; /* Common for citations, remove if you want upright text */ |
|||
font-family: sans-serif; |
|||
color: #54595d; /* Slightly softer gray to differentiate from the quote */ |
|||
font-weight: normal !important; |
|||
font-style: normal !important; /* Forces upright text */ |
|||
color: #202122 !important; /* Standard Vector 2022 text color */ |
|||
font-size: 0.9em; |
|||
letter-spacing: 0.02em; /* Improves readability for attributions */ |
|||
} |
} |
||
Revision as of 15:22, 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 (2px Minimalist Editorial Style)
================================================================= */
/* 1. MAIN CONTENT CONTAINER
Defines the 2px bar and ensures a transparent background. */
.insert-quote-panel.no-image .insert-quote-content {
background: transparent !important;
border-left: 2px solid #202122;
border-radius: 0;
/* 1.4em padding ensures serif 'feet' don't touch the bar */
padding: 0.4em 0 0.4em 1.4em;
color: #202122;
box-sizing: border-box;
display: block;
}
/* 2. QUOTE TEXT (Vector 2022 Serif Typography)
Applies the professional 'Linux Libertine' stack to all nested text elements. */
.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;
/* Official Vector 2022 Serif Font Stack */
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif;
font-size: 1.18em; /* Adjusted for visual balance with sans-serif body text */
line-height: 1.6;
font-weight: 400;
}
/* 3. AUTHOR & ATTRIBUTION (Standard Sans-Serif)
Keeps the author in a clean, factual sans-serif font with standard styling. */
.insert-quote-panel.no-image .insert-quote-content .templatequotecite,
.insert-quote-panel.no-image .insert-quote-content cite,
.insert-quote-panel.no-image .insert-quote-content small {
display: block !important;
padding-left: 0 !important;
margin-top: 0.85em;
/* Standard Text Specs */
font-family: sans-serif;
font-weight: normal !important;
font-style: normal !important; /* Forces upright text */
color: #202122 !important; /* Standard Vector 2022 text color */
font-size: 0.9em;
letter-spacing: 0.02em; /* Improves readability for attributions */
}
/* =================================================================
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;
}