qi-design-benchmark / style.css
SII-LWY
Publish QI benchmark website
7319be2
Raw History Blame Contribute Delete
10.2 kB
:root {
font-family: Inter, Segoe UI, Arial, sans-serif;
color: #202726;
background: #f7f9f8;
font-size: 14px;
letter-spacing: 0;
--green: #126b58;
--line: #dce3df;
--muted: #68756e
}
* {
box-sizing: border-box
}
body {
margin: 0
}
button,
input,
select {
font: inherit
}
button,
a,
input,
select {
outline-offset: 4px
}
button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 36px;
padding: 7px 12px;
border: 1px solid #cad4cf;
border-radius: 5px;
background: #fff;
color: inherit;
cursor: pointer
}
button:hover {
background: #edf3ef
}
button:disabled {
opacity: .45;
cursor: not-allowed
}
a {
color: var(--green)
}
button svg,
a svg {
width: 17px;
height: 17px;
flex-shrink: 0
}
header {
height: 65px;
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 4%;
background: #fff
}
.brand {
font-weight: 750;
font-size: 19px;
color: #1b3a2e;
text-decoration: none
}
.brand span {
font-size: 13px;
color: var(--muted);
font-weight: 400
}
.header-actions {
display: flex;
align-items: center;
gap: 24px
}
.status {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--muted)
}
.status i {
width: 7px;
height: 7px;
background: #278365;
border-radius: 50%
}
main {
max-width: 1360px;
padding: 35px 40px 50px;
margin: auto
}
.title-row,
.scope-row,
.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px
}
.eyebrow {
font-size: 11px;
font-weight: 700;
color: var(--green);
margin: 0 0 10px
}
h1 {
font-size: 30px;
line-height: 1.2;
margin: 0;
font-weight: 650;
letter-spacing: 0
}
.subline {
color: var(--muted);
margin: 10px 0 0
}
.primary {
background: var(--green);
color: white;
border-color: var(--green)
}
.primary:hover {
background: #0e5949
}
.scope-row {
margin: 29px 0 22px
}
.segmented {
display: flex;
border: 1px solid #c8d6ce;
border-radius: 5px;
overflow: hidden
}
.segmented button {
border: 0;
border-radius: 0;
min-width: 88px
}
.segmented .selected {
background: #dceee4;
color: #155d47;
font-weight: 700
}
.muted {
font-size: 12px;
color: var(--muted);
line-height: 1.7;
overflow-wrap: anywhere
}
.stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 20px 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
gap: 20px
}
.stats>div {
padding-left: 24px;
border-left: 1px solid var(--line)
}
.stats>div:first-child {
padding-left: 0;
border: 0
}
.stats span,
.point-values span {
display: block;
color: var(--muted);
font-size: 10px;
font-weight: 600
}
.stats strong {
display: block;
font-size: 26px;
line-height: 1.3;
margin-top: 9px;
font-weight: 600
}
.tabs {
display: flex;
border-bottom: 1px solid var(--line);
margin: 21px 0 0;
gap: 25px
}
.tabs button {
border: 0;
border-bottom: 2px solid transparent;
border-radius: 0;
background: none;
padding: 13px 0;
font-size: 13px;
color: var(--muted);
white-space: nowrap
}
.tabs .selected {
border-bottom-color: var(--green);
color: var(--green);
font-weight: 650
}
.section-heading {
margin: 24px 0 16px;
flex-wrap: wrap
}
h2 {
font-size: 17px;
font-weight: 650;
margin: 0
}
h3 {
font-size: 13px;
margin: 18px 0 12px
}
.tools {
display: flex;
align-items: center;
gap: 8px;
max-width: 100%;
flex-wrap: wrap
}
.icon {
width: 36px;
height: 36px;
padding: 8px;
flex-shrink: 0
}
input[type=search],
select {
border: 1px solid #cad4cf;
border-radius: 5px;
padding: 8px 10px;
background: white;
color: inherit;
min-height: 36px;
max-width: 100%
}
select {
max-width: 320px
}
input[type=search] {
width: 240px
}
.table-wrap {
width: 100%;
overflow: auto
}
table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
white-space: nowrap
}
th {
text-align: left;
font-size: 10px;
color: var(--muted);
background: #edf2ef;
padding: 11px 14px
}
td {
padding: 14px;
border-bottom: 1px solid var(--line)
}
td:nth-child(3) {
font-variant-numeric: tabular-nums;
font-weight: 700;
color: var(--green)
}
td .method {
color: var(--muted);
font-size: 11px;
display: block;
max-width: 320px;
white-space: normal;
overflow-wrap: anywhere;
margin-top: 4px
}
th button {
font-size: 10px;
padding: 0;
background: transparent;
border: 0;
min-height: 16px
}
th button svg {
height: 12px;
width: 12px
}
tbody tr {
cursor: pointer
}
tbody tr:hover {
background: #edf4ef
}
.badge {
display: inline-block;
padding: 3px 6px;
border-radius: 3px;
background: #e2eee8;
color: #24634b;
font-size: 10px
}
.badge.partial {
background: #fff0cb;
color: #855d0c
}
.badge.failed {
background: #f7e7e7;
color: #914444
}
.empty {
text-align: center;
padding: 26px 0 36px;
color: var(--muted);
font-size: 13px;
border-bottom: 1px solid var(--line);
margin: 0
}
.comparison-heading {
margin-top: 30px
}
.check {
display: flex;
gap: 7px;
align-items: center;
font-size: 12px;
line-height: 1.6
}
input[type=checkbox] {
accent-color: var(--green)
}
.legend {
display: flex;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 8px;
min-height: 24px
}
.legend label {
display: flex;
gap: 6px;
align-items: center;
font-size: 11px;
overflow-wrap: anywhere
}
.legend .dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0
}
#pareto {
display: block;
width: 100%;
height: 330px;
background: white;
border-bottom: 1px solid var(--line)
}
.chart-note {
margin: 8px 0 26px
}
.detail {
border-top: 1px solid var(--line)
}
.inspection {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
gap: 35px
}
.surface-wrap {
position: relative;
min-width: 0;
background: #edf2ef
}
#surface {
width: 100%;
height: 340px;
touch-action: none
}
#surface canvas {
display: block;
max-width: 100%
}
.surface-controls {
position: absolute;
bottom: 10px;
left: 12px;
right: 12px;
display: flex;
align-items: center;
justify-content: space-between
}
.point-values {
display: flex;
gap: 45px;
border-bottom: 1px solid var(--line);
padding: 15px 0
}
.point-values strong {
display: block;
font-size: 22px;
font-weight: 600;
margin-top: 8px
}
.constraint {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
gap: 10px;
padding: 9px 0;
border-bottom: 1px solid var(--line);
font-size: 11px
}
.constraint span:first-child {
overflow-wrap: anywhere
}
.pass {
color: #13714e
}
.fail {
color: #b14537
}
.submission-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin: 32px 0
}
.upload {
border: 1px dashed #a8bfb0;
border-radius: 6px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 18px;
min-height: 240px;
background: #eef4f0;
text-align: center;
padding: 24px
}
.upload>svg {
width: 32px;
height: 32px;
color: var(--green)
}
.upload span {
font-size: 12px;
color: var(--muted)
}
.upload input {
max-width: 100%;
font-size: 12px
}
.submission-form p,
.rules-grid p {
color: #56655e;
line-height: 1.8;
font-size: 13px
}
.submission-form button {
margin-top: 18px
}
.rules-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 45px
}
#rules-view {
padding-top: 25px
}
#rule-constraints {
max-width: 750px
}
footer {
border-top: 1px solid var(--line);
display: flex;
justify-content: space-between;
padding: 20px 4%;
font-size: 11px;
color: var(--muted);
gap: 20px
}
[hidden] {
display: none !important
}
#surface-error {
position: absolute;
top: 30%;
padding: 20px;
color: #914444;
font-size: 12px
}
#entry-meta {
min-height: 20px
}
.error {
color: #a83232 !important
}
@media(max-width:720px) {
header {
padding: 0 18px
}
.brand span {
display: none
}
.header-actions {
gap: 12px
}
.status {
font-size: 10px
}
main {
padding: 26px 18px 35px
}
.title-row {
align-items: flex-start;
flex-direction: column
}
h1 {
font-size: 26px
}
.subline {
font-size: 12px
}
.scope-row {
flex-wrap: wrap;
gap: 10px
}
.stats {
grid-template-columns: 1fr 1fr;
gap: 22px
}
.stats>div:nth-child(3) {
border: 0;
padding-left: 0
}
.stats strong {
font-size: 23px
}
.tabs {
gap: 18px;
overflow: auto
}
.tabs button {
font-size: 12px
}
.section-heading .tools {
width: 100%
}
.tools input[type=search] {
flex: 1;
min-width: 0
}
#pareto {
height: 300px
}
.inspection,
.submission-form,
.rules-grid {
grid-template-columns: 1fr;
gap: 20px
}
.check {
font-size: 11px
}
select {
max-width: 100%;
min-width: 0
}
#entry {
flex: 1;
width: 190px
}
#surface {
height: 300px
}
.point-values {
padding-top: 0
}
footer {
flex-wrap: wrap;
font-size: 10px
}
.submission-form {
margin: 20px 0
}
}