summaryrefslogtreecommitdiff
path: root/resources/src/mediawiki/mediawiki.content.json.css
blob: d93e291eccc3f30e0380519043dbea9427604563 (plain)
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
/*!
 * CSS for styling HTML-formatted JSON Schema objects
 *
 * @file
 * @author Munaf Assaf <massaf@wikimedia.org>
 */

.mw-json {
	border-collapse: collapse;
	border-spacing: 0;
	font-style: normal;
}

.mw-json th,
.mw-json td {
	border: 1px solid gray;
	font-size: 16px;
	padding: 0.5em 1em;
}

.mw-json td {
	background-color: #eee;
	font-style: italic;
}

.mw-json .value {
	background-color: #dcfae3;
	font-family: monospace, monospace;
	white-space: pre-wrap;
}

.mw-json tr {
	margin-bottom: 0.5em;
}

.mw-json th {
	background-color: #fff;
	font-weight: normal;
}

.mw-json caption {
	/* For stylistic reasons, suppress the caption of the outermost table */
	display: none;
}

.mw-json table caption {
	color: gray;
	display: inline-block;
	font-size: 10px;
	font-style: italic;
	margin-bottom: 0.5em;
	text-align: left;
}