< 模板:Info
/* 增强版信息框无间距设计 */
.infoBox {
margin-bottom: 0 !important;
border: 1px solid #e0e0e0;
border-left: 10px solid; /* 颜色由模板参数控制 */
position: relative;
}
/* 相邻信息框边框合并 */
.infoBox + .infoBox {
border-top: none;
margin-top: -1px;
}
/* 创建分隔线效果 */
.infoBox + .infoBox:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(to right, transparent, #ddd 10%, #ddd 90%, transparent);
}
/* 不同类型信息框的分隔线颜色 */
.infoBox[style*="purple"] + .infoBox[style*="purple"]:before {
background: linear-gradient(to right, transparent, #9b59b6 10%, #9b59b6 90%, transparent);
}
.infoBox[style*="red"] + .infoBox[style*="red"]:before {
background: linear-gradient(to right, transparent, #e74c3c 10%, #e74c3c 90%, transparent);
}
.infoBox[style*="orange"] + .infoBox[style*="orange"]:before {
background: linear-gradient(to right, transparent, #f39c12 10%, #f39c12 90%, transparent);
}
.infoBox[style*="#1e90ff"] + .infoBox[style*="#1e90ff"]:before {
background: linear-gradient(to right, transparent, #1e90ff 10%, #1e90ff 90%, transparent);
}