1 Star 2 Fork 0

stardust-git/重邮风采

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
css.css 3.51 KB
一键复制 编辑 原始数据 按行查看 历史
stardust-git 提交于 2020-12-16 16:58 . third
#App {
background-color: antiquewhite;
padding: 3vw 10vw;
transition: all 2s;
}
.h1 {
font-size: 22px;
line-height: 1.4;
margin-bottom: 14px;
font-weight: bold;
text-align: center;
}
.h2 {
position: relative;
height: 200px;
}
.h2>p {
position: absolute;
bottom: 20px;
right: 20px;
}
.h2 h3 {
position: absolute;
color: rgb(189, 126, 91);
}
.h2 .img img {
transition: all 1s;
}
.h2 .img img:nth-child(1) {
opacity: 1;
height: 40px;
width: 40px;
top: 50%;
left: 10%;
position: absolute;
}
.h2 .img img:nth-child(2) {
height: 50px;
width: 50px;
top: 45%;
left: 20%;
opacity: 0.8;
position: absolute;
}
.h2 .img img:nth-child(3) {
opacity: 0.6;
height: 60px;
width: 60px;
top: 40%;
left: 30%;
position: absolute;
}
.h2 .img img:nth-child(4) {
opacity: 0.4;
opacity: 1;
height: 70px;
width: 70px;
top: 35%;
left: 40%;
position: absolute;
}
.h2 .img img:nth-child(5) {
opacity: 0.2;
height: 80px;
width: 80px;
top: 30%;
left: 50%;
position: absolute;
}
.h2 .img img:hover {
opacity: 1;
height: 100px;
width: 100px;
transform: translateY(-20px);
}
.pain {
position: absolute;
bottom: 0;
}
.content {
margin-top: 20px;
}
.content .first {
display: flex;
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
}
.content .first .text {
position: relative;
height: 50px;
width: 30vw;
background-color: rgb(225, 160, 94);
color: rgb(228, 154, 81);
text-align: center;
-webkit-text-stroke: 0.5px #fff;
line-height: 50px;
border-radius: 0 20px 0 0;
font-size: 24px;
font-weight: bolder;
text-shadow: 0 3px 10px rgb(0, 0, 0);
transition: all 1s linear;
}
.content .first .span {
width: 200px;
display: flex;
justify-content: space-around;
transition: all 1s linear;
}
.content .first .faction {
display: inline-block;
height: 30px;
width: 30px;
background-color: rgb(225, 160, 94);
border-radius: 50%;
margin: 0 10px;
}
.content:hover .first .text {
color: rgb(223, 142, 61);
transform: translate(50vw, 2vw);
background-color: transparent;
font-size: 36px;
}
.content:hover .first .text img {
display: none;
}
.content:hover .first .span {
transform: translate(-390px, 60px);
opacity: 0;
}
.content .first .text img {
width: 30px;
height: 30px;
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
}
.content .second {
margin-top: 36px;
line-height: 160%;
}
.content .second p {
text-indent: 2em;
}
.content .third {
display: flex;
flex-wrap: wrap;
}
.content .third img {
box-sizing: border-box;
padding: 20px;
width: 50%;
height: 50%;
}
.content .footer {
margin: 1vh 0 10vh 36vw;
display: block;
width: 36vw;
height: 2px;
background-color: rgb(235, 135, 4);
}
@media (max-width: 768px) {
.content .third img {
width: 100%;
height: 100%;
}
.content .first .span {
display: none;
}
.h2 {
position: relative;
height: 300px;
}
.content:hover .first .text {
transform: translate(250px, 20px);
}
}
@media (max-width: 568px) {
.h2>p {
font-size: 12px;
}
.content:hover .first .text {
transform: translate(0, -5px);
font-size: 24px;
}
.content .first .text{
width: 400px;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/stardust_wind/my-cqupt.git
[email protected]:stardust_wind/my-cqupt.git
stardust_wind
my-cqupt
重邮风采
SGH

搜索帮助

0d507c66 1850385 C8b1a773 1850385