Template:EmuPerformance/styles.css: Difference between revisions
From Handhelds Wiki
Jump to navigationJump to search
HandheldWiki (talk | contribs) Created page with ".emu-badge { display: inline-block; padding: 0.25em 0.6em; margin: 0.1em; border-radius: 999px; font-weight: bold; font-size: 90%; color: white; background-color: #888; →fallback: } .emu-badge.good { background-color: #4CAF50; } .emu-badge.mid { background-color: #FFEB3B; color: black; } .emu-badge.bad { background-color: #F44336; }" |
HandheldWiki (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
.emu-badge { | .emu-badge { | ||
display: inline-block; | display: inline-block; | ||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | |||
font-weight: 600; | |||
font-size: 0.85em; | |||
padding: 3px 9px; | |||
margin: 0 5px 5px 0; | |||
border-radius: 12px; | |||
color: white; | color: white; | ||
background-color: | text-align: center; | ||
cursor: default; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.12); | |||
user-select: none; | |||
transition: background-color 0.3s ease, box-shadow 0.3s ease; | |||
min-width: 48px; | |||
} | } | ||
/* Good = Green */ | |||
.emu-badge.good { | .emu-badge.good { | ||
background-color: # | background-color: #28a745; /* Bootstrap-like green */ | ||
box-shadow: 0 2px 8px rgba(40,167,69,0.5); | |||
} | } | ||
/* Moderate = Yellow */ | |||
.emu-badge.mid { | .emu-badge.mid { | ||
background-color: # | background-color: #ffc107; /* Bootstrap-like yellow */ | ||
color: | color: #212529; /* dark text for contrast */ | ||
box-shadow: 0 2px 8px rgba(255,193,7,0.5); | |||
} | } | ||
/* Unplayable = Red */ | |||
.emu-badge.bad { | .emu-badge.bad { | ||
background-color: # | background-color: #dc3545; /* Bootstrap-like red */ | ||
box-shadow: 0 2px 8px rgba(220,53,69,0.5); | |||
} | |||
/* Optional: Slight hover glow for all badges */ | |||
.emu-badge:hover { | |||
box-shadow: 0 0 10px rgba(0,0,0,0.3); | |||
} | } | ||
Revision as of 19:28, 16 May 2025
.emu-badge {
display: inline-block;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: 600;
font-size: 0.85em;
padding: 3px 9px;
margin: 0 5px 5px 0;
border-radius: 12px;
color: white;
text-align: center;
cursor: default;
box-shadow: 0 2px 5px rgba(0,0,0,0.12);
user-select: none;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
min-width: 48px;
}
/* Good = Green */
.emu-badge.good {
background-color: #28a745; /* Bootstrap-like green */
box-shadow: 0 2px 8px rgba(40,167,69,0.5);
}
/* Moderate = Yellow */
.emu-badge.mid {
background-color: #ffc107; /* Bootstrap-like yellow */
color: #212529; /* dark text for contrast */
box-shadow: 0 2px 8px rgba(255,193,7,0.5);
}
/* Unplayable = Red */
.emu-badge.bad {
background-color: #dc3545; /* Bootstrap-like red */
box-shadow: 0 2px 8px rgba(220,53,69,0.5);
}
/* Optional: Slight hover glow for all badges */
.emu-badge:hover {
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}