Skip to content

Commit

Permalink
style: tweak the bg and color for active result type
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 7, 2023
1 parent a044835 commit d9962e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assets/hb/modules/theme-start/scss/_result-types.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.hb-start-search-result-types {
--#{$prefix}nav-pills-link-active-bg: var(--#{$prefix}secondary);
--#{$prefix}nav-pills-link-active-bg: var(--#{$prefix}secondary-bg);
--#{$prefix}nav-pills-link-active-color: var(--#{$prefix}secondary-color);

font-size: 0.875rem;
}
4 changes: 2 additions & 2 deletions layouts/partials/hb/modules/theme-start/result-types.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
{{- $icons := partialCached "hb/modules/theme-start/functions/icons" . }}
{{- range . }}
<ul
class="hb-start-search-result-types nav nav-pills justify-content-center mb-2{{ cond $first `` ` d-none` }}"
class="hb-start-search-result-types nav nav-pills ms-3 mb-2{{ cond $first `` ` d-none` }}"
data-engine="{{ .id }}">
{{- $engine := . }}
{{- $firstType := true }}
{{- range .types }}
<li class="nav-item">
<a
class="nav-link hb-start-search-result-type px-2 py-1 rounded-5{{ cond $firstType ` active` `` }}"
class="nav-link hb-start-search-result-type px-2 py-1 rounded-4{{ cond $firstType ` active` `` }}"
href="#"
data-url="{{ .url }}"
data-input-name="{{ .input_name }}"
Expand Down

0 comments on commit d9962e4

Please sign in to comment.