用於給Chrome的外掛JSONView的CSS3的配色程式碼。自己弄了快一個小時……
body {
white-space: pre;
font-family: monospace;
font-size: 15px;
background-color: #3A3A40;
color: #E4EAF2;
}
.property {
font-weight: bold;
font-family: sans-serif;
color: #F4A81B;
}
.type-null {
color: #EDC2FF;
}
.type-boolean {
color: #F2F0C9;
}
.type-number {
color: #FF7824;
}
.type-string {
color: #6BCBFF;
}
.type-string. {
color: black;
}
.callback-function {
color: #F4A81B;
}
.collapser:after {
content: "-";
color: #E4EAF2;
}
.collapsed > .collapser:after {
content: "+";
color: #E4EAF2;
}
.ellipsis:after {
content: " … ";
color: #E4EAF2;
}
.collapsible {
margin-left: 2em;
}
.hoverable {
padding-top: 1px;
padding-bottom: 1px;
padding-left: 2px;
padding-right: 2px;
border-radius: 2px;
color: #E4EAF2;
}
a {
color: #E8E363;
font-style: italic;
}
.hovered {
background-color: black;
}
.collapser {
padding-right: 6px;
padding-left: 6px;
}