Template:Insert quote panel/styles.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(44 intermediate revisions by the same user not shown)
Line 1:
/* Template:Insert quote panel/styles.css */
 
/* --- 1. The Container:MAIN FlexboxCONTAINER Layout--- */
.insert-quote-panel {
clear: both;
Line 7:
box-sizing: border-box;
margin: 0 0 2em 0;
 
/* Flexbox settings */
display: flex;
flex-direction: row;
align-items: flex-start;
color: #202122;
/* THIS ensures the image and the gray box align at the top edge */
align-items: flex-start;
gap: 1em; /* Space between the photo and the gray box */
}
 
/* --- 2. The Content Box: TheIMAGE graySTYLING rectangle--- */
.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; /* Expands to fill available width */
min-width: 0; /* Prevents flex overflow issues */
width: 100%;
}
 
/* =================================================================
/* Visual styles */
SCENARIO A: NO IMAGE (Refined 2px Minimalist Bar)
background: #F8F9FA;
================================================================= */
border: 0 solid #9CA4AC;
border-radius: 0;
/* Internal padding for the text */
padding: .5em;
 
/* Text1. Main Content colorContainer */
.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;
}
 
/* 3--- B1. TheRESET THE QUOTE TEXT (Only for Has-Image) Wrapper--- */
.insert-quote-panel.has-image {.insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote,
flex: 0 0 auto; /* Keeps image explicit size */
.insert-quote-panel.has-image .insert-quote-content p,
line-height: 0;
.insert-quote-panel.has-image .insert-quote-content div {
margin-top: 0; /* Safety: ensures image isn't pushed down by default styles */
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) --- */
/* Link colors applied to the content box */
.insert-quote-panel.has-image .insert-quote-content a.templatequotecite,
.insert-quote-panel.has-image .insert-quote-content cite,
.insert-quote-content a:visited { color: #202122; text-decoration: underline; }
.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;
}