new-tab-page/style.css

125 lines
1.8 KiB
CSS

body {
font-family: "Roboto", sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
}
body div {
flex-grow: 1;
}
html {
background: #fafafa;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans", "Roboto", sans-serif;
text-align: center;
font-weight: 200;
}
h1 {
font-size:4em;
}
p, footer, ul {
width: 80%;
line-height: 1.3em;
}
p, ul {
font-size: 120%;
}
li {
margin-top: 3px;
}
ul {
padding: 0;
list-style-type: none;
}
a {
color: mediumpurple;
text-decoration: none;
}
#searchbar {
text-align: center;
margin: 0 auto 30px;
width: max-content;
min-width: 500px;
max-width: 90%;
display: flex;
}
#searchbar input {
border: thin #ccc solid;
height: 100%;
padding: 8px 0;
flex-grow: 1;
border-radius: 5px 0 0 5px;
}
#searchbar button {
background: #0001;
border: none;
border-radius: 0 5px 5px 0;
}
#boxes {
text-align: center;
}
.box {
position: relative;
margin: 0 30px;
min-height: 300px;
min-width: 300px;
border-radius: 3px;
box-shadow: 0 0 20px #99999922;
display: inline-block;
background: transparent;
transition: 0.2s all linear;
text-align: left;
vertical-align: top;
padding: 0 15px;
}
.box:hover {
background: #00000011;
}
.box::before {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
background: radial-gradient(at 0% 0%, #99999911, 80%, #99999944);
}
.status::after {
margin-left: 5px;
color: white;
font-size: 0.6em;
text-transform: uppercase;
padding: 0 3px;
border-radius: 5px;
vertical-align: text-bottom;
}
.status.checking::after {
background: orange;
content: "checking";
}
.status.ok::after {
content: "ok";
background: #5c5;
}
.status.down::after {
content: "down";
background: red;
}
footer {
text-align: center;
color: grey;
font-style: italic;
margin: 20px auto;
box-sizing: content-box;
}