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 9: Line 9:
border-radius: 0;
border-radius: 0;
background: #F8F9FA;
background: #F8F9FA;

/* Flexbox setup for image + text layout */
display: flex;
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 */


/* lock text color so dark mode doesn’t flip it */
/* lock text color so dark mode doesn’t flip it */
Line 14: Line 20:
}
}


/* The wrapper around the text content */
/* Optional: keep link colors constant too (pick one style) */
.insert-quote-content {
/* Neutral (same as text) */
flex: 1; /* Takes up all remaining width */
min-width: 0; /* CSS trick to prevent text overflow issues in flex containers */
}

/* The wrapper around the image (if present) */
.insert-quote-image {
flex: 0 0 auto; /* Prevents image from shrinking or growing */
line-height: 0; /* Prevents extra spacing below image */
}

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

/* —or— Wikimedia blue, unchanged across themes */
/* .insert-quote-panel a,
.insert-quote-panel a:visited { color: #36c; } */

Revision as of 21:05, 16 December 2025

/* Template:Insert quote panel/styles.css */
.insert-quote-panel {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  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 */
  display: flex;
  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 */

  /* lock text color so dark mode doesn’t flip it */
  color: #202122;
}

/* The wrapper around the text content */
.insert-quote-content {
  flex: 1;      /* Takes up all remaining width */
  min-width: 0; /* CSS trick to prevent text overflow issues in flex containers */
}

/* The wrapper around the image (if present) */
.insert-quote-image {
  flex: 0 0 auto; /* Prevents image from shrinking or growing */
  line-height: 0; /* Prevents extra spacing below image */
}

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