ameythakur commited on
Commit
34a397a
·
verified ·
1 Parent(s): 032c2c1

Knowledge Lifecycle

Browse files
Files changed (2) hide show
  1. index.html +2 -2
  2. style.css +43 -5
index.html CHANGED
@@ -89,8 +89,8 @@
89
  <label class="grow">Correct continuation <span class="dim">(one word)</span>
90
  <input id="answer" type="text">
91
  </label>
92
- <label>Document repetition <span class="dim">(amplify the context)</span>
93
- <select id="repeat">
94
  <option value="1" selected>1x</option>
95
  <option value="2">2x</option>
96
  <option value="3">3x</option>
 
89
  <label class="grow">Correct continuation <span class="dim">(one word)</span>
90
  <input id="answer" type="text">
91
  </label>
92
+ <label>Repeat document <span class="dim">(amplify)</span>
93
+ <select id="repeat" title="How many times the corrective document is repeated in the prompt">
94
  <option value="1" selected>1x</option>
95
  <option value="2">2x</option>
96
  <option value="3">3x</option>
style.css CHANGED
@@ -42,11 +42,11 @@ body {
42
  color: var(--ink);
43
  background:
44
  linear-gradient(180deg,
45
- rgba(74,127,212,.07) 0%, rgba(42,157,143,.055) 22%,
46
- rgba(224,138,46,.045) 44%, rgba(208,83,83,.038) 66%,
47
- rgba(143,95,184,.03) 84%, rgba(255,255,255,0) 100%) no-repeat 0 0 / 100% 340px,
48
- repeating-linear-gradient(0deg, transparent 0 23px, rgba(26,26,26,.035) 23px 24px),
49
- repeating-linear-gradient(90deg, transparent 0 23px, rgba(26,26,26,.035) 23px 24px),
50
  var(--bg);
51
  }
52
 
@@ -362,3 +362,41 @@ footer { margin-top: 4rem; padding-top: 2rem; }
362
  color: var(--muted);
363
  }
364
  .paper-line em { color: var(--ink); font-style: italic; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  color: var(--ink);
43
  background:
44
  linear-gradient(180deg,
45
+ rgba(74,127,212,.13) 0%, rgba(42,157,143,.10) 22%,
46
+ rgba(224,138,46,.085) 44%, rgba(208,83,83,.07) 66%,
47
+ rgba(143,95,184,.055) 84%, rgba(255,255,255,0) 100%) no-repeat 0 0 / 100% 460px,
48
+ repeating-linear-gradient(0deg, transparent 0 23px, rgba(26,26,26,.06) 23px 24px),
49
+ repeating-linear-gradient(90deg, transparent 0 23px, rgba(26,26,26,.06) 23px 24px),
50
  var(--bg);
51
  }
52
 
 
362
  color: var(--muted);
363
  }
364
  .paper-line em { color: var(--ink); font-style: italic; }
365
+
366
+ /* ---------------------------------------------------------------------------
367
+ Measure row.
368
+
369
+ The repetition label is wider than its select, which left a gap of dead
370
+ space before the button and made the button look adrift. The select now
371
+ fills its label, so the three controls sit in one continuous run.
372
+ --------------------------------------------------------------------------- */
373
+
374
+ .row { align-items: flex-end; gap: .9rem; margin-bottom: 1.1rem; }
375
+ /* flex-end aligns margin boxes, so a bottom margin on these labels would push
376
+ the button below the controls it sits beside. The row carries it instead. */
377
+ .row > label { flex: 0 0 auto; margin-bottom: 0; }
378
+ .row > label.grow { flex: 1 1 auto; }
379
+ .row select { width: 100%; height: 2.5rem; }
380
+ .row input[type=text] { height: 2.5rem; }
381
+
382
+ #run {
383
+ /* Flex centring rather than padding arithmetic, so the label sits on the
384
+ optical centre whatever the text or font size. */
385
+ display: inline-flex;
386
+ align-items: center;
387
+ justify-content: center;
388
+ height: 2.5rem;
389
+ min-width: 8.5rem;
390
+ padding: 0 1.6rem;
391
+ font-weight: 600;
392
+ letter-spacing: .01em;
393
+ line-height: 1;
394
+ }
395
+
396
+ /* With a more present ground, the panels need an edge to sit on rather than
397
+ dissolving into it. */
398
+ .narrative, #bars, .temp-block, .alert { box-shadow: 0 1px 2px rgba(26,26,26,.05); }
399
+ .preset { background: rgba(255,255,255,.86); }
400
+ .preset.active { background: #fff; }
401
+ textarea, input[type=text], select { background: rgba(255,255,255,.94); }
402
+ textarea:focus, input:focus, select:focus { background: #fff; }