aqi_monitor/frontend/nginx/css/style.css

91 lines
1.1 KiB
CSS

@font-face {
font-family: Rubik-Bold;
src: url(/font/Rubik-Bold.ttf);
}
@font-face {
font-family: Rubik-Light;
src: url(/font/Rubik-Light.ttf);
}
@font-face {
font-family: Rubik-Regular;
src: url(/font/Rubik-Regular.ttf);
}
body {
margin: 0;
padding: 0;
}
h1 {
font-family: Rubik-Bold;
font-size: 3em;
}
h2 {
font-family: Rubik-Light;
}
p {
font-family: Rubik-Regular;
}
.colorbox {
height: 40px;
margin: 0;
padding: 0;
}
.title {
padding: 30px 0;
}
.top_content, .tagline_content {
width: 70%;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.cloud {
position: relative;
padding-bottom: 30px;
}
.cloud img {
width: 100%;
}
.aqi_box {
position: absolute;
top: 50%;
left: 50%;
text-align: right;
transform: translate(-50%, -50%);
color: #fff;
}
.aqi_box h1 {
font-size: 10em;
margin: 0;
}
.aqi_box h2 {
margin: 0;
}
.tagline_content {
text-align: center;
}
/* responsiv */
@media screen and (max-width: 700px) {
.top_content {
width: 90%;
}
.aqi_box h1 {
font-size: 7em;
}
}