formats.exposed/public/png/png.css

97 lines
1.7 KiB
CSS

body {
margin: 1rem;
}
#explorer {
display: flex;
overflow: hidden;
}
#explorer .bytes,
#explorer .tree {
flex: 1;
overflow: auto;
}
#explorer .bytes {
max-width: 15em;
font-family: Inconsolata, Consolas, Monaco, monospace;
font-size: 80%;
line-height: 1.5em;
white-space: pre-wrap;
}
#explorer .bytes span {
cursor: pointer;
}
#explorer .bytes span.activated {
background: var(--activated-color);
color: var(--background-color);
}
#explorer .tree {
padding-left: 0.5rem;
scrollbar-gutter: stable;
}
#explorer .tree details.activated {
outline-width: 3px;
outline-color: var(--tree-activated-border-color);
}
#explorer .tree details {
outline: 1px solid var(--tree-border-color);
border-radius: 10px;
padding: 0 0.5rem 0 0.5rem;
transition: outline ease-out 0.1s;
margin: 3px 3px 0.5rem 3px;
}
#explorer .tree details[open] {
padding-bottom: 6px;
}
#explorer .tree details p:last-child {
margin-bottom: 0;
}
#explorer .tree details .children {
margin-left: 0.5rem;
}
#explorer .tree details summary {
cursor: pointer;
user-select: none;
display: flex;
}
#explorer .tree details summary:before {
content: "▶";
margin-right: 0.2em;
transition: transform ease-out 0.1s;
}
#explorer .tree details[open]>summary:before {
transform: rotate(90deg);
}
#explorer .tree details summary:focus {
outline: none;
}
#explorer .tree details summary .title {
flex: 1;
font-weight: bold;
}
#explorer .tree details summary .bytecount {
margin-left: 0.5em;
font-size: 75%;
opacity: 0.5;
}
#explorer .tree details:not(.activated) {
background: var(--background-color);
color: var(--foreground-color);
}