Template:EmuPerformance/styles.css: Difference between revisions

From Handhelds Wiki
Jump to navigationJump to search
No edit summary
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-family: "Consolas", "Courier New", monospace, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
   font-weight: 600;
   font-weight: 700;
   font-size: 0.85em;
   font-size: 0.8em;
   padding: 3px 9px;
   padding: 2px 8px;
   margin: 0 5px 5px 0;
   margin: 0 6px 6px 0;
   border-radius: 12px;
   border-radius: 14px;
   color: white;
   color: white;
   text-align: center;
   text-align: center;
   cursor: default;
   cursor: default;
   box-shadow: 0 2px 5px rgba(0,0,0,0.12);
   box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.1);
   user-select: none;
   user-select: none;
   transition: background-color 0.3s ease, box-shadow 0.3s ease;
   transition: background-color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
   min-width: 48px;
   min-width: 44px;
  line-height: 1.3;
  vertical-align: middle;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1));
}
}


/* Good = Green */
/* Good (green) */
.emu-badge.good {
.emu-badge.good {
   background-color: #28a745; /* Bootstrap-like green */
   background-color: #28a745;
   box-shadow: 0 2px 8px rgba(40,167,69,0.5);
   box-shadow: 0 1.5px 6px rgba(40, 167, 69, 0.4);
}
}


/* Moderate = Yellow */
/* Moderate (yellow) */
.emu-badge.mid {
.emu-badge.mid {
   background-color: #ffc107; /* Bootstrap-like yellow */
   background-color: #ffc107;
   color: #212529; /* dark text for contrast */
   color: #212529;
   box-shadow: 0 2px 8px rgba(255,193,7,0.5);
   box-shadow: 0 1.5px 6px rgba(255, 193, 7, 0.4);
}
}


/* Unplayable = Red */
/* Unplayable (red) */
.emu-badge.bad {
.emu-badge.bad {
   background-color: #dc3545; /* Bootstrap-like red */
   background-color: #dc3545;
   box-shadow: 0 2px 8px rgba(220,53,69,0.5);
   box-shadow: 0 1.5px 6px rgba(220, 53, 69, 0.4);
}
}


/* Optional: Slight hover glow for all badges */
/* Hover effect */
.emu-badge:hover {
.emu-badge:hover {
   box-shadow: 0 0 10px rgba(0,0,0,0.3);
  filter: brightness(1.1);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
}

Revision as of 19:31, 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.8em;
  padding: 2px 8px;
  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: 44px;
  line-height: 1.3;
  vertical-align: middle;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.1));
}

/* Good (green) */
.emu-badge.good {
  background-color: #28a745;
  box-shadow: 0 1.5px 6px rgba(40, 167, 69, 0.4);
}

/* Moderate (yellow) */
.emu-badge.mid {
  background-color: #ffc107;
  color: #212529;
  box-shadow: 0 1.5px 6px rgba(255, 193, 7, 0.4);
}

/* Unplayable (red) */
.emu-badge.bad {
  background-color: #dc3545;
  box-shadow: 0 1.5px 6px rgba(220, 53, 69, 0.4);
}

/* Hover effect */
.emu-badge:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}