틀:알림 상자/CSS
< 틀:알림 상자
.ambox {
width: clamp(80%, 40em, calc(100% - 10px));
margin: 3px auto;
padding: 5px;
gap: 5px;
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-areas:
"ambox-title ambox-title ambox-title"
"ambox-image-left ambox-detail ambox-image-right";
text-align: center;
background-color: #f5f5f5;
box-shadow: 0 0 4px 0px #c8ccd1;
}
.ambox-title {
width: calc(100% - 10px);
padding: 5px;
grid-area: ambox-title;
background-color: #404040;
color: white;
font-weight: bold;
}
.ambox-detail {
width: 100%;
grid-area: ambox-detail;
}
.ambox-image {
min-width: 60px;
place-self: center;
}
.ambox-image-left {grid-area: ambox-image-left;}
.ambox-image-right {grid-area: ambox-image-right}