-
Notifications
You must be signed in to change notification settings - Fork 1
/
proof.css
117 lines (95 loc) · 2.11 KB
/
proof.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
@font-face {
font-family:"Fira Logic";
src: url("https://cdn.jsdelivr.net/gh/gleachkr/FiraLogic/dist/FiraLogic-Regular.woff") format("woff"),
url("https://cdn.jsdelivr.net/gh/gleachkr/FiraLogic/dist/FiraLogic-Regular.tff") format("tff")
}
input {
font-family: "Fira Logic", monospace;
border-style:none;
margin:0px !important;
padding:0px;
font-size:12pt;
position: relative;
}
.label input { text-align:center }
.label, .root {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
justify-content: center;
line-height:1;
position: relative;
}
.root> *, .label > * {
display: inline-block;
padding:2px 5px 2px 5px;
box-sizing:content-box;
}
.forest {
display: flex;
flex-wrap: nowrap;
flex-direction: row;
justify-content: center;
align-items: flex-end;
}
.node {
display: inline-block;
}
.label > *:not(.popper) {
border-bottom: 1px solid black;
}
.label > *:nth-child(1) {
flex-grow:1;
}
.label > *:nth-last-child(1) {
flex-grow:1;
}
.node:nth-child(1) > .label > *:nth-child(1) {
border-bottom: none;
}
.node:last-child > .label > *:nth-child(3) {
border-bottom: none;
position:relative;
top:.8em;
}
.node > .label > *:nth-child(1) {
min-width:1em;
}
.node > .label > *:nth-child(3) {
min-width:1em;
}
.waiting > input { color: gray }
.parse-error > input, .feedback > input { color: red }
.rule input {
font-size:8pt;
position:absolute;
max-width:5em;
text-overflow:ellipsis;
}
.rule input:focus {
max-width:none;
}
.rule input:invalid, .root input:invalid { background:#eeeeee; }
.proofJSPopper {
position:absolute;
visibility:hidden;
left:0px;
z-index:1;
font-size:12pt;
}
.proofJSPopper[x-placement="left"] > div { float:right; }
.proofJSPopper > div {
background: white;
display:inline-block;
width:-moz-max-content;
width:-webkit-max-content;
width:max-content;
max-width:400px;
border:1px solid black;
padding:10px;
margin-left:5px;
margin-right:5px;
}
*:hover > .proofJSPopper {
visibility:visible;
}