mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 23:06:32 +00:00
147 lines
2.4 KiB
CSS
147 lines
2.4 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
font-family: sans;
|
|
|
|
--bg-1: #2b2d31;
|
|
--bg-2: #313338;
|
|
--fg-2: #666666;
|
|
|
|
--black: #211F1C;
|
|
--black-transparent: #211F1Caa;
|
|
--white: #ECEBE9;
|
|
--code-status: var(--white);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
height: 100vh;
|
|
background-color: var(--black);
|
|
color: var(--white);
|
|
}
|
|
|
|
body.status-error {
|
|
--code-status: #FF595E;
|
|
}
|
|
|
|
body.status-waiting {
|
|
--code-status: #E3B23C;
|
|
}
|
|
|
|
body.status-done {
|
|
--code-status: #63A46C;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
flex: 1;
|
|
padding: 1rem;
|
|
}
|
|
main > :not(#cover) {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
main #cover {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: var(--black-transparent);
|
|
font-size: 2.5em;
|
|
|
|
border-radius: 0.25rem;
|
|
border: 2px solid var(--code-status);
|
|
}
|
|
|
|
.status-header {
|
|
font-size: 1.75rem;
|
|
padding: 1rem;
|
|
background-color: var(--code-status);
|
|
color: var(--black);
|
|
}
|
|
.status-header-content {
|
|
margin: 0 auto;
|
|
max-width: 1500px;
|
|
}
|
|
|
|
#views-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1rem;
|
|
border-radius: 0.25rem;
|
|
border: 2px solid var(--code-status);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
#views-nav input {
|
|
display: none;
|
|
}
|
|
|
|
#views-nav label {
|
|
display: inline-block;
|
|
padding: 0.4em;
|
|
padding-bottom: 0.2em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#view pre {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#views-nav input:checked + label {
|
|
background-color: var(--code-status);
|
|
color: var(--black);
|
|
}
|
|
|
|
|
|
#views-layout {
|
|
display: flex;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
gap: 1rem;
|
|
max-width: 1500px;
|
|
}
|
|
|
|
#covers-tooltip {
|
|
z-index: 2;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
padding: 3px;
|
|
border-radius: 3px;
|
|
background-color: var(--bg-2);
|
|
box-shadow: 2px 2px 2px black;
|
|
color: #eee;
|
|
}
|
|
|
|
#flame-graph {
|
|
width: 1004px;
|
|
height: 504px;
|
|
background-color: var(--bg-2);
|
|
border: 2px solid rgb(240, 220, 200);
|
|
padding: 2px;
|
|
}
|
|
#flame-graph canvas {
|
|
z-index: 1;
|
|
width: 1000px;
|
|
height: 500px;
|
|
position: absolute;
|
|
image-rendering: pixelated;
|
|
transform: translate(-2px, -2px);
|
|
}
|
|
#flame-graph #flame-graph-tooltip {
|
|
z-index: 2;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
padding: 3px;
|
|
border-radius: 3px;
|
|
background-color: var(--bg-2);
|
|
box-shadow: 2px 2px 2px black;
|
|
color: #eee;
|
|
}
|