示例工程 27-framework-comparison

27-framework-comparison/app/src/styles/app.css

css · 3.4 KB

.app {
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand h1 {
  margin: 0 8px 0 0;
  font-size: 15px;
}

.pill {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.tab {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.tab.active {
  background: var(--primary);
  color: var(--primary-fg);
}

section[data-panel] {
  padding: 16px 20px 24px;
}

.matrix,
.bench,
.decision {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pad {
  padding: 14px;
}

h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

h3 {
  margin: 0;
  font-size: 13px;
}

.small {
  font-size: 11px;
}

.note {
  margin: 0;
  font-size: 11px;
}

.matrix-table,
.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.matrix-table th,
.matrix-table td,
.bench-table th,
.bench-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.matrix-table thead th,
.bench-table thead th {
  color: var(--muted);
  font-weight: 500;
}

.matrix-table tbody th {
  width: 100px;
  color: var(--muted);
  font-weight: 500;
}

.bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bundle header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bundle dl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12px;
}

.bundle dl div {
  display: flex;
  justify-content: space-between;
}

.bundle dt {
  color: var(--muted);
}

.bundle dd {
  margin: 0;
  font-family: var(--font-mono);
}

.bench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bench-table td {
  font-family: var(--font-mono);
  font-size: 11px;
}

.bar {
  display: inline-block;
  width: 70px;
  height: 6px;
  margin-left: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
  vertical-align: middle;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.presets {
  display: flex;
  gap: 6px;
}

.weights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.weight {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.weight input {
  width: 100%;
  accent-color: var(--primary);
}

.weight code {
  text-align: right;
}

.winner {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}

.ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.rank-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}

.rank-bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.rank-row code {
  text-align: right;
}