datagraph/static/less/main.less
2025-07-02 18:02:09 +02:00

94 lines
1.1 KiB
Text

html {
box-sizing: border-box;
font-family: sans-serif;
font-size: 14pt;
margin: 0px;
padding: 0px;
}
body {
margin: 0px;
padding: 0px;
background-color: #333;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
*:focus {
outline: none;
}
[onClick] {
cursor: pointer;
}
#nodes {
background-color: #fff;
padding: 32px;
border-radius: 8px;
margin: 32px;
width: min-content;
}
.node {
display: grid;
grid-template-columns: min-content min-content 100%;
white-space: nowrap;
img {
height: 24px;
}
&.expanded {
&>.children {
display: block;
}
}
.expand-status {
padding-left: 8px;
padding-right: 8px;
&.leaf {
width: 36px;
img {
display: none;
}
}
img {
cursor: pointer;
}
}
.icon {
padding-right: 8px;
img {
filter: invert(.7) sepia(.5) hue-rotate(50deg) saturate(300%) brightness(0.85);
}
}
.name {
margin-bottom: 8px;
line-height: 24px;
}
.children {
display: none;
grid-column: 1 / -1;
border-left: 1px solid #ccc;
padding-left: 12px;
margin-left: 19px;
/*
&.expanded {
display: block;
}
*/
}
}