Skip to content

Commit

Permalink
[Dark-mode] Use default BS nav-item padding (#1919)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Apr 6, 2024
1 parent 6018506 commit dd77c40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/partials/theme-toggler.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
{{/* Adapted from: https://github.com/twbs/bootstrap/blob/main/site/layouts/partials/theme-toggler.html */ -}}

{{ $isExamples := eq .Layout "examples" -}}
<button class="btn {{ if $isExamples }}btn-bd-primary{{ else }}btn-link nav-link px-0 px-lg-2{{ end }} py-2 dropdown-toggle d-flex align-items-center"
<button class="btn
{{- if $isExamples }} btn-bd-primary
{{- else }} btn-link nav-link
{{- end }} dropdown-toggle d-flex align-items-center"
id="bd-theme"
type="button"
aria-expanded="false"
Expand Down

0 comments on commit dd77c40

Please sign in to comment.