Files
WeatherApp_JS/style.css
T
2024-02-25 23:00:07 +01:00

133 lines
2.1 KiB
CSS

* {
box-sizing: border-box;
font-family: "Open Sans", sans-serif;
}
body {
margin: 0;
}
.container {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
@media screen and (max-width: 640px) {
.content {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.temperature {
font-size: 300%;
}
.icon {
display: inline-block;
height: 128px;
}
.info {
text-align: center;
}
}
@media screen and (min-width: 640px) {
.content {
border-radius: 48px;
box-shadow: 0 0 32px #000000;
}
.temperature {
font-size: 600%;
}
.icon {
display: inline-block;
height: 256px;
}
.col {
text-align: center;
flex: 1 0 0%;
}
.info {
text-align: left;
}
.info.right {
text-align: right;
}
.row_info {
display: flex;
justify-content: center;
align-items: center;
}
}
.row {
display: flex;
justify-content: center;
align-items: center;
}
.content {
padding: 16px;
color: white;
backdrop-filter: blur(3px) brightness(60%);
}
.city-title {
text-align: center;
font-weight: 200;
}
.temperature {
display: inline-block;
margin: 16px;
margin-bottom: 0;
font-weight: 300;
}
.description {
font-style: italic;
text-align: center;
margin: 0;
}
.feel_temp {
text-align: center;
}
.info {
margin: 4px 24px 0 24px;
font-weight: 300;
font-style: italic;
}
.author {
text-align: center;
font-weight: 300;
font-style: italic;
}
.author a {
font-weight: 500;
text-decoration: none;
color: white;
font-style: normal;
}
.author a:hover {
text-decoration: underline;
}