slige/web/public/style.css

147 lines
2.5 KiB
CSS
Raw Normal View History

2024-11-21 04:12:07 +01:00
:root {
color-scheme: light dark;
font-family: sans;
--bg-1: #2b2d31;
--bg-2: #313338;
--fg-2: #666666;
2024-12-06 10:39:50 +01:00
--black: #211F1C;
--black-transparent: #211F1Caa;
--white: #ECEBE9;
--code-status: var(--white);
2024-11-21 04:12:07 +01:00
}
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
2024-12-06 10:39:50 +01:00
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;
2024-11-21 04:12:07 +01:00
}
main {
2024-12-06 10:39:50 +01:00
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-layout {
display: flex;
margin: 0 auto;
padding: 1rem;
gap: 1rem;
2024-11-21 04:12:07 +01:00
max-width: 1500px;
}
#code-coverage {
width: 1000px;
height: 500px;
background-color: rgb(240, 220, 200);
}
#code-coverage pre {
background-color: none;
}
#code-coverage code {
font-family: monospace;
color: black;
font-weight: 600;
font-size: 20px;
}
#code-coverage canvas {
z-index: 1;
width: 1000px;
height: 500px;
position: absolute;
image-rendering: pixelated;
}
#code-coverage #covers-tooltip {
z-index: 2;
2024-11-21 12:08:07 +01:00
position: fixed;
2024-11-21 04:12:07 +01:00
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;
2024-11-21 12:08:07 +01:00
position: fixed;
2024-11-21 04:12:07 +01:00
top: 0;
left: 0;
padding: 3px;
border-radius: 3px;
background-color: var(--bg-2);
box-shadow: 2px 2px 2px black;
color: #eee;
}