mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Styled facets with different bullets
This commit is contained in:
parent
df19a48a3b
commit
fe5e813f06
2 changed files with 14 additions and 3 deletions
|
|
@ -55,7 +55,12 @@ th {
|
|||
padding-right: 1em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
em {
|
||||
font-style: italic;
|
||||
}
|
||||
/* end reset */
|
||||
|
||||
|
||||
|
|
@ -205,11 +210,13 @@ pre {
|
|||
}
|
||||
|
||||
ul.bullets,
|
||||
ul.tight-bullets,
|
||||
ul.spaced,
|
||||
ol.spaced {
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
ul.bullets {
|
||||
ul.bullets,
|
||||
ul.tight-bullets {
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
ul.bullets li,
|
||||
|
|
@ -220,6 +227,10 @@ ol.spaced li {
|
|||
ul.bullets li {
|
||||
list-style-type: circle;
|
||||
}
|
||||
ul.tight-bullets li {
|
||||
list-style-type: disc;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
a.not-underlined {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
<a href="{{ facet_info.toggle_url }}" class="cross">✖</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
<ul>
|
||||
<ul class="tight-bullets">
|
||||
{% for facet_value in facet_info.results %}
|
||||
{% if not facet_value.selected %}
|
||||
<li><a href="{{ facet_value.toggle_url }}">{{ (facet_value.label if facet_value.label is not none else "_") }}</a> {{ "{:,}".format(facet_value.count) }}</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue