模板:Info/styles.css
来自光圈共享
更多操作
< 模板:Info
.infoBox {
max-width: 100%;
border-left: 1rem solid #1e90ff;
background-color: var(--color-surface-2);
border-radius: 8px;
box-shadow: var(--box-shadow-drop-medium);
margin: 1.6rem 0;
overflow: hidden;
display: flex;
align-items: center;
}
.infoBox[style*="display:flow-root"] {
display: flow-root;
}
.infoBoxContent {
padding: 1.5rem;
background-color: inherit;
border-radius: 8px;
display: flex;
align-items: center;
}
.infoBoxTitle {
font-size: 1.4rem;
font-weight: bold;
color: var(--color-emphasized);
margin-bottom: 1rem;
}
.infoBoxIcon {
margin-right: 1.5rem;
display: flex;
align-items: center;
}
.infoBoxIcon img {
width: 50px;
height: auto;
}
.infoBoxText {
font-size: 0.875rem;
color: var(--color-base);
line-height: 1.6;
overflow: hidden;
}
.infoBoxBelow {
margin-top: 1rem;
font-size: 0.8125rem;
color: var(--color-subtle);
text-align: right;
}
/* 动态样式支持 */
.infoBox[style*="width"] {
width: auto !important;
}
.infoBox[style*="background-color"] .infoBoxContent {
background-color: inherit;
}
/* 小图标样式 */
.infoBoxIcon img[src*="Icon-info.png"][width="25px"] {
width: 25px;
}
/* 响应式设计 */
@media only screen and (max-width: 720px) {
.infoBox {
margin: 1rem 0;
flex-direction: column;
}
.infoBoxIcon {
margin: 0 0 1rem 0;
}
.infoBoxIcon img {
width: 40px;
}
.infoBoxText {
text-align: center;
}
}