index.less 1.29 KB
/* JoinFamily/index.less */

.motto-input-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.motto-input-box {
  width: 5rem;
  height: 5rem;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.motto-input {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 1.5rem;
  background-color: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: inherit;
}

.identity-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #374151;
  margin-bottom: 24rpx;
}

// 家庭选择弹窗样式
.family-selector-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

.family-item {
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-2rpx);
    box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
  }

  &:active {
    transform: translateY(0);
  }
}

// 文本截断样式
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

// 间距样式
.space-y-3 > * + * {
  margin-top: 24rpx;
}

.space-x-3 > * + * {
  margin-left: 24rpx;
}