-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.css
152 lines (137 loc) · 3.65 KB
/
style.css
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
@import url('https://fonts.cdnfonts.com/css/hk-groteks');
:root { --color-bg: #f4f0bb; }
/* Apparently this isn't used anywhere? Bethany? #SCHDEL
.thing {
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 */
}
/* Fancy distinctive display of examples of text the user can type in the
Expectorant input field */
code {
padding: 2px 4px;
color: #d14;
white-space: nowrap;
background-color: #f7f7f9;
border: 1px solid #e1e1e8;
}
/* 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;
}
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%;
height: 100%;
position: relative;
margin-top: 35px;
margin-bottom: 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%; }
input {
height: 24px;
padding: 8px;
font-size: 16pt;
width: 390px; /* 390px is just enough for the placeholder text */
}
input.exact-change {
width: 335px;
}
/* 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;
}