- style.css rewritten for the topbar/sidebar shell, cards, test list with mobile card layout, workload grid, badges, banners, toast, LLR widget - form.css rewritten: forms are grids of cards, stacked on small screens, filter chips, presets grid, sticky submit bar, auth card
336 lines
6.8 KiB
CSS
336 lines
6.8 KiB
CSS
/* ==========================================================================
|
|
OpenBench - forms (modern dark theme)
|
|
========================================================================== */
|
|
|
|
/* A .form is a grid of cards: .col (half width), .col-full (full width) */
|
|
|
|
#content .form {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 20px;
|
|
align-items: start;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#content .form > .col,
|
|
#content .form > .col-full {
|
|
min-width: 0;
|
|
padding: 4px 20px 20px;
|
|
background-color: var(--color2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
white-space: normal;
|
|
}
|
|
|
|
#content .form > .col-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
#content .form > .col:only-child {
|
|
grid-column: 1 / -1;
|
|
max-width: 640px;
|
|
}
|
|
|
|
#content .form .col-half {
|
|
display: block;
|
|
width: auto;
|
|
white-space: normal;
|
|
}
|
|
|
|
#content .form h3 {
|
|
margin: 20px 0 14px;
|
|
padding: 0 0 8px;
|
|
border-bottom: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
text-align: left;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Rows: label on the left, control fills the rest */
|
|
|
|
#content .form .row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#content .row label {
|
|
flex: 0 0 150px;
|
|
width: auto;
|
|
min-width: 0;
|
|
margin: 0;
|
|
color: var(--color-font2);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
}
|
|
|
|
#content .row label select {
|
|
width: 100%;
|
|
}
|
|
|
|
#content .row input,
|
|
#content .row select,
|
|
#content .row textarea {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
padding: 8px 10px;
|
|
background-color: #0C1016;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
color: var(--color-font1);
|
|
font-family: var(--font-sans);
|
|
font-size: 13.5px;
|
|
transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
|
|
}
|
|
|
|
#content .row textarea {
|
|
font-family: var(--font-mono);
|
|
font-size: 12.5px;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
}
|
|
|
|
#content .row input::placeholder,
|
|
#content .row textarea::placeholder {
|
|
color: #566074;
|
|
}
|
|
|
|
#content .row input:hover,
|
|
#content .row select:hover,
|
|
#content .row textarea:hover {
|
|
border-color: #3A4862;
|
|
}
|
|
|
|
#content .row input:focus,
|
|
#content .row select:focus,
|
|
#content .row textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.22);
|
|
background-color: #0E131B;
|
|
}
|
|
|
|
#content .row input[type="file"] {
|
|
padding: 4px;
|
|
}
|
|
|
|
#content .row input[type="checkbox"],
|
|
#content .row input[type="radio"] {
|
|
flex: 0 0 auto;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#content .row select > option {
|
|
font-family: var(--font-sans);
|
|
background-color: #0C1016;
|
|
color: var(--color-font1);
|
|
}
|
|
|
|
#content .row input[readonly] {
|
|
background-color: var(--color2);
|
|
color: var(--color-font1);
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
}
|
|
|
|
#content .row input[type="file"]::file-selector-button {
|
|
margin-right: 10px;
|
|
padding: 6px 12px;
|
|
background-color: var(--color3);
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
color: var(--color-font1);
|
|
font-family: var(--font-sans);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
#content .row input[type="file"]::file-selector-button:hover {
|
|
background-color: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
/* Buttons that sit directly in a form card */
|
|
|
|
#content .form .col > .anchorbutton,
|
|
#content .form .col-full > .anchorbutton {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
#content .form .flex {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
max-width: 100%;
|
|
justify-content: flex-start;
|
|
gap: 6px;
|
|
}
|
|
|
|
#content .form .flex button {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Sticky submit bar (create workload) */
|
|
|
|
#content .form-actions {
|
|
position: sticky;
|
|
bottom: 0;
|
|
z-index: 5;
|
|
padding: 16px 0 4px;
|
|
background: linear-gradient(to top, var(--color1) 65%, rgba(11, 14, 20, 0));
|
|
}
|
|
|
|
#content .form-actions .anchorbutton {
|
|
min-width: 260px;
|
|
padding: 12px 22px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Presets generated by create_workload.js */
|
|
|
|
#content #test-mode-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
#content #test-mode-buttons .col-half {
|
|
width: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
#content #test-mode-buttons .anchorbutton {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Search filters */
|
|
|
|
#content .chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
#content .chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 12px;
|
|
background-color: #0C1016;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: var(--radius);
|
|
color: var(--color-font2);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: border-color 0.15s ease, background-color 0.15s ease;
|
|
}
|
|
|
|
#content .chip:hover {
|
|
border-color: #3A4862;
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
#content .chip input {
|
|
margin: 0;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#content .chip::before {
|
|
content: "";
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: var(--muted);
|
|
}
|
|
|
|
#content .chip-green::before { background-color: #34D399; }
|
|
#content .chip-blue::before { background-color: #4C8DFF; }
|
|
#content .chip-yellow::before { background-color: #F5B941; }
|
|
#content .chip-red::before { background-color: #F87171; }
|
|
|
|
/* Sign in / sign up */
|
|
|
|
#content .auth-wrap {
|
|
max-width: 440px;
|
|
margin: 24px auto 0;
|
|
}
|
|
|
|
#content .auth-wrap .form > .col:only-child {
|
|
max-width: none;
|
|
}
|
|
|
|
#content .auth-wrap .row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 6px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
#content .auth-wrap .row label {
|
|
flex-basis: auto;
|
|
}
|
|
|
|
/* Profile engine list */
|
|
|
|
#content #engines-container span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin: 0 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#content #engines-container span input {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#content #engines-container .fa-trash-can {
|
|
color: #C25555;
|
|
}
|
|
|
|
#content #engines-container span:hover .fa-trash-can {
|
|
color: var(--bad);
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
#content .form {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
#content .form .row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 6px;
|
|
}
|
|
|
|
#content .row label {
|
|
flex-basis: auto;
|
|
}
|
|
|
|
#content .form > .col,
|
|
#content .form > .col-full {
|
|
padding: 4px 14px 16px;
|
|
}
|
|
|
|
#content .form-actions .anchorbutton {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
}
|