Mercurial > libervia-templates
comparison sat_templates/templates/bulma/chat/select.html @ 230:0e69b5843c2f
theme: bulma theme first draft:
This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and
Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming
conventions, and default fallbacks would lead to hard to debug conflicts.
`common.js` has been slightly improved to handle custom classed in `tab_select`
The theme is not complete yet, but it is functional.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 19 May 2020 00:02:34 +0200 |
parents | |
children | b54526baef6b |
comparison
equal
deleted
inserted
replaced
229:739c3e6999fa | 230:0e69b5843c2f |
---|---|
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} | |
2 {% import 'components/avatar.html' as avatar with context %} | |
3 {% import 'input/form.html' as form with context %} | |
4 {% import 'input/field.html' as field with context %} | |
5 | |
6 {% block body %} | |
7 | |
8 <section class="section"> | |
9 <div class="message"> | |
10 <div class="message-body"> | |
11 {% trans %}Please select the chat room you want to enter{% endtrans %} | |
12 </div> | |
13 </div> | |
14 </section> | |
15 | |
16 <section class="section"> | |
17 <div class="columns is-mobile is-muliline"> | |
18 {% for room in rooms %} | |
19 <div class="column is-2-desktop is-4-touch"> | |
20 <div class="card x-is-hoverable"> | |
21 <a href="{{room.url}}"> | |
22 <div class="card-image is-flex has-items-centered has-padding-1"> | |
23 {{ avatar.avatar(room.jid, "is-64x64") }} | |
24 </div> | |
25 <div class="card-content has-text-centered has-text-shortenable has-padding-1"> | |
26 <span>{{room.name}}</span> | |
27 </div> | |
28 </a> | |
29 </div> | |
30 </div> | |
31 {% endfor %} | |
32 </div> | |
33 </section> | |
34 | |
35 <section class="section"> | |
36 <p class="content">{% trans %}Or enter a room address{% endtrans %}</p> | |
37 {% call form.form(class="form--single") %} | |
38 {{ field.text("jid", _("Room address (JID)"), required=true)}} | |
39 {{ field.submit(_("Join")) }} | |
40 {% endcall %} | |
41 </section> | |
42 | |
43 {% endblock body %} |