XMLPrettyPrint.css (1160B)
1 @charset "UTF-8"; 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 @import url("resource://content-accessible/viewsource.css"); 7 8 :host { 9 color-scheme: light dark; 10 } 11 12 #top { 13 font-family: monospace; 14 } 15 16 #header { 17 background-color: #ccc; 18 border-bottom: 3px solid black; 19 padding: 0.5em; 20 margin-bottom: 1em; 21 } 22 23 @media (prefers-color-scheme: dark) { 24 #header { 25 background-color: #333; 26 border-color: #555; 27 } 28 } 29 30 #tree, 31 .expandable-children { 32 margin-inline-start: 1em; 33 } 34 35 .expandable-body { 36 display: inline-block; 37 } 38 39 .expandable-body[open] { 40 display: block; 41 } 42 43 .expandable-opening { 44 list-style: "+" outside; 45 } 46 47 [open] > .expandable-opening { 48 list-style-type: "−"; 49 } 50 51 .expandable-opening::marker { 52 cursor: pointer; 53 padding-inline-end: 2px; 54 /* Don't want to inherit the styling from pi and comment elements */ 55 color: buttontext; 56 font: initial; 57 } 58 59 .comment { 60 white-space: pre; 61 } 62 63 .space-default { 64 white-space: initial; 65 } 66 67 .space-preserve { 68 white-space: pre-wrap; 69 }