自己搭配的一套不错的Json配色CSS代码

用于给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;
}
    原文作者:snowell
    原文地址: https://segmentfault.com/a/1190000002601792
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞