2 * CSS for styling HTML-formatted JSON Schema objects
5 * @author Munaf Assaf <massaf@wikimedia.org>
7 /* stylelint-disable selector-class-pattern */
8 @import 'mediawiki.skin.variables.less';
9 @import 'mediawiki.mixins.less';
12 border-collapse: collapse;
19 /* TODO: Re-evaluate whether we should keep this over-ride or switch to ems */
20 /* stylelint-disable-next-line declaration-property-unit-disallowed-list */
26 background-color: @background-color-neutral;
31 background-color: @background-color-base;
43 .mw-json-single-value {
44 background-color: #dcfae3;
45 font-family: monospace, monospace;
46 white-space: pre-wrap;
48 html.skin-theme-clientpref-night & {
50 background-color: @background-color-transparent;
54 /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
55 @media screen and ( prefers-color-scheme: dark ) {
56 html.skin-theme-clientpref-os & {
57 background-color: @background-color-transparent;
62 .mw-json-single-value {
63 background-color: @background-color-neutral;
67 background-color: @background-color-base;