forked from leanprover/reference-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.css
101 lines (83 loc) · 1.95 KB
/
theme.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
:root {
--verso-structure-font-family: "Helvetica Neue","Segoe UI",Arial,sans-serif;
--verso-text-font-family: Source Serif, Georgia,Times,"Times New Roman",serif;
--verso-code-font-family: Source Code Pro, monospace;
}
p {
font-feature-settings: "calt" off;
}
section > p, section > ul, section > ol {
margin-top: 1rem;
margin-bottom: 1rem;
}
div.paragraph > p:not(:first-child),
div.paragraph > ul:not(:first-child),
div.paragraph > ol:not(:first-child),
div.paragraph > dl:not(:first-child) {
margin-top: 0.5rem;
}
div.paragraph > p:not(:last-child),
div.paragraph > ul:not(:last-child),
div.paragraph > ol:not(:last-child),
div.paragraph > dl:not(:last-child) {
margin-bottom: 0.5rem;
}
/*
Don't impose margins on lists or list items from their contents.
*/
li > :first-child {
margin-top: 0;
}
li > :last-child {
margin-bottom: 0;
}
li:not(:first-child) {
margin-top: 0.5rem;
}
li:not(:last-child) {
margin-bottom: 0.5rem;
}
.hl.lean.block {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0.75em;
}
/** TODO - make these themeable with variables ***/
.hl.lean .keyword.token {
font-weight: 600 !important;
}
figure {
padding: 0;
margin: 1em 0;
}
figure img {
width: 100%;
max-height: 75vh; /* No scrolling! */
}
figcaption {
font-family: var(--verso-structure-font-family);
text-align: center;
}
.error pre, .information pre, .warning pre,
.error code, .information code, .warning code {
overflow-x: auto;
margin: 0px;
}
.information pre, .error pre, .warning pre,
.information code, .error code, .warning code {
margin: 0.5em .85em;
border-left: 0.2em solid red;
padding: 0 0.45em;
}
/* Different color for warning */
.warning pre, .warning code {
border-color: #efd871;
}
/* Different color for information */
.information pre, .information code {
border-color: #0000c0;
}
/* TODO: fix upstream */
.hl.lean code {
font-family: var(--verso-code-font-family) !important;
}