This repository has been archived by the owner on Aug 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
doctest.css
140 lines (107 loc) · 2.42 KB
/
doctest.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
/* Basic styling: */
body {
font-family: sans-serif;
}
pre {
padding: 0.3em;
}
/* Test block formatting: */
pre.doctest, pre.commenttest, pre.test {
border: 1px solid #999;
border-radius: 4px;
}
pre.doctest.doctest-some-failure, pre.commenttest.doctest-some-failure, pre.test.doctest-some-failure {
border: 1px solid #f00;
}
/* FIXME: it would be nice if this was more obviously styled to show that there
was more content */
pre.doctest.expand-on-failure, pre.commenttest.expand-on-failure, pre.test.expand-on-failure {
max-height: 3em;
overflow-y: auto;
}
pre.doctest.expand-on-failure.doctest-some-failure, pre.commenttest.expand-on-failure.doctest-some-failure, pre.test.expand-on-failure.doctest-some-failure {
max-height: none;
}
/* Individual example formatting: */
.doctest-example:target {
border-left: 4px solid #f00;
padding-left: 4px;
}
.doctest-example {
}
.doctest-example.doctest-success {
color: #060;
}
.doctest-example.doctest-failure {
color: #900;
}
.doctest-example .doctest-actual-output {
color: #066;
/*padding-left: 1em;*/
}
.doctest-example.doctest-failure .doctest-output {
padding-left: 1em;
}
.doctest-example .doctest-output {
font-weight: bold;
}
.doctest-example .doctest-description {
color: #000;
font-weight: bold;
}
.doctest-example .doctest-console {
color: #009;
padding-left: 1em;
}
/* Reporter formatting: */
#doctest-success-count.doctest-nonzero {
color: #0f0;
}
#doctest-failure-count.doctest-nonzero {
color: #f00;
}
#doctest-aborted {
background-color: #900;
color: #fff;
}
.doctest-report-table th {
font-weight: normal;
text-align: left;
}
.doctest-report-table td {
padding: 0 1em;
}
a.doctest-failure-link {
color: #00f;
text-decoration: none;
padding: 0 1em 0 0;
}
a.doctest-failure-link:visited {
color: #00f;
}
a.doctest-failure-link:hover {
text-decoration: underline;
}
/* Comparison table */
.doctest-comparison-table {
border: 1px solid #000;
/* FIXME: not sure why this doesn't keep the table limited to 100% */
width: 100%;
}
.doctest-comparison-table td {
overflow: auto;
}
.doctest-comparison-header th {
background-color: #000;
color: #fff;
}
.doctest-comparison-error td {
background-color: #fdd;
}
td.doctest-comparison-got {
padding-right: 1em;
color: #060;
}
td.doctest-comparison-expected {
color: #900;
}