FilterBar.wxss 1.47 KB
/* components/FilterBar/FilterBar.wxss */
.filter-bar {
  background: #FFFFFF;
  padding: 16rpx 24rpx;
}

/* Search Box */
.search-box {
  margin-bottom: 16rpx;
}

.search-input {
  background: #F7F8FA;
  border-radius: 72rpx;
  width: 100%;
  height: 72rpx;
  display: flex;
  align-items: center;
}

.search-icon {
  width: 28rpx;
  height: 28rpx;
  margin: 0 10rpx 0 26rpx;
  flex-shrink: 0;
}

.search-clear {
  width: 36rpx;
  height: 36rpx;
  margin: 0 26rpx 0 10rpx;
  flex-shrink: 0;
  z-index: 10;
}

.input {
  font-size: 28rpx;
  height: 38rpx;
  line-height: 38rpx;
  flex: 1;
  color: #333;
}

.input-placeholder {
  color: #BBBBBB;
}

/* Filter Box */
.filter-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.filter-item {
  height: 56rpx;
  border-radius: 56rpx;
  background: #F7F8FA;
  padding: 0 16rpx 0 24rpx;
  font-size: 26rpx;
  color: #666666;
  margin-right: 16rpx;
  display: flex;
  align-items: center;
  /* Handle wrap if many filters */
}

.filter-item.active {
  color: #2C66F7;
  /* background: #F7F8FA; */
  /* Background stays same in reference */
}

.filter-text {
  line-height: 40rpx;
  max-width: 170rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-icon {
  width: 32rpx;
  height: 32rpx;
  flex-shrink: 0;
  margin-left: 4rpx;
}

.reset-btn {
  color: #222222;
  font-size: 26rpx;
  padding: 10rpx;
  flex-shrink: 0;
}