@import "../../styles/var.less";

.jsonView {
  display: inline;
  line-height: 21px;
  .jsonViewIcon {
    display: inline-block;
    margin: 2px 4px;
  }
}

.jsonViewKey {
  color: @font-color;
  background: #f5f5f5;
}
.jsonIndexViewKey {
  background: @primary-color-8;
}

.jsonViewValue {
  padding-left: 8px;
  color: @font-color;
  white-space: pre-wrap;
}

.jsonViewHighlight {
  color: @primary-color-90;
  font-weight: bold;
  word-break: break-all;
  cursor: pointer;
  &:hover {
    color: @primary-color-90;
  }
}

.jsonViewValueHover {
  &:hover {
    color: @primary-color-90;
    text-decoration: underline;
    cursor: pointer;
  }
}

.hiddenButton {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-right: 5px;
}

.pre {
  margin: 0;
  font-size: 14px;
  font-family: "-apple-system", "BlinkMacSystemFont", "PingFang SC", "Helvetica",
    "Tahoma", "Arial", "Microsoft YaHei", "微软雅黑", "黑体", "Heiti",
    "sans-serif", "SimSun", "宋体", "serif";
  white-space: pre-wrap;
}

.jsonViewArrayItem {
  & > .jsonViewValue {
    padding-left: 0;
  }
}
