summaryrefslogtreecommitdiff
path: root/src/toys/turing/css/styles.css
blob: 2407cb4333630f1c74a8d8e75fbda8f70e7ec489 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.tape {
  display: flex;
  gap: 0.25rem;
  padding: var(--space-md);
  overflow-x: auto;
  background: var(--surface-alt);
  border: var(--border-width) solid var(--border);
  box-shadow: inset 1px 1px 0 var(--border-light),
              inset -1px -1px 0 var(--border-dark);
  min-height: 5rem;
}

.cell {
  position: relative;
  width: 3.25rem;
  padding: var(--space-xs);
  background: var(--surface);
  border: 2px solid var(--border-dark);
  box-shadow: inset 1px 1px 0 var(--border-light),
              inset -1px -1px 0 var(--border-dark);
  flex-shrink: 0;
}

.cell input {
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  color: var(--fg);
  font-size: 0.875rem;
  padding: 0.25rem;
}

.cell input:focus {
  outline: 1px dotted var(--fg);
  outline-offset: 2px;
}

.cell.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, var(--surface));
}

.cell.active::after {
  content: '▲';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

#state-text {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-top: var(--space-md);
}

.controls {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}