Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
208 lines (182 loc) · 4.45 KB
/
Copy pathstyle.css
File metadata and controls
208 lines (182 loc) · 4.45 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
200
201
202
203
204
205
206
207
208
@import url('https://fonts.cdnfonts.com/css/hk-groteks');
:root { --color-bg: #f4f0bb; }
.testingColors { color:
#da2c38
#43291f
#f4f0bb
#226f54
#87c38f
}
body {
font-family: HK Grotesk;
color: hsl(17deg 13% 19%);
background-color: var(--color-bg);
}
h1 { color: hsl(17deg 13% 19%); }
/* These seem like standardish recommendations for prose on web pages? */
p {
font-size: 18px;
max-width: 600px;
line-height: 145%; /* the max that practicaltypography.com recommends */
}
/* Beginner mode styles */
.beginner-container {
width: 390px; /* Match expr input width */
margin: 1em auto;
display: flex;
flex-direction: column;
gap: 1em;
}
.beginner-field {
display: flex;
flex-direction: column;
gap: 0.25em;
}
.beginner-field label {
font-size: 14px;
color: hsl(17deg 13% 19%);
text-align: left;
margin-left: 4px;
}
.amount-owed {
align-self: center;
width: 108px;
}
.beginner-row {
display: flex;
gap: 2em; /* Increased from 1em */
width: 100%;
}
.beginner-row .beginner-field {
flex: 1;
}
.implies-arrow {
text-align: center;
/* ADJUST VERTICAL WHITESPACE HERE:
First number (0.7em) = space above arrow
Second number (0.1em) = space below arrow */
margin: 0.7em 0 0.1em 0;
font-size: 24px;
color: #666;
font-family: "Times New Roman", serif;
}
input {
height: 24px;
padding: 8px;
font-size: 16pt;
width: 390px; /* 390px is just enough for the placeholder text */
}
input.exact-change {
width: 100%;
height: 24px;
padding: 4px 8px;
font-size: 14pt;
}
/* Put the version in itty-bitty gray font in the bottom corner of the page */
.versiontag {
/* color: hsla(17deg 13% 19% 20%); */
color: #999999;
font-size: 9px;
position: fixed;
bottom: 0;
right: 0;
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 1rem;
max-width: 100%;
margin: 0 auto;
}
button {
background: hsl(159deg 53% 28%);
border-radius: 12px;
border: none;
padding: 0;
cursor: pointer;
outline-offset: 4px;
}
.button-text {
display: block;
padding: 12px 42px;
border-radius: 12px;
font-size: 1.25rem;
background: hsl(128deg 33% 65%);
transform: translateY(-6px);
}
button:active .button-text {
transform: translateY(-2px);
}
.spin-wrap {
width: 100%;
max-width: 250px;
height: auto;
position: relative;
margin: 35px auto 25px;
}
#spinneroo, :before, :after {
box-sizing:border-box;
margin:0;
padding:0;
}
#spinneroo {
max-width: 250px;
max-height: 250px;
position: relative;
margin: auto;
border-radius: 50%;
background: #ffffff;
border: 2px solid #ffffff;
box-shadow: 0px 2px 5px 1px rgba(0,0,0, 0.3);
}
/* Little pointer triangle at the top of the spinner */
#spinneroo:after {
content: '';
position: absolute;
left: 50%;
bottom: 100%;
width: 14px;
height: 30px;
margin-left: -7px;
margin-bottom: -5px;
border-style: solid;
border-color: transparent;
border-width: 7px;
border-bottom: 0px;
border-top: 30px solid #FFA514;
}
/* .spin */
#spinneroo { transform-origin: 50% 50%; }
/* Bee doesn't like the "p=0.123" being gray. Dreev kinda does. The idea was to
deemphasize it a lot because it's just there as a sanity check -- mostly you
care about your representation of the probability that you typed (like your
"1/4", not the "0.25") and the spinner, which also shows the probability, as a
percentage. That was also the rationale for having it off to the side, when it
fits there, or right below what you're typing otherwise. Having it normal text
color and centered would slightly miss the point. As a highlighted output, it's
redundant. The idea is to just have it as a very down-popped real-time check on
what you're typing. Like the computer whispering "just to be sure, here's what
I'm hearing you as saying". The percentages on the spinner mostly already do
that but it might not be enough if you type something like "1/200" so I find it
reassuring to have that extra "here's the exact eval on what you typed". It's
kind of an anti-magic provision.
Anyway, we'll see if any of that is persuasive to Bee! She's the one with the
best aesthetic sense for such things.
PS: I added an "n=123" on the right as well and also think of that as something
that wants down-popped a lot. */
#prob-wrap { color: #999999; }
#counter-wrap {
color: #999999;
float: right;
}
@media (max-width: 380px) {
input {
font-size: 14pt;
}
.button-text {
padding: 10px 30px;
font-size: 1.1rem;
}
}