پیش‌نمایش زنده
کد HTML
<label class="uiverse-pixel-checkbox">
  <input type="checkbox" class="uiverse-pixel-checkbox-input" />
  <span class="uiverse-pixel-checkbox-box"></span>
  <span class="uiverse-pixel-checkbox-label">ENABLE CHEATS</span>
</label>
کد CSS
.uiverse-pixel-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-family: "Courier New", monospace;
  font-size: 1em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0.125em 0.125em 0 #000;
  cursor: pointer;
  user-select: none;
}

.uiverse-pixel-checkbox-input {
  appearance: none;
  margin: 0;
  width: 1.5em;
  height: 1.5em;
  background: #ff6b35;
  image-rendering: pixelated;
  position: relative;
  border: none;
  box-shadow:
    0 0 0 0.15em #000,
    0 0 0 0.3em #fff,
    0 0 0 0.45em #000,
    0 0.4em 0 0 #d1451e,
    0 0.4em 0 0.15em #000;
  transition: background 0.2s steps(1);
}

.uiverse-pixel-checkbox-input:checked {
  background: #00cc66;
}

.uiverse-pixel-checkbox-input:checked::after {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 1.1em;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px #fff;
}

.uiverse-pixel-checkbox-input:hover {
  background: #ff8c42;
  animation: uiverse-glitch 0.3s steps(2) infinite;
}

.uiverse-pixel-checkbox-input:focus-visible {
  outline: 2px dashed #fff;
  outline-offset: 0.2em;
}

.uiverse-pixel-checkbox-label {
  pointer-events: none;
}

/* Glitch effect */
@keyframes uiverse-glitch {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(1px, -1px);
  }
  60% {
    transform: translate(-1px, -1px);
  }
  80% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}
نوع: checkbox
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05