Jump to content

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

From Insurer Brain
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. The Container: Flexbox Layout */
.insert-quote-panel {
.insert-quote-panel {
clear: both;
clear: both;
Line 5: Line 7:
box-sizing: border-box;
box-sizing: border-box;
margin: 0 0 2em 0;
margin: 0 0 2em 0;
padding: .5em .5em .5em 0;
border: 0 solid #9CA4AC;
border-radius: 0;
background: #F8F9FA;


/* Flexbox setup for image + text layout */
/* Flexbox settings */
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
align-items: flex-start; /* Aligns image to top of text. Use 'center' if you prefer vertical centering */
gap: 1em; /* Space between image and text */
/* THIS ensures the image and the gray box align at the top edge */
align-items: flex-start;

/* lock text color so dark mode doesn’t flip it */
gap: 1em; /* Space between the photo and the gray box */
color: #202122;
}
}


/* The wrapper around the text content */
/* 2. The Content Box: The gray rectangle */
.insert-quote-content {
.insert-quote-content {
flex: 1; /* Takes up all remaining width */
flex: 1; /* Expands to fill available width */
min-width: 0; /* CSS trick to prevent text overflow issues in flex containers */
min-width: 0; /* Prevents flex overflow issues */

/* Visual styles */
background: #F8F9FA;
border: 0 solid #9CA4AC;
border-radius: 0;
/* Internal padding for the text */
padding: .5em;

/* Text color */
color: #202122;
}
}


/* The wrapper around the image (if present) */
/* 3. The Image Wrapper */
.insert-quote-image {
.insert-quote-image {
flex: 0 0 auto; /* Prevents image from shrinking or growing */
flex: 0 0 auto; /* Keeps image explicit size */
line-height: 0; /* Prevents extra spacing below image */
line-height: 0;
margin-top: 0; /* Safety: ensures image isn't pushed down by default styles */
}
}


/* Optional: keep link colors constant too */
/* Link colors applied to the content box */
.insert-quote-panel a,
.insert-quote-content a,
.insert-quote-panel a:visited { color: #202122; text-decoration: underline; }
.insert-quote-content a:visited { color: #202122; text-decoration: underline; }

Revision as of 21:09, 16 December 2025

/* Template:Insert quote panel/styles.css */

/* 1. The Container: Flexbox Layout */
.insert-quote-panel {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 2em 0;

  /* Flexbox settings */
  display: flex;
  flex-direction: row;
  
  /* 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: The gray rectangle */
.insert-quote-content {
  flex: 1;      /* Expands to fill available width */
  min-width: 0; /* Prevents flex overflow issues */

  /* Visual styles */
  background: #F8F9FA;
  border: 0 solid #9CA4AC;
  border-radius: 0;
  
  /* Internal padding for the text */
  padding: .5em; 

  /* Text color */
  color: #202122;
}

/* 3. The Image Wrapper */
.insert-quote-image {
  flex: 0 0 auto; /* Keeps image explicit size */
  line-height: 0;
  margin-top: 0; /* Safety: ensures image isn't pushed down by default styles */
}

/* Link colors applied to the content box */
.insert-quote-content a,
.insert-quote-content a:visited { color: #202122; text-decoration: underline; }