icinga-dynamic-statuspage/statuspage/static/style.css
2023-09-10 09:14:33 +02:00

133 lines
2.1 KiB
CSS

:root {
--text-color: #333333;
--bg-root-color: #FFFFFF;
--line-color: #CCCCCC;
}
@media (prefers-color-scheme: dark) {
:root {
--text-color: #FFFFFF;
--bg-root-color: #222222;
--line-color: #444444;
}
}
@font-face {
font-family: "Ubuntu Mono";
src: url(UbuntuMono-Regular.ttf);
}
@font-face {
font-family: "OpenDyslexic";
src: url(OpenDyslexic-Regular.woff2);
}
* {
font-family: "OpenDyslexic",sans-serif;
font-size: 1em;
color: var(--text-color);
margin: 0;
padding: 0;
}
html, body {
background-color: var(--bg-root-color);
}
body {
max-width: 1000px;
margin: 20px auto;
}
h1 {
display: none;
}
h2 {
margin-top: 30px;
vertical-align: middle;
line-height: 1.3em;
font-size: 2em;
text-align: center;
}
.service {
margin: 2px;
padding: 10px;
border: 1px solid var(--line-color);
border-radius: 5px;
}
.service_ok {
cursor: pointer;
}
.service_ok .output, .service_ok .statusline {
display: none;
}
.service_ok:hover .output, .service_ok:hover .statusline {
display: block;
}
.service h3 {
font-weight: normal;
line-height: 1em;
}
.output {
font-family: "Ubuntu Mono", monospace;
font-size: 1.2em;
margin: 10px;
white-space: pre-wrap;
}
.statusline {
margin-top: 10px;
text-align: right;
}
.status_ok,
.status_warn,
.status_crit,
.status_unknown {
border-radius: 5px;
padding: 2px 10px;
margin-right: 15px;
color: #444444;
vertical-align: text-top;
font-weight: normal;
}
.status_ok {
background-color: #00bc8c;
}
.status_warn {
background-color: #ffca2c;
}
.status_crit {
background-color: #dc3545;
color: #FFFFFF;
}
.status_unknown {
background-color: #0dcaf0;
}
.loader {
border: 7px solid var(--bg-root-color);
border-top: 7px solid var(--text-color);
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 2s linear infinite;
margin: 10px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}