Redesign styles: new layout, cards, tables, buttons, forms
- 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
This commit is contained in:
1 parent
cb3d99fa45
commit
a506ae3b5a
2 files changed
+1116
-476
No files matched your search
+242
-66
@@ -2,106 +2,131 @@
|
||||
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: inline-block;
|
||||
width: 25%;
|
||||
white-space: normal;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#content .form .col {
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
white-space: normal;
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#content .form .col-full {
|
||||
display: block;
|
||||
width: 100%;
|
||||
width: auto;
|
||||
white-space: normal;
|
||||
margin-left: 0;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Styles for screen widths less than 1024px */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
#content .form .col {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
#content .form h3 {
|
||||
font-size: 11.5px;
|
||||
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.12em;
|
||||
text-transform: uppercase;
|
||||
color: var(--color-font3);
|
||||
letter-spacing: 0.1em;
|
||||
text-align: left;
|
||||
padding-left: 1.5rem;
|
||||
margin: 1.4rem 0 0.6rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Rows: label on the left, control fills the rest */
|
||||
|
||||
#content .form .row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 0.4rem;
|
||||
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;
|
||||
width: 25%;
|
||||
min-width: 128px;
|
||||
margin-right: 1rem;
|
||||
text-align: right;
|
||||
color: var(--muted);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#content .row label select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#content .row input, #content .row select, #content .row textarea {
|
||||
flex-grow: 1;
|
||||
#content .row input,
|
||||
#content .row select,
|
||||
#content .row textarea {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-radius: var(--radius);
|
||||
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 input::placeholder, #content .row textarea::placeholder {
|
||||
#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[type="file"] {
|
||||
padding: 4px 4px;
|
||||
}
|
||||
|
||||
#content .row input:hover, #content .row select:hover, #content .row textarea:hover {
|
||||
#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 {
|
||||
#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;
|
||||
color: var(--color-font1);
|
||||
}
|
||||
|
||||
#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 {
|
||||
@@ -110,18 +135,25 @@
|
||||
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);
|
||||
padding: 6px 12px;
|
||||
margin-right: 10px;
|
||||
color: var(--color-font1);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s, border-color 0.15s;
|
||||
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 {
|
||||
@@ -130,11 +162,11 @@
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
#content .row input[readonly] {
|
||||
color: var(--color-font1);
|
||||
background-color: var(--color2);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
/* Buttons that sit directly in a form card */
|
||||
|
||||
#content .form .col > .anchorbutton,
|
||||
#content .form .col-full > .anchorbutton {
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
#content .form .flex {
|
||||
@@ -145,15 +177,159 @@
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
#content .form .flex button{
|
||||
#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 {
|
||||
margin: 0px 4px 0px 4px;
|
||||
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;
|
||||
}
|
||||
}
|
||||
+874
-410
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user