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 |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.emu-badge { | .emu-badge { | ||
display: inline-block; | display: inline-block; | ||
font-family: "Consolas", "Courier New", monospace, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | |||
font-weight: 700; | |||
font-size: 0.95em; | |||
padding: 2px 5px; | |||
margin: 0 6px 6px 0; | |||
border-radius: 14px; | |||
color: white; | color: white; | ||
background-color: | text-align: center; | ||
cursor: default; | |||
box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.1); | |||
user-select: none; | |||
transition: background-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; | |||
min-width: 40px; | |||
line-height: 1.3; | |||
vertical-align: middle; | |||
} | } | ||
/* Good (green) */ | |||
.emu-badge.good { | .emu-badge.good { | ||
background- | background: | ||
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)), | |||
#28a745; | |||
box-shadow: 0 1.5px 6px rgba(40, 167, 69, 0.4); | |||
} | } | ||
/* Moderate (yellow) */ | |||
.emu-badge.mid { | .emu-badge.mid { | ||
background-color: # | background: | ||
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)), | |||
#ffc107; | |||
color: #212529; | |||
box-shadow: 0 1.5px 6px rgba(255, 193, 7, 0.4); | |||
} | } | ||
/* Unplayable (red) */ | |||
.emu-badge.bad { | .emu-badge.bad { | ||
background- | background: | ||
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)), | |||
#dc3545; | |||
box-shadow: 0 1.5px 6px rgba(220, 53, 69, 0.4); | |||
} | |||
.emu-badge:hover { | |||
filter: brightness(1.1); | |||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); | |||
} | } | ||
Latest revision as of 19:34, 16 May 2025
.emu-badge {
display: inline-block;
font-family: "Consolas", "Courier New", monospace, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: 700;
font-size: 0.95em;
padding: 2px 5px;
margin: 0 6px 6px 0;
border-radius: 14px;
color: white;
text-align: center;
cursor: default;
box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.1);
user-select: none;
transition: background-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
min-width: 40px;
line-height: 1.3;
vertical-align: middle;
}
/* Good (green) */
.emu-badge.good {
background:
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)),
#28a745;
box-shadow: 0 1.5px 6px rgba(40, 167, 69, 0.4);
}
/* Moderate (yellow) */
.emu-badge.mid {
background:
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)),
#ffc107;
color: #212529;
box-shadow: 0 1.5px 6px rgba(255, 193, 7, 0.4);
}
/* Unplayable (red) */
.emu-badge.bad {
background:
linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1)),
#dc3545;
box-shadow: 0 1.5px 6px rgba(220, 53, 69, 0.4);
}
.emu-badge:hover {
filter: brightness(1.1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}