-
Notifications
You must be signed in to change notification settings - Fork 0
/
abacus.css
112 lines (106 loc) · 1.92 KB
/
abacus.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
/* Color Palette (http://paletton.com/#uid=15o0u0kwi++bu++hX++++rd++kX)
* - #FFA4C1
* - #FF709E
* - #FF0052
* - #C1003E
* - #94002F
*/
@import url("katex/katex.min.css");
html {
background: #eee;
}
body {
background: #fff;
border-left: 1px #ccc solid;
border-right: 1px #ccc solid;
display: flex;
flex-direction: column;
height: 100vh;
margin: 0 auto;
max-width: 800px;
}
.results {
display: flex;
flex-grow: 1;
overflow: auto;
padding: 5px 0;
}
.results dl {
align-items: center;
display: grid;
flex-grow: 1;
grid-template-columns: auto fit-content(50%);
margin: auto 0 0 0;
width: 100%;
}
.results dt, .results dd {
overflow: auto hidden;
padding: 0 10px;
}
.results .katex-display {
margin: 0.5em 0;
}
.results .katex-display > .katex {
white-space: normal;
}
.results dt {
grid-column-start: 1;
opacity: 0.8;
transition: opacity 0.2s;
}
.results dt .katex {
font-size: 13pt !important;
}
.results dt .katex-display > .katex {
text-align: left;
}
.results dt:hover {
opacity: 1;
}
.results dd {
grid-column-start: 2;
margin-left: 0;
}
.results dd .katex {
font-size: 16pt !important;
}
.results dd .katex-display > .katex {
text-align: right;
}
.error {
background-color: #fffda4;
border-top: 3px #ffcb00 solid;
font-family: sans-serif;
padding: 10px;
}
.error:empty {
display: none;
}
.input {
border-top: 3px solid #ff0052;
display: flex;
}
.input input, .input button {
font-family: "KaTeX_Main";
}
.input input {
background: #fafafa;
border: none;
flex-grow: 1;
font-size: 13pt;
outline: none;
padding: 10px;
}
.input button {
background: #eee;
border-bottom: none;
border-left: 3px #ccc solid;
border-right: none;
border-top: none;
font-size: 20pt;
font-weight: bold;
width: 75px;
}
.input button:hover {
background: #ddd;
}