SearchBox.wxss 1.67 KB
/* components/SearchBox/SearchBox.wxss */
@import '/style/sprite.wxss';

.search-box {
  height: 104rpx;
  box-sizing: border-box;
  padding: 0 var(--margin);
  background-color: #fff;
}

.box-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search {
  width: 100%;
  height: 72rpx;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-1 {
  padding: 0 6rpx;
  border-radius: 38px;
  border: 3rpx solid var(--btnColor);
}

.type-1 .button {
  width: 104rpx;
  height: 60rpx;
  border-radius: 38rpx;
  background-color: var(--btnColor);
  color: #fff;
  font-size: var(--margin);
}

.type-1 .input-box {
  width: calc(100% - 110rpx);
  display: flex;
  align-items: center;
}

.input-box .icon {
  width: 58rpx;
}

.type-1 .input-box .input,
.type-2 .input-box .input{
  width: calc(100% - 130rpx);
  font-size: 28rpx;
}
.type-3 .input-box .input {
  width: calc(100% - 70rpx);
  font-size: 28rpx;
  margin-left: 12rpx;
}
.input-box .clear-box {
  width: 58rpx;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-box .clear-box .clear {
  width: 32rpx;
  height: 32rpx;
  opacity: .7;
}

.type-2 .input-box {
  display: flex;
  align-items: center;
  width: 592rpx;
  height: 100%;
  background: #F8F8F8;
  border-radius: 38rpx;
}

.type-3 .input-box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #F5F6F7;
  border-radius: 12rpx;
  padding: 0 20rpx;
}

.type-2 .button {
  color: #656566;
  font-size: var(--margin);
}

.input-placeholder {
  color: #CFCFCF;
  font-size: 28rpx;
}

.type-3 {
  width: 100%;
}

.type-3 .button {
  display: none;
}