Mercurial > libervia-templates
annotate default/static/invitation.css @ 85:05b500bd6235
chat: chat implementation, first draft:
this chat use the new dynamic pages feature. Updates are pushed directly by server.
Identities are used to retrieve avatar, and first letter of nickname is used to generate an avatar is none is found (temporary, a more elaborate avatar generation should follow in the future).
Scroll is done automatically when new messages arrive, except if scroll is not at the end, as it probably means that user is checking history.
User can resize text area and use [shift] + [enter] to enter multi-line messages. History will then scroll to bottom after message has been sent.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 03 Jan 2018 01:12:16 +0100 |
parents | 529fff4473c1 |
children |
rev | line source |
---|---|
6
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 #body { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 display: flex; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 flex-direction: column; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 } |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 .invitation_header { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 flex: 1 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 } |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 .invitation_header h1,p { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 text-align: center; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 } |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 #include_main { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 flex: 9 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 } |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 #include_main { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 width: 100%; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 margin: 0; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 border: none; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 } |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 footer { |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 /* footer should already be displayed in included page */ |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 display: none; |
529fff4473c1
invitation: invitation welcome page, first draft
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 } |