forked from affeldt-aist/coq2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coq2html.css
199 lines (164 loc) · 2.95 KB
/
coq2html.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
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
/* Classes:
h1.title the title of the page
div.coq encloses all generated body
div.doc contents of (** *) comments
div.footer footer
span.togglescript "Proof." line
div.proofscript contents of proof script
span.docright contents of (**r *) comments
span.bracket contents of [ ] within comments
span.comment contents of (* *) comments
span.kwd Coq keyword
span.id any other identifier
*/
* {
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica;
margin: 8px;
font-size: large;
}
main {
margin-top: 0em;
}
div.sidebar {
left: 8px;
height: calc(100vh);
width: 200px;
position: fixed;
overflow-y: scroll;
}
div.sidebar li {
list-style: none;
}
div.sidebar ul {
padding-inline-start: 10px;
}
h1 {
font-size: 1.5em;
font-weight: bold;
align-items: center;
}
h2 {
margin-left: 0em;
padding: 0px;
color: #580909
}
h3 {
margin-left: 0em;
padding: 0px;
color: #C05001;
}
h1, h2, h3 {
font-family: sans-serif;
}
div.coq {
margin-left: 0%;
margin-right: 0%;
font-family: monospace;
}
div.doc {
margin-left: 0%;
margin-top: 0.2em;
margin-bottom: 0.5em;
font-family: serif;
background-color: #f2f1f1;
}
span.toggleproof {
font-size: 0.8em;
text-decoration: underline;
}
span.toggleproof:hover {
cursor: pointer;
}
div.proofscript {
font-size: 0.8em;
}
div.footer {
margin-top: 1em;
margin-bottom: 1em;
font-size: 0.8em;
font-style: italic;
}
span.docright {
position: absolute;
left: 60%;
width: 40%;
font-family: serif;
}
span.bracket {
font-family: monospace;
color: #008000;
}
span.vernacular {
color: #9400d3;
}
span.gallina-kwd {
color: #228b22;
}
.hierarchy-builder {
color: #ff4500;
margin: 2em 0;
border: solid 1px #cd0000;
}
span.comment {
color: #008000;
}
a:visited {color : #416DFF; text-decoration : none; }
a:link {color : #416DFF; text-decoration : none; }
a:hover {text-decoration : none; }
a:active {text-decoration : none; }
pre.ssrdoc {
border: solid 2px;
padding-left: 1em;
padding-right: 1em;
}
div.ssrdoc {
border: solid 2px;
padding-left: 1em;
padding-right: 1em;
}
div.content {
margin-left: 200px;
padding-left: 12px;
}
.warning {
color: #cd0000;
}
:target {
background-color: yellow;
transition: background-color 0.5s;
}
.darkmode--activated .sidebar {
color: white;
}
.darkmode--activated .sidebar h2 {
color: #a7f6f6;
}
.darkmode--activated span.katex {
color: white;
}
.darkmode--activated span.docright {
color: white;
}
@media screen and (max-width:960px) {
body {
font-family: Arial, Helvetica;
margin-left: 0.5em;
margin-right: 0.5em;
font-size: large;
}
div.doc {
margin-left: 0%;
margin-top: 0.2em;
margin-bottom: 0.5em;
font-family: serif;
background-color: #f2f1f1;
}
div.coq {
margin-left: 1%;
margin-right: 1%;
font-family: monospace;
}
}