Template:Insert quote panel/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Template:Insert quote panel/styles.css */ |
/* Template:Insert quote panel/styles.css */ |
||
/* --- 1. MAIN CONTAINER (Flexbox Setup) --- */ |
|||
/* 1. The Container */ |
|||
.insert-quote-panel { |
.insert-quote-panel { |
||
clear: both; |
clear: both; |
||
| Line 9: | Line 9: | ||
display: flex; |
display: flex; |
||
flex-direction: row; |
flex-direction: row; |
||
align-items: flex-start; |
align-items: flex-start; /* Aligns image top with text top */ |
||
| ⚫ | |||
} |
} |
||
/* --- 2. FORMAT: WITH IMAGE (Clean, White, Close spacing) --- */ |
|||
/* 2. The Content Box */ |
|||
.insert-quote- |
.insert-quote-panel.has-image { |
||
gap: 0.8em; /* Distance between photo and text */ |
|||
flex: 1; |
|||
} |
|||
| ⚫ | |||
| ⚫ | |||
background: #ffffff; /* White background */ |
|||
border: none; /* No borders */ |
|||
padding: 0.2em 0 0 0; /* Slight top pad to align text baseline with eyes */ |
|||
color: #202122; |
|||
} |
|||
/* --- 3. FORMAT: NO IMAGE (Original Gray Box) --- */ |
|||
/* This restores your original look exactly when no image is present */ |
|||
.insert-quote-panel.no-image .insert-quote-content { |
|||
background: #F8F9FA; |
background: #F8F9FA; |
||
border: 0 solid #9CA4AC; |
border: 0 solid #9CA4AC; |
||
padding: .5em .5em .5em 0.5em; /* Original padding */ |
|||
border-radius: 0; |
|||
padding: .5em; |
|||
color: #202122; |
color: #202122; |
||
} |
} |
||
/* |
/* --- 4. SHARED CONTENT SETTINGS --- */ |
||
.insert-quote-content { |
|||
| ⚫ | |||
| ⚫ | |||
} |
|||
.insert-quote-content a, |
|||
| ⚫ | |||
| ⚫ | |||
.insert-quote-image { |
.insert-quote-image { |
||
flex: 0 0 auto; |
flex: 0 0 auto; |
||
| Line 31: | Line 49: | ||
} |
} |
||
| ⚫ | |||
.insert-quote-image img { |
.insert-quote-image img { |
||
/* Create the circle */ |
|||
border-radius: 50%; |
border-radius: 50%; |
||
/* The "White Crop" border (reduced to 1px, no shadow) */ |
|||
border: 1px solid #ffffff; |
border: 1px solid #ffffff; |
||
/* Ensure it is a perfect circle */ |
|||
width: 50px; |
width: 50px; |
||
height: 50px; |
height: 50px; |
||
object-fit: cover; |
object-fit: cover; |
||
} |
} |
||
/* Link colors */ |
|||
| ⚫ | |||
| ⚫ | |||
Revision as of 21:28, 16 December 2025
/* Template:Insert quote panel/styles.css */
/* --- 1. MAIN CONTAINER (Flexbox Setup) --- */
.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; /* Aligns image top with text top */
}
/* --- 2. FORMAT: WITH IMAGE (Clean, White, Close spacing) --- */
.insert-quote-panel.has-image {
gap: 0.8em; /* Distance between photo and text */
}
.insert-quote-panel.has-image .insert-quote-content {
background: #ffffff; /* White background */
border: none; /* No borders */
padding: 0.2em 0 0 0; /* Slight top pad to align text baseline with eyes */
color: #202122;
}
/* --- 3. FORMAT: NO IMAGE (Original Gray Box) --- */
/* This restores your original look exactly when no image is present */
.insert-quote-panel.no-image .insert-quote-content {
background: #F8F9FA;
border: 0 solid #9CA4AC;
padding: .5em .5em .5em 0.5em; /* Original padding */
color: #202122;
}
/* --- 4. SHARED CONTENT SETTINGS --- */
.insert-quote-content {
flex: 1;
min-width: 0;
}
.insert-quote-content a,
.insert-quote-content a:visited { color: #202122; text-decoration: underline; }
/* --- 5. IMAGE STYLING (Round + White Crop) --- */
.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;
}