summaryrefslogtreecommitdiffstats
path: root/testapi/3rd_party/static/testapi-ui/assets/lib/angular-json-tree/angular-json-tree.css
blob: f25142aa70617410f18dd90417db850c7b8b14df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* Structure */
json-tree {
  box-sizing: border-box;
}
json-tree *,
json-tree *:before,
json-tree *:after {
  box-sizing: border-box;
}
json-tree .key {
  vertical-align: middle;
}
json-tree .expandable {
  position: relative;
  padding-left: 0px
}
json-tree .expandable::before {
  pointer-events: none;
}
json-tree .branch-preview {
  display: inline-block;
  vertical-align: middle;
}
/* Looks */
json-tree ul {
  padding-left: 0px;
  margin-bottom: 0px;
}
json-tree li,
json-tree ul {
  list-style: none;
}
json-tree li {
  line-height: 1.5em;
}
json-tree .key {
  font-weight: bold;
  color: #D02828;
  /* padding: 5px 10px 5px 15px; */
}
json-tree .key::after {
  content: ':';
}
json-tree json-node.expandable::before {
  /* content: '\25b6'; */
  position: absolute;
  left: 0px;
  font-size: 10px;
  -webkit-transition: -webkit-transform .1s ease;
  transition: -webkit-transform .1s ease;
  transition: transform .1s ease;
  transition: transform .1s ease, -webkit-transform .1s ease;
}
json-tree json-node.expandable.expanded::before {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
json-tree .leaf-value,
json-tree .branch-preview {
  word-break: break-all;
}
json-tree .branch-preview {
  overflow: hidden;
  font-style: italic;
  max-width: 40%;
  height: 1.5em;
  opacity: .7;
}

json-tree .firstkey::after {
  content: '';
}

li > json-node > ul {
  padding-left: 10px;
}