99 lines
1.5 KiB
CSS
99 lines
1.5 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.weather-container {
|
|
width: 700px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: #333;
|
|
}
|
|
|
|
.additional-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.info-item {
|
|
flex: 0 1 calc(50% - 10px);
|
|
padding: 10px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.current-weather {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.weather-icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: #ccc;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.temperature {
|
|
font-size: 24px;
|
|
color: #333;
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.forecast {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.forecast-item {
|
|
flex-basis: calc(10% - 10px);
|
|
text-align: center;
|
|
padding: 10px;
|
|
background-color: #f9f9f9;
|
|
border-radius: 5px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.forecast-time {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
|
|
.forecast-icon {
|
|
width: 50px;
|
|
height: 50px;
|
|
background-color: #ccc;
|
|
border-radius: 50%;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.forecast-temperature {
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|