sdbs-infra/sdbs_infra/dashboard/static/main.css

200 lines
2.7 KiB
CSS
Raw Normal View History

html, body {
2020-06-15 12:16:04 +02:00
width: 100%;
2020-06-15 12:17:08 +02:00
min-height: 100%;
margin: 0;
}
2020-06-14 12:17:26 +02:00
body {
background: black;
color: white;
font-family: monospace;
font-size: 13pt;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
2020-06-14 12:17:26 +02:00
}
a {
color: white;
text-decoration: none;
}
h1, h2 {
text-align: center;
}
2020-06-20 19:32:10 +02:00
h1 {
margin: 1rem 0 0 0;
}
h2 {
margin: 2rem 0 0 0;
}
.boxes {
2020-06-15 12:16:04 +02:00
width: 100%;
2020-06-14 12:17:26 +02:00
display: flex;
flex-wrap: wrap;
justify-content: center;
2020-06-15 12:20:01 +02:00
margin-bottom: -1rem;
2020-06-14 12:17:26 +02:00
}
2020-06-20 19:32:10 +02:00
.box {
2020-06-14 14:44:36 +02:00
flex-basis: 20%;
2020-06-14 12:17:26 +02:00
margin: 1rem;
display: flex;
flex-direction: column;
}
2020-06-14 14:44:36 +02:00
@media screen and (max-width: 1000px) {
2020-06-20 19:32:10 +02:00
.box {
2020-06-14 14:44:36 +02:00
flex-basis: 40%;
}
}
@media screen and (max-width: 600px) {
2020-06-20 19:32:10 +02:00
.box {
2020-06-14 14:44:36 +02:00
flex-basis: 100%;
}
}
2020-06-20 19:32:10 +02:00
.box-content {
2020-06-14 12:17:26 +02:00
flex-grow: 1;
border: 1px solid white;
padding: 2rem;
display: flex;
2020-07-15 03:56:01 +02:00
flex-direction: column;
2020-06-14 12:17:26 +02:00
align-items: center;
2020-07-15 03:56:01 +02:00
justify-content: flex-end;
2020-06-14 12:17:26 +02:00
}
2020-06-20 19:32:10 +02:00
.link .box-content {
flex-direction: row;
justify-content: space-evenly;
}
.box-content img {
2020-06-14 12:26:05 +02:00
filter: grayscale(100%);
2020-06-14 12:58:50 +02:00
image-rendering: crisp-edges;
2020-06-14 14:41:25 +02:00
text-align: center;
2020-06-14 12:26:05 +02:00
}
2020-07-15 03:56:01 +02:00
.machine img, .service img {
2020-06-20 19:32:10 +02:00
min-width: 50%;
max-width: 100%;
}
.link img {
min-height: 1rem;
max-height: 4rem;
}
2020-07-15 03:56:01 +02:00
.label h3 {
2020-06-14 12:17:26 +02:00
margin: 1rem 0;
text-align: center;
}
2020-06-20 19:44:24 +02:00
.link .label {
2020-06-20 19:43:44 +02:00
margin-left: 1rem;
}
2020-06-20 19:32:10 +02:00
.link .label h3 {
margin: 0 0 1rem;
}
.box .label .description {
2020-06-14 14:41:25 +02:00
font-size: 10pt;
2020-06-14 12:17:26 +02:00
margin: 0;
align-self: flex-start;
2020-07-15 04:11:21 +02:00
text-align: center;
2020-06-14 12:17:26 +02:00
}
2020-07-15 03:56:01 +02:00
.status {
2020-06-14 12:17:26 +02:00
border: 1px solid white;
border-top: 0;
text-transform: uppercase;
text-align: right;
2020-06-14 14:52:34 +02:00
padding: .25em .5em;
}
2020-07-15 03:56:01 +02:00
.status-ok .status {
2020-06-14 14:52:34 +02:00
color: gray;
}
2020-07-15 03:56:01 +02:00
.status-down .status {
2020-06-14 14:52:34 +02:00
color: darkred;
2020-06-14 19:51:35 +02:00
}
2020-07-15 03:56:01 +02:00
.status-unknown .status {
color: darkorange;
}
2020-06-15 12:20:01 +02:00
.stats {
2021-10-05 23:38:00 +02:00
text-align: center;
2020-06-15 12:20:01 +02:00
padding: 1.5rem 0;
}
2020-06-15 12:20:01 +02:00
.stats em {
2020-06-14 19:51:35 +02:00
font-style: normal;
font-weight: bold;
2020-07-15 13:50:52 +02:00
}
.firehose {
margin: 0 4rem 2rem 4rem;
}
2020-07-15 13:57:43 +02:00
@media screen and (max-width: 600px) {
.firehose {
margin: 0 .5rem 1rem .5rem;
}
}
2020-07-15 14:16:36 +02:00
.firehose a {
text-decoration: underline;
}
2020-07-15 13:50:52 +02:00
.firehose .logs {
list-style: none;
padding: 0;
}
.firehose .logs .header .timestamp {
white-space: nowrap;
color: darkgray;
margin-right: 1em;
}
.firehose .logs .header {
display: flex;
}
2020-07-15 13:57:43 +02:00
@media screen and (max-width: 600px) {
.firehose .logs .header {
flex-direction: column;
align-items: center;
}
}
2020-07-15 13:50:52 +02:00
.firehose .logs li {
margin: .75em 0;
}
2020-07-15 13:57:43 +02:00
@media screen and (min-width: 600px) {
.firehose .logs .summary {
margin: .25em 0 0 4rem;
}
}
@media screen and (max-width: 600px) {
.firehose .logs .summary {
margin: .25em 0 0 0;
}
}