Spaces:
Running
Running
nicer layout
Browse files- index.html +1 -1
- styles.css +11 -10
index.html
CHANGED
|
@@ -49,7 +49,7 @@
|
|
| 49 |
</nav>
|
| 50 |
<div id="configure-panel" class="tab-panel active">
|
| 51 |
<section class="control-section">
|
| 52 |
-
<div class="section-heading"><span>1</span><h2>
|
| 53 |
<label for="dataset-select">Dataset</label>
|
| 54 |
<select id="dataset-select">
|
| 55 |
<option value="easy-linear">Builtin linearly separable data (easy)</option>
|
|
|
|
| 49 |
</nav>
|
| 50 |
<div id="configure-panel" class="tab-panel active">
|
| 51 |
<section class="control-section">
|
| 52 |
+
<div class="section-heading"><span>1</span><h2>Specify data</h2></div>
|
| 53 |
<label for="dataset-select">Dataset</label>
|
| 54 |
<select id="dataset-select">
|
| 55 |
<option value="easy-linear">Builtin linearly separable data (easy)</option>
|
styles.css
CHANGED
|
@@ -4,31 +4,32 @@
|
|
| 4 |
--blue: #2d6cdf; --orange: #e86f32;
|
| 5 |
}
|
| 6 |
* { box-sizing: border-box; }
|
|
|
|
| 7 |
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #fff 0, transparent 32%), #f4f6f1; }
|
| 8 |
button, input, select { font: inherit; }
|
| 9 |
button, select { cursor: pointer; }
|
| 10 |
-
.shell { width: min(1480px, 100%); margin: 0 auto; padding:
|
| 11 |
-
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom:
|
| 12 |
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 7px; }
|
| 13 |
-
h1 { font-family: Georgia, serif; font-size: clamp(
|
| 14 |
.subtitle { color: var(--ink-soft); margin: 10px 0 0; font-size: 15px; }
|
| 15 |
.status { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.75); padding: 8px 12px; border-radius: 999px; }
|
| 16 |
.status span { width: 8px; height: 8px; border-radius: 50%; background: #d69b25; box-shadow: 0 0 0 4px #f8ebca; }
|
| 17 |
.status.ready span { background: #2c9b68; box-shadow: 0 0 0 4px #d9f0e5; }.status.error span { background: #c74848; box-shadow: 0 0 0 4px #f5dddd; }
|
| 18 |
-
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: stretch; }
|
| 19 |
.plot-card, .control-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 35px rgba(38,57,47,.07); }
|
| 20 |
-
.plot-card { padding:
|
| 21 |
.plot-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 13px; }
|
| 22 |
h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }.plot-toolbar p { margin: 5px 0 0; font-size: 12px; color: var(--ink-soft); }
|
| 23 |
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; padding-top: 2px; }.legend span { display: flex; gap: 6px; align-items: center; }
|
| 24 |
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }.dot-a { background: var(--blue); }.dot-b { background: var(--orange); }
|
| 25 |
.batch-ring { display: inline-block; width: 12px; height: 12px; border: 2px solid #d29400; border-radius: 50%; background: rgba(255,202,58,.28); }
|
| 26 |
-
.canvas-wrap { position: relative; min-height:
|
| 27 |
#plot { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
|
| 28 |
.empty-hint { pointer-events: none; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); color: #77847d; background: rgba(255,255,255,.88); border: 1px solid var(--line); padding: 9px 13px; border-radius: 7px; font-size: 12px; white-space: nowrap; }
|
| 29 |
.plot-footer { display: flex; gap: 18px; color: var(--ink-soft); font-size: 11px; padding: 12px 2px 0; }.plot-footer span + span { border-left: 1px solid var(--line); padding-left: 18px; }
|
| 30 |
-
.control-card { overflow: hidden; align-self:
|
| 31 |
-
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: #f7f9f6; }.tab { border: 0; color: var(--ink-soft); background: transparent; }.tab.active { color: var(--green); background: white; box-shadow: 0 1px 4px rgba(20,50,35,.12); }.tab-panel { display: none; }.tab-panel.active { display: block; }
|
| 32 |
.train-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.train-heading span { color: var(--ink-soft); font-size: 10px; }
|
| 33 |
.parameter-panel { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8faf7; }
|
| 34 |
.parameter-block { padding: 12px; }.parameter-block + .parameter-block { border-top: 1px solid var(--line); }.parameter-block > span { display: block; color: #435149; font-size: 11px; font-weight: 800; }.parameter-block small { display: block; color: var(--ink-soft); font-size: 9px; margin: 3px 0 9px; }
|
|
@@ -46,5 +47,5 @@ select:focus, input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rg
|
|
| 46 |
button:disabled { opacity: .48; cursor: not-allowed; }.secondary { background: #fff; border-color: #ccd6cf; color: #44534b; }.secondary:hover:not(:disabled) { background: #f1f4f1; }.danger { color: #a84942; }.full { width: 100%; margin-top: 8px; }
|
| 47 |
.primary { width: 100%; background: var(--green); color: white; display: flex; justify-content: center; align-items: center; position: relative; padding: 11px; }.primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }.shortcut { position: absolute; right: 10px; padding: 2px 5px; background: rgba(255,255,255,.15); border-radius: 4px; font-size: 9px; font-weight: 500; }
|
| 48 |
.help, .message { color: var(--ink-soft); font-size: 10px; line-height: 1.45; margin: 8px 0 0; }.message.error { color: #ad3f3f; }.message.success { color: var(--green); }.train-section { background: #fbfcfa; }
|
| 49 |
-
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; }.canvas-wrap { min-height: 470px; }.page-header { align-items: start; }.status { margin-top: 5px; } }
|
| 50 |
-
@media (max-width: 560px) { .shell { padding: 22px
|
|
|
|
| 4 |
--blue: #2d6cdf; --orange: #e86f32;
|
| 5 |
}
|
| 6 |
* { box-sizing: border-box; }
|
| 7 |
+
html, body { height: 100%; overflow: hidden; }
|
| 8 |
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #fff 0, transparent 32%), #f4f6f1; }
|
| 9 |
button, input, select { font: inherit; }
|
| 10 |
button, select { cursor: pointer; }
|
| 11 |
+
.shell { width: min(1480px, 100%); height: 100dvh; margin: 0 auto; padding: 18px clamp(36px, 8vw, 128px) 20px; display: flex; flex-direction: column; }
|
| 12 |
+
.page-header { display: flex; flex: none; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 15px; }
|
| 13 |
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 7px; }
|
| 14 |
+
h1 { font-family: Georgia, serif; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -.025em; margin: 0; font-weight: 500; }
|
| 15 |
.subtitle { color: var(--ink-soft); margin: 10px 0 0; font-size: 15px; }
|
| 16 |
.status { flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.75); padding: 8px 12px; border-radius: 999px; }
|
| 17 |
.status span { width: 8px; height: 8px; border-radius: 50%; background: #d69b25; box-shadow: 0 0 0 4px #f8ebca; }
|
| 18 |
.status.ready span { background: #2c9b68; box-shadow: 0 0 0 4px #d9f0e5; }.status.error span { background: #c74848; box-shadow: 0 0 0 4px #f5dddd; }
|
| 19 |
+
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: stretch; flex: 1; min-height: 0; }
|
| 20 |
.plot-card, .control-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 35px rgba(38,57,47,.07); }
|
| 21 |
+
.plot-card { padding: 16px; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
|
| 22 |
.plot-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 13px; }
|
| 23 |
h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }.plot-toolbar p { margin: 5px 0 0; font-size: 12px; color: var(--ink-soft); }
|
| 24 |
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; padding-top: 2px; }.legend span { display: flex; gap: 6px; align-items: center; }
|
| 25 |
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }.dot-a { background: var(--blue); }.dot-b { background: var(--orange); }
|
| 26 |
.batch-ring { display: inline-block; width: 12px; height: 12px; border: 2px solid #d29400; border-radius: 50%; background: rgba(255,202,58,.28); }
|
| 27 |
+
.canvas-wrap { position: relative; min-height: 0; flex: 1; border: 1px solid #d7dfd9; border-radius: 9px; overflow: hidden; background: #fbfcfa; }
|
| 28 |
#plot { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
|
| 29 |
.empty-hint { pointer-events: none; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); color: #77847d; background: rgba(255,255,255,.88); border: 1px solid var(--line); padding: 9px 13px; border-radius: 7px; font-size: 12px; white-space: nowrap; }
|
| 30 |
.plot-footer { display: flex; gap: 18px; color: var(--ink-soft); font-size: 11px; padding: 12px 2px 0; }.plot-footer span + span { border-left: 1px solid var(--line); padding-left: 18px; }
|
| 31 |
+
.control-card { overflow: hidden; align-self: stretch; min-height: 0; }.control-section { padding: 16px 20px 18px; border-bottom: 1px solid var(--line); }.control-section:last-child { border-bottom: 0; }
|
| 32 |
+
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; border-bottom: 1px solid var(--line); background: #f7f9f6; }.tab { border: 0; color: var(--ink-soft); background: transparent; }.tab.active { color: var(--green); background: white; box-shadow: 0 1px 4px rgba(20,50,35,.12); }.tab-panel { display: none; }.tab-panel.active { display: block; height: calc(100% - 51px); overflow-y: auto; }
|
| 33 |
.train-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.train-heading span { color: var(--ink-soft); font-size: 10px; }
|
| 34 |
.parameter-panel { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8faf7; }
|
| 35 |
.parameter-block { padding: 12px; }.parameter-block + .parameter-block { border-top: 1px solid var(--line); }.parameter-block > span { display: block; color: #435149; font-size: 11px; font-weight: 800; }.parameter-block small { display: block; color: var(--ink-soft); font-size: 9px; margin: 3px 0 9px; }
|
|
|
|
| 47 |
button:disabled { opacity: .48; cursor: not-allowed; }.secondary { background: #fff; border-color: #ccd6cf; color: #44534b; }.secondary:hover:not(:disabled) { background: #f1f4f1; }.danger { color: #a84942; }.full { width: 100%; margin-top: 8px; }
|
| 48 |
.primary { width: 100%; background: var(--green); color: white; display: flex; justify-content: center; align-items: center; position: relative; padding: 11px; }.primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }.shortcut { position: absolute; right: 10px; padding: 2px 5px; background: rgba(255,255,255,.15); border-radius: 4px; font-size: 9px; font-weight: 500; }
|
| 49 |
.help, .message { color: var(--ink-soft); font-size: 10px; line-height: 1.45; margin: 8px 0 0; }.message.error { color: #ad3f3f; }.message.success { color: var(--green); }.train-section { background: #fbfcfa; }
|
| 50 |
+
@media (max-width: 900px) { html, body { height: auto; overflow: auto; }.shell { height: auto; min-height: 100dvh; }.workspace { grid-template-columns: 1fr; }.canvas-wrap { min-height: 470px; }.control-card { min-height: 480px; }.page-header { align-items: start; }.status { margin-top: 5px; } }
|
| 51 |
+
@media (max-width: 560px) { .shell { padding: 22px 24px 32px; }.page-header { display: block; }.status { margin-top: 16px; width: max-content; }.plot-toolbar { display: block; }.legend { margin-top: 12px; }.canvas-wrap { min-height: 390px; }.plot-footer { gap: 8px; flex-wrap: wrap; }.plot-footer span + span { padding-left: 8px; }.shortcut { display: none; } }
|