Skip to content

Commit

Permalink
Start: Add custom shadow to accordion to improve filtered display
Browse files Browse the repository at this point in the history
  • Loading branch information
cal0pteryx committed Feb 7, 2024
1 parent 0026225 commit 886a20f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions themes/xmpp-providers/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ article h2 {
.badge-rating:hover {
filter: brightness(0.9);
}
.accordion-shadow {
box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.075);
}
.category-a {
background-color: rgb(67, 150, 57);
}
Expand Down
12 changes: 8 additions & 4 deletions themes/xmpp-providers/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,40 @@ <h3 id="category-a" class="pt-4">
<a class="heading-anchor" href="#category-a"><i class="fa-solid fa-link fa-xs"></i></a>
</h3>
<p>Providers in this category have the best properties, allow you to register via an app and are free of charge.</p>
<div class="accordion pb-5" id="providers-accordion-a">
<div class="accordion accordion-shadow" id="providers-accordion-a">
{{ partial "provider-list-items.html" (where .Site.Data.filtered_providers ".category" "==" "A") }}
</div>
<div class="pb-5"></div>
<h3 id="category-b">
Category&nbsp;
<span class="badge rounded-1 category-b">B</span>
<a class="heading-anchor" href="#category-b"><i class="fa-solid fa-link fa-xs"></i></a>
</h3>
<p>Providers in this category have the best properties but may only allow you to register via a web page or are <i>not</i> free of charge.</p>
<div class="accordion pb-5" id="providers-accordion-b">
<div class="accordion accordion-shadow" id="providers-accordion-b">
{{ partial "provider-list-items.html" (where .Site.Data.filtered_providers ".category" "==" "B") }}
</div>
<div class="pb-5"></div>
<h3 id="category-c">
Category&nbsp;
<span class="badge rounded-1 category-c">C</span>
<a class="heading-anchor" href="#category-c"><i class="fa-solid fa-link fa-xs"></i></a>
</h3>
<p>Providers in this category have average properties and should only be used if there is a certain reason for it.</p>
<div class="accordion pb-5" id="providers-accordion-c">
<div class="accordion accordion-shadow" id="providers-accordion-c">
{{ partial "provider-list-items.html" (where .Site.Data.filtered_providers ".category" "==" "C") }}
</div>
<div class="pb-5"></div>
<h3 id="category-d">
Category&nbsp;
<span class="badge rounded-1 category-d">D</span>
<a class="heading-anchor" href="#category-d"><i class="fa-solid fa-link fa-xs"></i></a>
</h3>
<p>Providers in this category cannot or should not be used for registration.</p>
<div class="accordion pb-5" id="providers-accordion-d">
<div class="accordion accordion-shadow" id="providers-accordion-d">
{{ partial "provider-list-items.html" (where .Site.Data.filtered_providers ".category" "==" "D") }}
</div>
<div class="pb-5"></div>
<div class="text-center">
<a class="btn btn-secondary" href="/statistics" role="button"><i class="fa-solid fa-chart-pie"></i>&nbsp;View Statistics</a>
</div>
Expand Down

0 comments on commit 886a20f

Please sign in to comment.