diff --git a/assets/scss/style.scss b/assets/scss/style.scss index dcccdac..dee2fb5 100755 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -275,3 +275,32 @@ figure { .katex * { font-family: unset; } + +.dialog { + .message { + @include bordered-block; + display: block; + padding: 0.75rem; + max-width: 0.8*$container-width; + margin-top: 0.5rem; + display: flex; + flex-direction: row; + align-items: center; + text-align: left; + + .message-sender { + width: 4rem; + margin: 0.5rem; + + .feather { + width: 2rem; + height: 1.6rem; + } + } + + &.side-answer { + margin-left: auto; + flex-direction: row-reverse; + } + } +} diff --git a/layouts/shortcodes/dialog.html b/layouts/shortcodes/dialog.html new file mode 100644 index 0000000..68e0266 --- /dev/null +++ b/layouts/shortcodes/dialog.html @@ -0,0 +1,3 @@ +

+ {{ .Inner }} +

diff --git a/layouts/shortcodes/message.html b/layouts/shortcodes/message.html new file mode 100644 index 0000000..cb20438 --- /dev/null +++ b/layouts/shortcodes/message.html @@ -0,0 +1,4 @@ + + {{ partial "icon.html" "user" }} + {{ .Inner }} +