Skip to content

Commit

Permalink
remove theme switcher from html component
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishrb committed Dec 26, 2024
1 parent 00c2810 commit c9f52ed
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions defaults/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,6 @@

<body class="markdown-body">
<div class="container">
<button
class="theme-toggle"
id="theme-toggle"
title="Toggles light & dark"
aria-label="auto"
aria-live="polite"
>
<svg
class="sun-and-moon"
aria-hidden="true"
width="24"
height="24"
viewBox="0 0 24 24"
>
<mask class="moon" id="moon-mask">
<rect x="0" y="0" width="100%" height="100%" fill="white" />
<circle cx="24" cy="10" r="6" fill="black" />
</mask>
<circle
class="sun"
cx="12"
cy="12"
r="6"
mask="url(#moon-mask)"
fill="currentColor"
/>
<g class="sun-beams" stroke="currentColor">
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</g>
</svg>
</button>
<div {{if .BoundingBox }} class="container-inner" {{end}}>
{{ .Content }}
</div>
Expand Down

0 comments on commit c9f52ed

Please sign in to comment.