Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
} |
} |
||
/* --- 2. IMAGE STYLING --- */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
(Transparent, No border, Text tight to image) |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
gap: 10px; /* Very close spacing (approx 0.6em) */ |
|||
} |
} |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
object-fit: cover; |
|||
| ⚫ | |||
/* FIX: "Text too low" |
|||
MediaWiki adds <p> tags with top-margins automatically. |
|||
This forces the first paragraph to jump up to the top line. */ |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| ⚫ | |||
/* ========================================= |
|||
| ⚫ | |||
(Gray background box) |
|||
========================================= */ |
|||
.insert-quote-panel.no-image .insert-quote-content { |
.insert-quote-panel.no-image .insert-quote-content { |
||
background: #F8F9FA; |
background: #F8F9FA; |
||
border: 0 solid #9CA4AC; |
border: 0 solid #9CA4AC; |
||
padding: .5em; |
padding: .5em; |
||
color: #202122; |
color: #202122; |
||
} |
} |
||
| ⚫ | |||
/* ========================================= |
|||
| ⚫ | |||
SHARED STYLES |
|||
gap: 15px; /* Comfortable space between face and text */ |
|||
========================================= */ |
|||
.insert-quote-content { |
|||
flex: 1; |
|||
min-width: 0; |
|||
} |
} |
||
| ⚫ | |||
/* Image Styling */ |
|||
/* Ensure OUR wrapper is invisible */ |
|||
| ⚫ | |||
background: transparent !important; |
|||
| ⚫ | |||
border: none !important; |
|||
| ⚫ | |||
padding: 0 !important; |
|||
margin: 0 !important; |
|||
color: #202122; |
|||
} |
} |
||
| ⚫ | |||
| ⚫ | |||
DEEP RESET: OVERRIDE THE NESTED {{Quote}} TEMPLATE |
|||
| ⚫ | |||
This strips the gray bar/box from the {{Quote}} template itself |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
object-fit: cover; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
margin: 0 !important; /* Remove external margins */ |
|||
width: auto !important; /* Let it flow naturally */ |
|||
float: none !important; /* Prevent floating issues */ |
|||
| ⚫ | |||
/* Force the text inside the {{Quote}} to align top-left */ |
|||
| ⚫ | |||
| ⚫ | |||
margin-top: 0 !important; |
|||
| ⚫ | |||
text-align: left !important; |
|||
} |
} |
||
Revision as of 21:46, 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;
}
/* --- 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. SCENARIO: NO IMAGE (Gray Box) --- */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FA;
border: 0 solid #9CA4AC;
padding: .5em;
color: #202122;
}
/* --- 4. SCENARIO: WITH IMAGE (The Fix) --- */
.insert-quote-panel.has-image {
gap: 15px; /* Comfortable space between face and text */
}
.insert-quote-panel.has-image .insert-quote-content {
/* Ensure OUR wrapper is invisible */
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
color: #202122;
}
/* =================================================================
DEEP RESET: OVERRIDE THE NESTED {{Quote}} TEMPLATE
This strips the gray bar/box from the {{Quote}} template itself
================================================================= */
.insert-quote-panel.has-image .insert-quote-content .quotebox,
.insert-quote-panel.has-image .insert-quote-content blockquote {
background: transparent !important; /* Remove gray background */
border: none !important; /* Remove gray borders/bars */
padding: 0 !important; /* Remove internal padding */
margin: 0 !important; /* Remove external margins */
width: auto !important; /* Let it flow naturally */
float: none !important; /* Prevent floating issues */
}
/* Force the text inside the {{Quote}} to align top-left */
.insert-quote-panel.has-image .insert-quote-content p,
.insert-quote-panel.has-image .insert-quote-content div {
margin-top: 0 !important;
padding-top: 0 !important;
text-align: left !important;
}