JsonContent: Add missing prefix to selector
[lhc/web/wiklou.git] / resources / src / mediawiki.content.json.less
1 /*!
2 * CSS for styling HTML-formatted JSON Schema objects
3 *
4 * @file
5 * @author Munaf Assaf <massaf@wikimedia.org>
6 */
7
8 .mw-json {
9 border-collapse: collapse;
10 border-spacing: 0;
11 font-style: normal;
12 }
13
14 .mw-json th,
15 .mw-json td {
16 border: 1px solid #72777d;
17 font-size: 16px;
18 padding: 0.5em 1em;
19 }
20
21 /* TODO: Remove this old class once the content caches have cleared */
22 /* stylelint-disable-next-line selector-class-pattern */
23 .mw-json .value,
24 .mw-json-value,
25 .mw-json-single-value {
26 background-color: #dcfae3;
27 font-family: monospace, monospace;
28 white-space: pre-wrap;
29 }
30
31 .mw-json-single-value {
32 background-color: #eaecf0;
33 }
34
35 .mw-json-empty {
36 background-color: #fff;
37 font-style: italic;
38 }
39
40 .mw-json tr {
41 background-color: #eaecf0;
42 margin-bottom: 0.5em;
43 }
44
45 .mw-json th {
46 background-color: #fff;
47 font-weight: normal;
48 }
49
50 .mw-json caption {
51 /* For stylistic reasons, suppress the caption of the outermost table */
52 display: none;
53 }
54
55 .mw-json table caption {
56 color: #72777d;
57 display: inline-block;
58 font-size: 10px;
59 font-style: italic;
60 margin-bottom: 0.5em;
61 text-align: left;
62 }