پیش‌نمایش زنده
کد HTML
<button class="button x">
  <svg
    viewBox="0 0 16 16"
    class="bi bi-twitter-x"
    fill="currentColor"
    height="16"
    width="16"
    xmlns="http://www.w3.org/2000/svg"
  >
    <path
      d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"
    ></path>
  </svg>
  Continue with X
</button>
کد CSS
.button.x {
  max-width: 320px;
  display: flex;
  padding: 0.5rem 1.4rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  gap: 0.75rem;
  color: #ffffff;
  background-color: #000;
  cursor: pointer;
  transition: all 0.6s ease;
  text-decoration: none;
}

.button.x svg {
  height: 16px;
  width: 16px;
  fill: #fff;
  margin-right: 0.5rem;
}

.button.x:hover {
  transform: scale(1.02);
  background-color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.x:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

.button.x:active {
  transform: scale(0.98);
  opacity: 0.8;
}

@media (max-width: 480px) {
  .button.x {
    max-width: 100%;
  }
}
نوع: button
تاریخ ایجاد: 2026/06/05
آخرین بروزرسانی: 2026/06/05