statusPage/static/style.css
2024-10-10 00:34:08 -04:00

119 lines
No EOL
1.9 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;
}
a {
color:inherit;
text-decoration-style: dotted;
&:hover {
text-decoration-style:solid;
}
}
header {
&>h1 {
font-weight:600;
}
}
main {
max-width:900px;
width:95%;
flex-grow: 1;
}
footer {
}
status-bar {
display:flex;
flex-flow:row nowrap;
align-items:center;
justify-content:space-between;
margin: 10px 0px;
& 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;
box-shadow:0px 0px 3px #ea131355;
}
&[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;
transition-delay: 0.3s;
display: flex;
flex-flow:column nowrap;
align-items:center;
width:max-content;
max-width:400px;
font-size:0.9em;
z-index:1;
& 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;
transition-delay: 0s;
}
&:hover > div {
z-index:2;
}
}
}