reception-filter-shared.scss 4.6 KB
.glass-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;
}

.filter-group {
  min-width: 0;
  padding: 3px;
  border-radius: 8px;
}

.filter-group-compact {
  padding: 2px;
  border-radius: 6px;
}

.filter-tabs-row {
  flex-direction: row;
  flex: 1;
  width: 100%;
  height: var(--reception-list-filters-tabs-row-height, 40px);
  min-height: var(--reception-list-filters-tabs-row-height, 40px);
}

.entry-filter-segmented-wrap {
  align-items: stretch;

  .un-segmented {
    flex: 1;
    width: 100%;
    border-width: 0;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    padding: 2px;
  }

  .un-segmented__item {
    border-width: 0;
    border-radius: 10px;

    .un-segmented__item__text {
      color: #64748b;
      font-size: var(--reception-list-filters-segmented-font-size, 14px);
    }

    &--active {
      background-color: #ffffff;
      // ✅ 性能优化:移除 box-shadow
      // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

      .un-segmented__item__text {
        color: #1677ff;
        font-weight: 600;
      }
    }
  }
}

.filter-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  flex-grow: 0;
  flex-shrink: 0;
  margin-left: auto;
}

// =========================
// 组合类(降低模板里的 class 噪音)
// - 保留现有的原子类供历史代码使用
// - 新代码优先使用下面这些更“语义化”的短类名
// =========================

// 基础卡片(等价于 glass-card)
.reception-filter-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;
}

// 筛选项外壳(等价于 filter-group + filter-group-compact)
.reception-filter-shell {
  min-width: 0;
  padding: 2px;
  border-radius: 6px;
}

// "半宽 segmented"容器(从 Primary 本地样式提取,供 Primary/Secondary 复用)
.reception-filter-entry-segmented-half {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 50%;
  width: 50%;
  // ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
  min-width: 0;
}

// =========================
// 更短的缩写类(进一步减少模板字符数)
// - rcf = reception center filters
// - 建议模板层优先使用这组短类
// =========================

// 基础卡片:卡片外观 + 壳(等价于 reception-filter-card + reception-filter-shell)
.rcf-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;

  min-width: 0;
  padding: 2px;
  border-radius: 6px;
}

// 半宽 segmented:rcf-card + 50% 宽度
.rcf-half {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;

  min-width: 0;
  padding: 2px;
  border-radius: 6px;

  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 50%;
  width: 50%;
  // ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
  min-width: 0;
}

// review 区域卡片(用于 Secondary):rcf-card + review-tabs-wrap 的布局外观
.rcf-review-card {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;

  min-width: 0;
  padding: 2px;
  border-radius: 6px;

  flex: 1 1 0;
  min-width: 0;
  background: #f3f7fd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2px;
  box-sizing: border-box;
}

// review 区域半宽 segmented:rcf-half + review-tabs-wrap 的布局外观
.rcf-review-half {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 1);
  // ✅ 性能优化:移除 box-shadow
  // box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  flex-direction: column;

  min-width: 0;
  padding: 2px;
  border-radius: 6px;

  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 50%;
  width: 50%;
  // ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
  min-width: 0;

  flex: 1 1 0;
  min-width: 0;
  background: #f3f7fd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2px;
  box-sizing: border-box;
}