1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-31 17:51:46 +02:00

docs: add balloon samples

This commit is contained in:
BcRikko
2019-02-23 11:15:58 +09:00
parent 6170ba6c16
commit a17365b43d
2 changed files with 48 additions and 0 deletions

View File

@@ -96,6 +96,34 @@ section.showcase > section.samplecode > pre code {
max-width: 400px;
}
/* Balloons sample */
section.message-list {
display: flex;
flex-direction: column;
}
.message-list > .message {
display: flex;
margin-top: 2rem;
}
.message-list > .message > .nes-balloon {
max-width: 550px;
}
.message-list > .message i {
align-self: flex-end;
}
.message-list > .message.-left {
align-self: flex-start;
}
.message-list > .message.-right {
align-self: flex-end;
}
.message-list > .message.-left i {
margin-right: 2rem;
}
.message-list > .message.-right i {
margin-left: 2rem;
}
/* Copied balloon */
.nes-balloon.copied-balloon {
position: absolute;