sdbs-infra/sdbs_infra/dashboard/static/main.css
2020-06-15 12:20:01 +02:00

115 lines
No EOL
1.6 KiB
CSS

html, body {
width: 100%;
min-height: 100%;
margin: 0;
}
body {
background: black;
color: white;
font-family: monospace;
font-size: 13pt;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
a {
color: white;
text-decoration: none;
}
h1, h2 {
text-align: center;
margin: 1rem 0;
}
main {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: -1rem;
}
.service {
flex-basis: 20%;
margin: 1rem;
display: flex;
flex-direction: column;
}
@media screen and (max-width: 1000px) {
.service {
flex-basis: 40%;
}
}
@media screen and (max-width: 600px) {
.service {
flex-basis: 100%;
}
}
.service-content {
flex-grow: 1;
border: 1px solid white;
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.service-content img {
flex-grow: 1;
min-width: 50%;
max-width: 100%;
filter: grayscale(100%);
image-rendering: crisp-edges;
text-align: center;
}
.service .label h3 {
margin: 1rem 0;
text-align: center;
}
.service .label .description {
font-size: 10pt;
margin: 0;
align-self: flex-start;
}
.service-status {
border: 1px solid white;
border-top: 0;
text-transform: uppercase;
text-align: right;
padding: .25em .5em;
}
.status-ok .service-status {
color: gray;
}
.status-down .service-status {
color: darkred;
}
.stats {
text-align: justify;
padding: 1.5rem 0;
}
.stats em {
font-style: normal;
font-weight: bold;
}