statusPage/static/style.css

156 lines
No EOL
2.5 KiB
CSS

* {
box-sizing:border-box;
margin:0px;
padding:0px;
}
html {
min-height:100%;
overflow-x:hidden;
}
body {
display:flex;
flex-flow:column nowrap;
align-items: center;
background-color: #212429;
color:#e4e4e4;
gap:25px;
font-family: "Fira Sans Condensed", sans-serif;
padding:40px 20px;
min-height:100vh;
}
.icon {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
font-size:0.85em;
margin:0px 4px;
}
a:has(>.icon:only-child) {
display:inline-flex;
text-decoration: none;
}
a {
color:inherit;
text-decoration-style: dotted;
&:hover {
text-decoration-style:solid;
}
}
header {
&>h1 {
font-weight:600;
}
}
error-notice {
border-radius: 3px;
background:rgb(159, 20, 20);
padding:5px 12px;
&:empty {
display:none;
}
}
main {
max-width:900px;
width:95%;
flex-grow: 1;
& .site {
& + .site {
margin-top:50px;
}
}
}
footer {
}
status-bar {
display:flex;
flex-flow:row nowrap;
align-items:center;
justify-content:space-between;
margin: 10px 0px;
user-select:none;
& status-bar-entry {
display:block;
flex:1 1 0px;
width:0px;
max-width: 7px;
height:25px;
border-radius:2px;
position:relative;
&[data-status="outage"] {
background:#ea1313;
border: 1px dashed #ffb704;
}
&[data-status="highly-degraded"] {
background:#cc263f;
}
&[data-status="degraded"] {
background:#e1a331;
}
&[data-status="healthy"] {
background:#0a7b46;
}
&[data-status="none"] {
background:#4b4d50;
}
& > div {
position:absolute;
left:50%;
bottom:100%;
transition: transform 0.25s, opacity 0.25s;
transform:translate(-50%, 0px);
opacity:0;
pointer-events: none;
padding:3px 8px;
background:#000000;
border-radius:4px;
display: flex;
flex-flow:column nowrap;
align-items:center;
width:max-content;
max-width:400px;
font-size:0.9em;
z-index:1;
user-select:text;
& strong {
font-weight: 400;
font-size: 1.05em;
}
& em {
font-style: normal;
opacity: 0.8;
}
}
&:focus {
box-shadow:0px 0px 0px 1.5px #d6d7d8;
}
&:hover > div, &:focus > div {
pointer-events:initial;
transform:translate(-50%, -5px);
opacity:1;
}
&:hover > div {
z-index:2;
}
}
}