-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.css
124 lines (124 loc) · 2.31 KB
/
demo.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
:root {
--very-light-color: #eee6ff;
--light-color: #b39afd;
--mid-color: #714cfe;
--dark-color: #021aee;
--very-dark-color: #121212;
--highlight-color: #eed602;
--error-color: #ee021a;
}
body {
background-color: var(--very-dark-color);
font-family: Roboto, Arial, sans-serif;
color: var(--light-color);
}
h1 {
font-size: 32pt;
font-weight: 300;
text-align: center;
cursor: pointer;
}
main {
padding: 3.5rem;
}
#math {
display: grid;
grid-template-columns: 3fr 1fr 3fr 2fr;
height: 3rem;
justify-items: center;
text-align: center;
font-size: 200%;
}
#math span {
box-sizing: border-box;
display: inline-block;
width: 80%;
height: 3.5rem;
padding: .3rem 1.5rem;
border: .2rem solid var(--light-color);
color: var(--light-color);
cursor: text;
border-radius: 1.5rem;
text-align: left;
font-family: 'Roboto Mono', monospace;
transition: .1s;
}
#math span.focus {
border-color: var(--very-light-color);
color: var(--very-light-color);
}
button {
box-sizing: border-box;
display: flex;
justify-content: center;
width: 3.5rem;
height: 3.5rem;
border: .2rem solid var(--light-color);
border-radius: 50%;
background-color: transparent;
color: var(--light-color);
cursor: pointer;
/*font-family: 'Roboto Mono', monospace;*/
font-size: 100%;
transition: .1s;
}
button:hover, button:active, #math button:focus {
background-color: var(--mid-color);
color: var(--very-light-color);
}
section {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
justify-items: center;
align-items: center;
grid-gap: 16px;
margin: auto;
margin-top: 1rem;
max-width: 24rem;
font-size: 200%;
}
#caret {
display: none;
position: absolute;
width: .1rem;
height: 3.5rem;
background-color: var(--highlight-color);
animation: blink .8s ease-in-out 0s infinite;
}
em {
font-style: normal;
text-decoration: overline;
}
#result {
padding: 2rem;
font-size: 150%;
overflow-x: auto;
white-space: nowrap;
}
.error {
color: var(--error-color);
}
.computing {
border-color: var(--highlight-color) !important;
color: var(--highlight-color) !important;
animation: blink .8s ease-in-out 0s infinite;
cursor: wait;
}
@media (max-width: 30rem) {
main {
padding: 0;
}
section {
max-width: initial;
grid-gap: 5vw;
}
}
@keyframes blink {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}