2021-02-16 03:40:22 +00:00
|
|
|
|
@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 {
|
2021-02-19 13:21:51 +00:00
|
|
|
|
font-family: Rubik-Bold;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-02-19 05:57:04 +00:00
|
|
|
|
h3 {
|
2021-02-19 13:21:51 +00:00
|
|
|
|
font-family: Rubik-Light;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
font-size: 1.3em;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-16 03:40:22 +00:00
|
|
|
|
p {
|
|
|
|
|
font-family: Rubik-Regular;
|
2021-02-19 13:21:51 +00:00
|
|
|
|
font-size: 1.1em;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-02-21 08:12:20 +00:00
|
|
|
|
a {
|
|
|
|
|
color: inherit;
|
|
|
|
|
font-family: Rubik-Regular;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content {
|
2021-02-19 05:57:04 +00:00
|
|
|
|
width: 70%;
|
|
|
|
|
max-width: 900px;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-16 03:40:22 +00:00
|
|
|
|
.colorbox {
|
|
|
|
|
height: 40px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2021-02-28 08:16:27 +00:00
|
|
|
|
position: sticky;
|
|
|
|
|
position: -webkit-sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 1;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
2021-02-21 08:12:20 +00:00
|
|
|
|
.top_content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex: 20%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav ul {
|
|
|
|
|
list-style-type:none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav li {
|
|
|
|
|
padding: 10px 40px;
|
|
|
|
|
margin: 10px;
|
|
|
|
|
border-style: none none solid none;
|
|
|
|
|
border-width: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-16 03:40:22 +00:00
|
|
|
|
.title {
|
|
|
|
|
padding: 30px 0;
|
2021-02-21 08:12:20 +00:00
|
|
|
|
flex: 80%;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cloud {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cloud img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.aqi_box {
|
|
|
|
|
position: absolute;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
top: 45%;
|
|
|
|
|
left: 55%;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
text-align: right;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.aqi_box h1 {
|
2021-02-19 05:57:04 +00:00
|
|
|
|
font-size: 15em;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.aqi_box h2 {
|
2021-02-22 04:40:41 +00:00
|
|
|
|
font-family: Rubik-Light;
|
|
|
|
|
font-size: 1.8em;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-19 05:57:04 +00:00
|
|
|
|
/* weather styling */
|
2021-02-21 08:12:20 +00:00
|
|
|
|
.block_wrap {
|
|
|
|
|
margin-bottom: 40px;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_box {
|
|
|
|
|
border: solid 2px;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
height: 100px;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_content {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: auto auto auto auto;
|
|
|
|
|
grid-column-gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_icon {
|
2021-02-22 04:40:41 +00:00
|
|
|
|
width: 50px;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
padding: 10px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_icon img {
|
2021-02-22 04:40:41 +00:00
|
|
|
|
width: 100%;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_text {
|
|
|
|
|
width: 60%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 40%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weather_text h3,
|
|
|
|
|
.weather_text p {
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-19 13:21:51 +00:00
|
|
|
|
/* descriptions */
|
|
|
|
|
.desc_wrap {
|
|
|
|
|
margin: 40px 0;
|
|
|
|
|
padding: 30px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc_content {
|
2021-02-21 08:12:20 +00:00
|
|
|
|
padding-top: 30px;
|
|
|
|
|
padding-bottom: 30px;
|
2021-02-19 13:21:51 +00:00
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 33% 33% 33%;
|
|
|
|
|
grid-column-gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc_box {
|
|
|
|
|
margin: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc_item_wrap {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc_item {
|
|
|
|
|
padding: 8px 10px;
|
2021-02-22 04:40:41 +00:00
|
|
|
|
margin: 4px;
|
2021-02-19 13:21:51 +00:00
|
|
|
|
color: #fff;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 200px;
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
transition-timing-function: ease;
|
|
|
|
|
-webkit-transition: transform 2s;
|
|
|
|
|
-moz-transition: transform 2s;
|
|
|
|
|
-ms-transition: transform 2s;
|
|
|
|
|
-o-transition: transform 2s;
|
|
|
|
|
transition: transform 2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.good {
|
|
|
|
|
background-color: #85a762;
|
|
|
|
|
}
|
|
|
|
|
.moderate {
|
|
|
|
|
background-color: #d4b93c;
|
|
|
|
|
}
|
|
|
|
|
.ufsg {
|
|
|
|
|
background-color: #e96843;
|
|
|
|
|
}
|
|
|
|
|
.unhealthy {
|
|
|
|
|
background-color: #d03f3b;
|
|
|
|
|
}
|
|
|
|
|
.vunhealthy {
|
|
|
|
|
background-color: #be4173;
|
|
|
|
|
}
|
|
|
|
|
.hazardous {
|
|
|
|
|
background-color: #714261;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-22 04:40:41 +00:00
|
|
|
|
.category_icon {
|
|
|
|
|
padding: 30px;
|
|
|
|
|
}
|
2021-02-19 13:21:51 +00:00
|
|
|
|
.category_icon img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-16 03:40:22 +00:00
|
|
|
|
.tagline_content {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-19 13:21:51 +00:00
|
|
|
|
.desc_item.active {
|
|
|
|
|
transform: scale(1.2);
|
2021-02-22 04:40:41 +00:00
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
margin: 15px;
|
2021-02-19 13:21:51 +00:00
|
|
|
|
box-shadow: darkgray 5px 5px;
|
2021-02-21 08:12:20 +00:00
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* about */
|
|
|
|
|
.aqirow {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.leftcolumn {
|
|
|
|
|
width: 150px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.leftcolumn.category-class {
|
2021-02-19 13:21:51 +00:00
|
|
|
|
font-weight: bold;
|
2021-02-21 08:12:20 +00:00
|
|
|
|
color: #FFFFFF;
|
2021-02-19 13:21:51 +00:00
|
|
|
|
}
|
2021-02-21 08:12:20 +00:00
|
|
|
|
.rightcolumn {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0px;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.credits {
|
|
|
|
|
padding-top: 30px;
|
|
|
|
|
padding-bottom: 30px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.leftcolumn p,
|
|
|
|
|
.rightcolumn p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-24 09:33:43 +00:00
|
|
|
|
/* graphs */
|
|
|
|
|
.graph2 {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 50% 50%;
|
|
|
|
|
grid-column-gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.graph3 {
|
2021-02-27 08:28:01 +00:00
|
|
|
|
display: flex;
|
2021-02-24 09:33:43 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.graph_item img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-21 08:12:20 +00:00
|
|
|
|
/* footer */
|
|
|
|
|
.footer_wrap {
|
|
|
|
|
height: 50px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-19 13:21:51 +00:00
|
|
|
|
|
2021-02-16 03:40:22 +00:00
|
|
|
|
/* responsiv */
|
2021-02-19 05:57:04 +00:00
|
|
|
|
@media screen and (max-width: 1100px) {
|
|
|
|
|
.top_content,
|
|
|
|
|
.tagline_content,
|
|
|
|
|
.weather_content {
|
|
|
|
|
width: 90%;
|
|
|
|
|
}
|
2021-02-28 08:16:27 +00:00
|
|
|
|
.desc_content {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
}
|
|
|
|
|
.desc_box:nth-child(1) {
|
|
|
|
|
grid-column: span 1;
|
|
|
|
|
grid-row: span 2;
|
|
|
|
|
}
|
|
|
|
|
.desc_box:nth-child(2),
|
|
|
|
|
.desc_box:nth-child(3) {
|
|
|
|
|
grid-column: span 1;
|
|
|
|
|
grid-row: span 1;
|
|
|
|
|
}
|
2021-02-19 05:57:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 800px) {
|
2021-02-18 10:53:46 +00:00
|
|
|
|
h1 {
|
|
|
|
|
font-size: 2.5em;
|
|
|
|
|
}
|
2021-02-22 04:40:41 +00:00
|
|
|
|
.top_content {
|
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
|
}
|
|
|
|
|
.content {
|
|
|
|
|
width: 95%;
|
|
|
|
|
}
|
|
|
|
|
.nav {
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
}
|
|
|
|
|
.nav li {
|
|
|
|
|
display: inline-flex;
|
2021-02-25 03:15:40 +00:00
|
|
|
|
padding: 5px 20px;
|
2021-02-22 04:40:41 +00:00
|
|
|
|
}
|
|
|
|
|
.nav ul {
|
2021-02-25 03:15:40 +00:00
|
|
|
|
margin: 10px auto;
|
2021-02-22 04:40:41 +00:00
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
2021-02-18 10:53:46 +00:00
|
|
|
|
.title h1 {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
.title {
|
2021-02-22 04:40:41 +00:00
|
|
|
|
padding: 0;
|
2021-02-18 10:53:46 +00:00
|
|
|
|
}
|
2021-02-19 05:57:04 +00:00
|
|
|
|
.aqi_box {
|
|
|
|
|
width: 85%;
|
|
|
|
|
top: 40%;
|
|
|
|
|
text-align: center;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
|
|
|
|
.aqi_box h1 {
|
2021-02-19 05:57:04 +00:00
|
|
|
|
font-size: 6em;
|
|
|
|
|
}
|
|
|
|
|
.aqi_box h2 {
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
.weather_content {
|
|
|
|
|
grid-template-columns: auto auto;
|
|
|
|
|
grid-row-gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
.weather_icon {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
}
|
|
|
|
|
.weather_icon img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.weather_text {
|
2021-02-22 04:40:41 +00:00
|
|
|
|
left: 35%;
|
2021-02-19 05:57:04 +00:00
|
|
|
|
}
|
|
|
|
|
.weather_text h3 {
|
|
|
|
|
font-size: 1.2;
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|
2021-02-19 13:21:51 +00:00
|
|
|
|
.desc_content {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
2021-02-22 04:40:41 +00:00
|
|
|
|
.desc_item {
|
|
|
|
|
padding: 0 10px;
|
2021-02-28 08:16:27 +00:00
|
|
|
|
width: 50%;
|
2021-02-22 04:40:41 +00:00
|
|
|
|
}
|
|
|
|
|
.category_icon {
|
|
|
|
|
padding: 0 20%;
|
|
|
|
|
}
|
2021-02-24 09:33:43 +00:00
|
|
|
|
.graph2 {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.graph3 {
|
2021-02-27 08:28:01 +00:00
|
|
|
|
flex-direction: column-reverse;
|
2021-02-24 09:33:43 +00:00
|
|
|
|
}
|
2021-02-16 03:40:22 +00:00
|
|
|
|
}
|