Clean up styles.css
This commit is contained in:
parent
f9f1153299
commit
f10164ac25
|
@ -1,109 +1,9 @@
|
|||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.weather-container {
|
||||
width: 800px;
|
||||
max-height: 480px;
|
||||
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;
|
||||
}
|
||||
|
||||
html {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
body {
|
||||
padding: 35px;
|
||||
max-width: 800px;
|
||||
height: 480px;
|
||||
margin: auto;
|
||||
|
|
Loading…
Reference in New Issue