Ying_Yong_Ke_Xue_Cheng_Da_Ping/publish/data/weather.css

124 lines
2.1 KiB
CSS
Raw Permalink Normal View History

2024-07-16 10:20:26 +08:00
.weather-box {
position: fixed;
left: 50%;
bottom:71px;
width:600px;
height: 100px;
cursor: pointer;
padding-top: 50px;
transform: translate(-50%,-50%);
}
.weather-open {
position: absolute;
left: 50%;
bottom: 0;
width: 100px;
height: 100px;
cursor: pointer;
}
.trans-r {
transform: rotate(180deg);
}
.trans-l {
transform: rotate(0deg);
}
/*.weather-box:hover .weather {*/
/* display: flex;*/
/*}*/
.weather {
width: 600px;
display: flex;
align-items: center;
opacity: 0.8;
margin: 0 auto;
}
.weather .weather-l {
display: flex;
align-items: center;
margin-right: 14px;
}
.weather-item:hover {
transform: scale(1.2);
}
.weather .weather-l > div {
width: 40px;
height: 40px;
margin-right: 14px;
background-size: contain;
}
.weather .weather-l > div:nth-child(1) {
background-image: url("../img/img19.png");
}
.weather .weather-l > div:nth-child(2) {
background-image: url("../img/img14.png");
}
.weather .weather-l > div:nth-child(3) {
background-image: url("../img/img25.png");
}
.weather .weather-l > div:nth-child(4) {
background-image: url("../img/img26.png");
}
.weather .weather-r {
position: relative;
background-image: url("../img/img24.png");
width: 300px;
height: 38px;
display: flex;
align-items: center;
justify-content: space-between;
background-size: contain;
}
.weather .weather-r .weather-r-l {
width: 24px;
height: 24px;
background-image: url("../img/img17.png");
margin-left:10px;
background-size: contain;
}
.weather .weather-r .weather-r-r {
width: 24px;
height: 24px;
background-image: url("../img/img18.png");
margin-right: 12px;
background-size: contain;
}
.weather-r-c-b {
position: absolute;
left: 40px;
top: 14px;
width: 220px;
height: 12px;
background-image: url("../img/img23.png");
background-size: contain;
border-radius: 20px;
}
.weather-r-c-f {
position: absolute;
left: 0px;
top: -1px;
width: 12px;
height: 16px;
background-image: url("../img/img22.png");
cursor: pointer;
background-size: contain;
}