mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Hide facet button is now a ✖ - refs #255
This commit is contained in:
parent
62f1d3a6cb
commit
062303419c
2 changed files with 9 additions and 2 deletions
|
|
@ -239,7 +239,7 @@ a.not-underlined {
|
|||
}
|
||||
.facet-info {
|
||||
width: 250px;
|
||||
margin-right: 20px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.facet-info li,
|
||||
.facet-info ul {
|
||||
|
|
@ -250,3 +250,10 @@ a.not-underlined {
|
|||
padding-left: 1.25em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.facet-info-name a:link,
|
||||
.facet-info-name a:visited,
|
||||
.facet-info-name a:hover,
|
||||
.facet-info-name a:focus,
|
||||
.facet-info-name a:active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
<div class="facet-results">
|
||||
{% for facet_info in sorted_facet_results %}
|
||||
<div class="facet-info facet-{{ database|to_css_class }}-{{ table|to_css_class }}-{{ facet_info.name|to_css_class }}">
|
||||
<p><strong>{{ facet_info.name }}</strong> (<a href="{{ path_with_removed_args(request, {'_facet': facet_info['name']}) }}">-</a>)</p>
|
||||
<p class="facet-info-name"><strong>{{ facet_info.name }}</strong> <a href="{{ path_with_removed_args(request, {'_facet': facet_info['name']}) }}">✖</a></p>
|
||||
<ul>
|
||||
{% for facet_value in facet_info.results %}
|
||||
<li><a href="{{ facet_value.toggle_url }}">{{ facet_value.label }}</a> {{ "{:,}".format(facet_value.count) }}</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue