MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,056:
 
/* ======================================================= */
/* NATIVEREAD PILL - INLINE BADGESSTYLE (Forces Perfect Baseline) */
/* ======================================================= */
.read-pill {
display: inline; /* Treats badge exactly like text */
white-space: nowrap; /* Prevents the badge from splitting at line breaks */
/* VISUALSShape */
border-radius: 4px;
padding: 0.1em 0.4em; /* Horizontal padding for the "pill" look */
margin: 0 0.1em;
/* FONT INHERITANCE (Critical)Typography */
font-size: 0.85em; /* Slightly smaller */
font-weight: 500;
/* PREVENTSFORCE VISUALTHE BLEEDBASE TEXT COLOR */
color: inherit#202122 !important;
/* This creates a tiny buffer so the background doesn't overlap line above */
/* Clone ensures background renders if it wraps */
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
 
/* ======================================================= */
/* Link Color Reset */
/* FORCE ALL LINKS INSIDE PILL TO BE DARK GRAY */
.read-pill a {
/* We must target 'a.new' specifically to fix the red links */
color: inherit !important;
/* ======================================================= */
/* ======================================================= */
/* READ PILL LINK COLORS */
/* ======================================================= */
 
/* 1. PAGE EXISTS (Standard Link) */
/* Forces Dark Gray (#202122) */
.read-pill a {,
.read-pill a:visited,
.read-pill a:active,
.read-pill a.external {
color: #202122 !important;
text-decoration: none !important;
}
 
/* 2. PAGE DOES NOT EXIST (Broken/Red Link) */
/* Forces White Text + Red Background (for readability) */
.read-pill a.new {
color: white !important;
/* CRITICAL: We must add a red background, otherwise
white text on a yellow pill is invisible. */
background-color: #d73333;
/* Formatting to make the red bg look good inside the pill */
padding: 0 4px;
border-radius: 3px;
text-decoration: none !important;
}