Template:栏目块.css:修订间差异
来自HUIJIA FUN
Plurimod学生会(留言 | 贡献) (Plurimod学生会将页面Template:栏目块.css的内容模型从“wikitext”更改为“CSS”) 标签:内容模型更改 |
Plurimod学生会(留言 | 贡献) (Plurimod学生会将页面Template:栏目块.css的内容模型从“CSS”更改为“已过滤的CSS”) 标签:内容模型更改 |
(没有差异)
| |
2024年3月4日 (一) 13:45的最新版本
/* 复制于https://otomad.wiki/Template:%E5%AD%90%E6%A0%8F%E7%9B%AE.css */
.childbox-image-more::before {
content: "";
opacity: 0;
transition:opacity 0.2s;
}
.childbox-image-more:hover::before {
content: "了解更多";
font-weight: bold;
position: absolute;
display: flex;
font-size: 20px;
color: black;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
z-index: 200;
opacity: 1;
background-color: rgba(255,255,255,0.7);
}
.childbox-image-more {
transform: scale(1);
transition:all 0.2s;
}
.childbox-image-more:hover {
transform: scale(1.01);
}
.childbox-image-more-child img {
width: 100%;
height: auto;
}
@media (min-width: 850px) {
.childbox-box {
margin:10px;
display:flex;
font-size: 0;
}
.childbox-image {
width:30%;
border-radius:6px;
overflow:hidden;
/*box-shadow: 0 3px 6px rgb(0 0 0 / 20%)*/;
cursor: default;
align-items: center;
margin:auto;
}
.childbox-text {
width:65%;
margin-left:20px;
}
.childbox-title {
flex:1;
font-weight:700;
font-size:20px;
margin-top:5px;
}
}
@media (max-width: 850px) {
.childbox-box {
margin:10px;
display:flex;
flex-direction: column;
font-size: 0;
}
.childbox-image {
width:100%;
border-radius:6px;
overflow:hidden;
/*box-shadow: 0 3px 6px rgb(0 0 0 / 20%)*/;
cursor: default;
align-items: center;
margin:auto;
}
.childbox-text {
width:100%;
}
.childbox-title {
text-align:center;
flex:1;
font-weight:700;
font-size:20px;
margin-top:5px;
}
}