slige/web/public/style.css

231 lines
4.0 KiB
CSS
Raw Normal View History

2024-11-21 03:12:07 +00:00
:root {
color-scheme: light dark;
font-family: sans;
--bg-1: #2b2d31;
--bg-2: #313338;
--fg-2: #666666;
2024-12-06 09:39:50 +00:00
2024-12-14 23:07:36 +00:00
--black: #211f1c;
--black-transparent: #211f1caa;
--white: #ecebe9;
--white-transparent: #ecebe9aa;
2024-12-06 09:39:50 +00:00
--code-status: var(--white);
2024-11-21 03:12:07 +00:00
}
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
2024-12-06 09:39:50 +00:00
background-color: var(--black);
color: var(--white);
}
body.status-waiting {
2024-12-14 23:07:36 +00:00
--code-status: #e3b23c;
2024-12-06 09:39:50 +00:00
}
body.status-done {
2024-12-14 23:07:36 +00:00
--code-status: #63a46c;
2024-11-21 03:12:07 +00:00
}
main {
2024-12-06 09:39:50 +00: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;
2024-12-14 23:07:36 +00:00
padding: 1rem 0;
2024-12-06 09:39:50 +00:00
border-radius: 0.25rem;
border: 2px solid var(--code-status);
gap: 0.5rem;
2024-12-14 23:07:36 +00:00
min-width: 200px;
2024-12-06 09:39:50 +00:00
}
2024-12-06 10:57:26 +00:00
#views-nav input {
display: none;
}
#views-nav label {
display: inline-block;
padding: 0.4em;
padding-bottom: 0.2em;
cursor: pointer;
2024-12-14 23:07:36 +00:00
width: 100%;
text-align: center;
}
#views-nav label:hover {
background-color: rgba(255, 255, 255, 0.2);
}
#view {
overflow: hidden;
2024-12-06 10:57:26 +00:00
}
2024-12-06 11:54:43 +00:00
#view .code-container {
2024-12-14 23:07:36 +00:00
max-height: 100%;
overflow: scroll;
background-color: rgba(255, 255, 255, 0.1);
padding: 0.5rem;
border-radius: 0.5rem;
}
#view .code-container-inner {
2024-12-06 11:54:43 +00:00
display: flex;
2024-12-06 10:57:26 +00:00
font-size: 1rem;
2024-12-14 23:07:36 +00:00
overflow: scroll;
max-height: 100%;
2024-12-06 11:54:43 +00:00
}
#view .code-lines {
2024-12-13 10:03:28 +00:00
color: var(--white-transparent);
border-right: 1px solid currentcolor;
2024-12-14 23:07:36 +00:00
padding-right: 0.5rem;
margin: 0;
2024-12-13 10:03:28 +00:00
}
#view .code-source {
2024-12-14 23:07:36 +00:00
width: 100%;
padding-left: 0.5rem;
margin: 0;
2024-12-06 10:57:26 +00:00
}
2024-12-14 23:07:36 +00:00
#view-nav div {
width: 100%;
}
2024-12-06 11:54:43 +00:00
2024-12-06 10:57:26 +00:00
#views-nav input:checked + label {
background-color: var(--code-status);
color: var(--black);
2024-12-16 14:33:12 +00:00
font-weight: bold;
2024-12-06 10:57:26 +00:00
}
2024-12-06 09:39:50 +00:00
#views-layout {
display: flex;
margin: 0 auto;
padding: 1rem;
gap: 1rem;
2024-11-21 03:12:07 +00:00
max-width: 1500px;
2024-12-14 23:07:36 +00:00
height: calc(100vh - 100px);
2024-11-21 03:12:07 +00:00
}
2024-12-06 10:57:26 +00:00
#covers-tooltip {
2024-11-21 03:12:07 +00:00
z-index: 2;
2024-11-21 11:08:07 +00:00
position: fixed;
2024-11-21 03:12:07 +00:00
top: 0;
left: 0;
padding: 3px;
border-radius: 3px;
2024-12-06 11:54:43 +00:00
background-color: var(--black);
border: 2px solid var(--code-status);
border-radius: 0.25rem;
2024-11-21 03:12:07 +00:00
color: #eee;
}
2024-12-16 12:45:42 +00:00
.coverage-radio {
display: flex;
flex-direction: row;
}
.coverage-radio-group {
display: flex;
justify-content: center;
flex: 1;
padding: 2rem;
}
.coverage-radio-group label {
padding: 0.5rem;
border-radius: 0.25rem;
cursor: pointer;
border: 2px solid var(--code-status);
}
.coverage-radio-group input:checked ~ label {
background-color: var(--code-status);
2024-12-16 14:33:12 +00:00
color: var(--black);
font-weight: bold;
2024-12-16 12:45:42 +00:00
}
2024-11-21 03:12:07 +00:00
#flame-graph {
2024-12-14 23:07:36 +00:00
width: min-content;
}
#flame-graph #fg-background {
background-color: rgba(255, 255, 255, 0.1);
padding: 0.5rem;
border-radius: 0.5rem;
width: min-content;
}
#flame-graph #canvas-div {
2024-11-21 03:12:07 +00:00
width: 1004px;
height: 504px;
2024-12-14 23:07:36 +00:00
/*border: 2px solid rgb(240, 220, 200);*/
padding: 4px;
2024-11-21 03:12:07 +00:00
}
#flame-graph canvas {
z-index: 1;
width: 1000px;
height: 500px;
position: absolute;
image-rendering: pixelated;
transform: translate(-2px, -2px);
}
2024-12-14 23:07:36 +00:00
#flame-graph #toolbar {
margin: 20px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
#flame-graph #toolbar button {
padding: 5px 20px;
min-width: 100px;
}
2024-11-21 03:12:07 +00:00
#flame-graph #flame-graph-tooltip {
z-index: 2;
2024-11-21 11:08:07 +00:00
position: fixed;
2024-11-21 03:12:07 +00:00
top: 0;
left: 0;
padding: 3px;
border-radius: 3px;
background-color: var(--bg-2);
box-shadow: 2px 2px 2px black;
color: #eee;
}