审查视图

app/components/realtime-chat/realtime-chat.module.scss 1.2 KB
202304001 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
.realtime-chat {
  width: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  .circle-mic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #a0d8ef, #f0f8ff);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .icon-center {
    font-size: 24px;
  }

  .bottom-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: 20px;
    box-sizing: border-box;
    padding: 0 20px;
  }

  .icon-left,
  .icon-right {
    width: 46px;
    height: 46px;
    font-size: 36px;
    background: var(--second);
    border-radius: 50%;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    &:hover {
      opacity: 0.8;
    }
  }

  &.mobile {
    display: none;
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}