mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
6e2237c02f
* chore(sass): introduce stylelint * chore(sass): introduce stylelint config that closely matches sass-lint config * chore: remove sass-lint from codebase * style(theme): disable stylelint string-quotes rule * chore(sass): introduce stylelint-prettier-config to prevent config conflicts * chore: delete sass-lint file * style(sass): fix remaining stylelint errors
77 lines
1.0 KiB
SCSS
77 lines
1.0 KiB
SCSS
/* Structure */
|
|
json-tree {
|
|
.json-tree-key {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.expandable {
|
|
position: relative;
|
|
|
|
&::before {
|
|
pointer-events: none;
|
|
}
|
|
|
|
&::before,
|
|
> .json-tree-key {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.json-tree-branch-preview {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
/* Looks */
|
|
json-tree {
|
|
ul {
|
|
padding-left: $spacer;
|
|
}
|
|
|
|
li,
|
|
ul {
|
|
list-style: none;
|
|
}
|
|
|
|
li {
|
|
line-height: 18px;
|
|
}
|
|
|
|
.json-tree-key {
|
|
color: $variable;
|
|
padding: 5px 10px 5px 15px;
|
|
|
|
&::after {
|
|
content: ':';
|
|
}
|
|
}
|
|
|
|
json-node.expandable {
|
|
&::before {
|
|
content: '\25b6';
|
|
position: absolute;
|
|
left: 0px;
|
|
font-size: 8px;
|
|
transition: transform 0.1s ease;
|
|
}
|
|
|
|
&.expanded::before {
|
|
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: 0.7;
|
|
}
|
|
}
|