-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
199 lines (173 loc) · 3.8 KB
/
Copy pathstyle.css
File metadata and controls
199 lines (173 loc) · 3.8 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
/* style.css — the outfit. hand written, safe to edit.
model.css is the brain and gets regenerated, keep weights out of here. */
:root {
color-scheme: light dark;
--bg1: #fdf1f5;
--bg2: #f6e8ff;
--card: #fffdfd;
--ink: #4a3540;
--muted: #9a7f8d;
--acc: #f27daf;
--acc-ink: #fff;
--pill: #f7e3ec;
--pill-border: #eccbda;
--bubble: #ffffff;
--warn-bg: #fff3d6;
--warn-ink: #7a5c1e;
}
@media (prefers-color-scheme: dark) {
:root {
--bg1: #241a22;
--bg2: #1d1826;
--card: #2e2230;
--ink: #f0dce6;
--muted: #a98a9b;
--acc: #f27daf;
--acc-ink: #33121f;
--pill: #3b2b3a;
--pill-border: #543f52;
--bubble: #352838;
--warn-bg: #4a3b1c;
--warn-ink: #ffe1a1;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
padding: 3rem 1.25rem 4rem;
background: linear-gradient(160deg, var(--bg1), var(--bg2));
color: var(--ink);
font-family: "Segoe UI", ui-rounded, system-ui, sans-serif;
display: flex;
justify-content: center;
}
::selection { background: var(--acc); color: var(--acc-ink); }
/* the radios do all the work but nobody needs to see them */
.vh {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
clip-path: inset(50%);
overflow: hidden;
}
.page { width: min(44rem, 100%); }
header h1 {
font-size: clamp(2.6rem, 8vw, 3.6rem);
margin: 0;
letter-spacing: -0.02em;
}
.paw {
display: inline-block;
font-size: 0.5em;
margin-left: 0.3em;
transform: rotate(20deg);
}
.tag {
color: var(--muted);
max-width: 36rem;
line-height: 1.5;
margin-top: 0.5rem;
}
.warn {
background: var(--warn-bg);
color: var(--warn-ink);
border-radius: 12px;
padding: 0.8rem 1rem;
margin: 1rem 0;
line-height: 1.4;
}
.controls {
display: flex;
flex-direction: column;
gap: 0.6rem;
margin: 1.6rem 0 1.2rem;
}
.group {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.4rem;
}
.glabel {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--muted);
width: 6.5rem;
flex-shrink: 0;
}
.group label {
border: 1px solid var(--pill-border);
background: var(--pill);
border-radius: 999px;
padding: 0.32em 0.95em;
cursor: pointer;
font-size: 0.95rem;
user-select: none;
transition: transform 80ms ease;
}
.group label:hover { transform: translateY(-1px); }
.group label:active { transform: translateY(0) scale(0.97); }
/* seed pills are literal model input, let them look like it */
.group label[for^="seed-"] {
font-family: Consolas, ui-monospace, monospace;
letter-spacing: 0.04em;
}
.bubble {
position: relative;
background: var(--bubble);
border-radius: 20px;
padding: 1.3rem 1.5rem;
margin-left: 2.4rem;
box-shadow: 0 10px 30px rgb(90 40 70 / 0.12);
}
/* little speech tail pointing at the little speech dog */
.bubble::before {
content: "";
position: absolute;
left: -8px;
top: 26px;
width: 16px;
height: 16px;
background: var(--bubble);
transform: rotate(45deg);
border-radius: 3px;
}
.avatar {
position: absolute;
left: -2.55rem;
top: 14px;
font-size: 1.7rem;
}
.out {
margin: 0;
font-family: Consolas, ui-monospace, monospace;
font-size: 1.02rem;
line-height: 1.75;
overflow-wrap: break-word;
}
/* the prompt part of the text, so you can see where she takes over */
.lead::before { color: var(--acc); font-weight: 600; }
.end::before {
content: "▊";
color: var(--acc);
animation: think 1.1s steps(2) infinite;
margin-left: 1px;
}
@keyframes think {
from { opacity: 1; }
to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.end::before { animation: none; }
.group label, .group label:hover, .group label:active { transition: none; transform: none; }
}
footer {
margin-top: 1.6rem;
color: var(--muted);
font-size: 0.85rem;
line-height: 1.6;
max-width: 38rem;
}