showard | f828c77 | 2010-01-25 21:49:42 +0000 | [diff] [blame] | 1 | /** |
| 2 | This is from the JSONView project src/content/default.css, http://code.google.com/p/jsonview. Here's the original JSONView license: |
| 3 | |
| 4 | --- |
| 5 | MIT License |
| 6 | |
| 7 | Copyright (c) 2009 Benjamin Hollis |
| 8 | |
| 9 | Permission is hereby granted, free of charge, to any person obtaining a copy |
| 10 | of this software and associated documentation files (the "Software"), to deal |
| 11 | in the Software without restriction, including without limitation the rights |
| 12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 13 | copies of the Software, and to permit persons to whom the Software is |
| 14 | furnished to do so, subject to the following conditions: |
| 15 | |
| 16 | The above copyright notice and this permission notice shall be included in |
| 17 | all copies or substantial portions of the Software. |
| 18 | |
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 25 | THE SOFTWARE. |
| 26 | --- |
| 27 | */ |
| 28 | |
| 29 | body { |
| 30 | font-family: sans-serif; |
| 31 | } |
| 32 | |
| 33 | .prop { |
| 34 | font-weight: bold; |
| 35 | } |
| 36 | |
| 37 | .null { |
| 38 | color: red; |
| 39 | } |
| 40 | |
| 41 | .bool { |
| 42 | color: blue; |
| 43 | } |
| 44 | |
| 45 | .num { |
| 46 | color: blue; |
| 47 | } |
| 48 | |
| 49 | .string { |
| 50 | color: green; |
| 51 | } |
| 52 | |
| 53 | .collapser { |
| 54 | position: absolute; |
| 55 | left: -1em; |
| 56 | cursor: pointer; |
| 57 | } |
| 58 | |
| 59 | li { |
| 60 | position: relative; |
| 61 | } |
| 62 | |
| 63 | li:after { |
| 64 | content: ','; |
| 65 | } |
| 66 | |
| 67 | li:last-child:after { |
| 68 | content: ''; |
| 69 | } |
| 70 | |
| 71 | #error { |
| 72 | -moz-border-radius: 8px; |
| 73 | border: 1px solid #970000; |
| 74 | background-color: #F7E8E8; |
| 75 | margin: .5em; |
| 76 | padding: .5em; |
| 77 | } |
| 78 | |
| 79 | .errormessage { |
| 80 | font-family: monospace; |
| 81 | } |
| 82 | |
| 83 | #json { |
| 84 | font-family: monospace; |
| 85 | font-size: 1.1em; |
| 86 | } |
| 87 | |
| 88 | ul { |
| 89 | list-style: none; |
| 90 | margin: 0 0 0 2em; |
| 91 | padding: 0; |
| 92 | } |
| 93 | |
| 94 | h1 { |
| 95 | font-size: 1.2em; |
| 96 | } |
| 97 | |
| 98 | /* Indent JSON when there's a callback. */ |
| 99 | .callback + #json { |
| 100 | padding-left: 1em; |
| 101 | } |
| 102 | |
| 103 | .callback { |
| 104 | font-family: monospace; |
| 105 | color: #A52A2A; |
| 106 | } |