模板:Message box/styles.css
外观
.msgbox {
display: flex;
gap: 12px;
align-items: flex-start;
width: 80%;
margin: 0.5em auto;
padding: 12px 16px;
border: 1px solid #000000;
border-left-width: 6px;
border-radius: 4px;
}
.msgbox-image {
flex-shrink: 0;
}
.msgbox-content {
flex: 1;
}
.msgbox-title {
font-weight: bold;
margin-bottom: 4px;
}
.msgbox-text p:first-child {
margin-top: 0;
}
.msgbox-text p:last-child {
margin-bottom: 0;
}