| 1 |
/* Root element */ |
| 2 |
.json-document { |
| 3 |
padding: 1em 2em; |
| 4 |
} |
| 5 |
|
| 6 |
/* Syntax highlighting for JSON objects */ |
| 7 |
ul.json-dict, ol.json-array { |
| 8 |
list-style-type: none; |
| 9 |
margin: 0 0 0 1px; |
| 10 |
border-left: 1px dotted #ccc; |
| 11 |
padding-left: 2em; |
| 12 |
} |
| 13 |
.json-string { |
| 14 |
color: #0B7500; |
| 15 |
} |
| 16 |
.json-literal { |
| 17 |
color: #1A01CC; |
| 18 |
font-weight: bold; |
| 19 |
} |
| 20 |
|
| 21 |
/* Toggle button */ |
| 22 |
a.json-toggle { |
| 23 |
position: relative; |
| 24 |
color: inherit; |
| 25 |
text-decoration: none; |
| 26 |
} |
| 27 |
a.json-toggle:focus { |
| 28 |
outline: none; |
| 29 |
} |
| 30 |
a.json-toggle:before { |
| 31 |
font-size: 1.1em; |
| 32 |
color: #c0c0c0; |
| 33 |
content: "\25BC"; /* down arrow */ |
| 34 |
position: absolute; |
| 35 |
display: inline-block; |
| 36 |
width: 1em; |
| 37 |
text-align: center; |
| 38 |
line-height: 1em; |
| 39 |
left: -1.2em; |
| 40 |
} |
| 41 |
a.json-toggle:hover:before { |
| 42 |
color: #aaa; |
| 43 |
} |
| 44 |
a.json-toggle.collapsed:before { |
| 45 |
/* Use rotated down arrow, prevents right arrow appearing smaller than down arrow in some browsers */ |
| 46 |
transform: rotate(-90deg); |
| 47 |
} |
| 48 |
|
| 49 |
/* Collapsable placeholder links */ |
| 50 |
a.json-placeholder { |
| 51 |
color: #aaa; |
| 52 |
padding: 0 1em; |
| 53 |
text-decoration: none; |
| 54 |
} |
| 55 |
a.json-placeholder:hover { |
| 56 |
text-decoration: underline; |
| 57 |
} |
| 58 |
|