mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ui: Use default button style for tag buttons
- In the app header as well as tag search bar. - De-emphasize the tag buttons in app header so that users won't see them as sections of the page. - Add a bullet Unicode character between the tags in app header to separate them properly with new de-emphasized styling. - Fix vertical alignment of text between tag buttons in app header and the close button in tags in tag search bar. Tests: - In the app header, styling has been de-emphasized and tags now look more like simple text. They are a separated with a bullet Unicode character. Vertical alignment of bullets is accurate. - In the tag search bar, tags continue to look like buttons but more like default buttons. Vertical alignment of close button is accurate. - In both areas tags look properly in dark and light color themes. - In mobile view when there are a lot of tags, tags flow into second line. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
6c930a9f24
commit
b166404b0a
3 files changed
+13
-7
No files matched your search
@@ -43,10 +43,11 @@
|
||||
</section>
|
||||
|
||||
{% if app_info.tags %}
|
||||
<div class="app-tags">
|
||||
<div class="app-tags d-flex align-items-center flex-wrap">
|
||||
{% for tag in app_info.tags %}
|
||||
{% if not forloop.first %}•{% endif %}
|
||||
<a href="{{ active_section_url }}?tag={{ tag|urlencode }}"
|
||||
class="btn btn-light rounded-pill tag">
|
||||
class="btn btn-default rounded-pill tag">
|
||||
{% trans tag %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
<div class="container">
|
||||
<div class="dropdown searchable-dropdown">
|
||||
<div class="tag-input">
|
||||
<div id="selected-tags">
|
||||
<div id="selected-tags" class="d-flex align-items-center flex-wrap">
|
||||
{% for tag in tags %}
|
||||
<span class="btn btn-light rounded-pill tag"
|
||||
<span class="btn btn-default rounded-pill tag d-flex align-items-center"
|
||||
data-tag="{{ tag }}">
|
||||
{% trans tag %}
|
||||
<button class="btn btn-sm btn-light remove-tag">
|
||||
<button class="btn btn-sm btn-default remove-tag">
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user