<%= get_flash(@conn, :info) %>
<%= get_flash(@conn, :error) %>
-- cgit v1.2.3From 840e37b56a2af853631c8f583e28e5bd576f34f5 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Tue, 11 Feb 2020 16:09:06 +0100 Subject: Pretty avatars --- assets/css/app.css | 43 ++++++++++++++---- lib/waev_web/templates/exports/show.html.eex | 65 ++++++++++++++-------------- lib/waev_web/templates/layout/app.html.eex | 10 ++--- 3 files changed, 72 insertions(+), 46 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index 408167b..e7f42f7 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -9,33 +9,57 @@ body { .container { margin: 0 auto; max-width: 90.0rem; - padding: 0 2.0rem; + padding: 0 1.0rem; position: relative; width: 100%; } -.wa-avatar { +.wa-avatars { + display: flex; + flex-direction: row; + align-items: center; +} +.wa-avatars .wa-avatar { + flex: 0 0 50%; text-align: center; + padding: 16px 40px 12px 40px; +} +.wa-avatars .wa-avatar figure { + margin: 0; +} + +.wa-avatar img { + max-height: 140px; + border-radius: 50%; +} + +.wa-avatar--tiny { + max-height: 42px; + border-radius: 50%; } .wa-row { + margin-top: 10px; display: flex; - flex-direction: column; + align-items: center; } .wa-row-left { - align-items: flex-start; + flex-direction: row; } .wa-row-right { - align-items: flex-end; + flex-direction: row-reverse; } -/* Message box */ -.wa-message { - padding: 0px !important; - margin-top: 10px; +.wa-white-box { background-color: white; border-radius: 5px; box-shadow: 1px 1px 2px grey; +} + +/* Message box */ +.wa-message { + padding: 0px !important; + margin: 0 10px 0 10px; max-width: 65%; } @@ -47,6 +71,7 @@ body { .wa-message-box { padding: 0 10px 0 10px; margin-top: 5px; + overflow-wrap: break-word; } .wa-message-date { diff --git a/lib/waev_web/templates/exports/show.html.eex b/lib/waev_web/templates/exports/show.html.eex index 4d7de74..501f3c2 100644 --- a/lib/waev_web/templates/exports/show.html.eex +++ b/lib/waev_web/templates/exports/show.html.eex @@ -1,46 +1,47 @@ -