Commit 98eb84f

Daniel Axtens <dja@axtens.net>
2026-10-18 23:40:42
Remove final inline style bits
1 parent 79632fd
assets/branches.css
@@ -34,3 +34,9 @@
     padding: 2px 6px;
     border-radius: 999px;
 }
+
+.to-commits {
+    margin-left: auto;
+    font-size: 13px;
+    color: var(--c-text-2)
+}
assets/commit.css
@@ -208,3 +208,7 @@ pre > code {
     border-bottom-left-radius: 6px;
     border-bottom-right-radius: 6px;
 }
+
+.no-files {
+    color: var(--c-text-3)
+}
assets/layout.css
@@ -285,3 +285,7 @@ header .path {
 .has-tooltip.copied .tooltip {
     display: block;
 }
+
+svg.hidden {
+    display: none;
+}
pkg/templates/branches.gohtml
@@ -11,7 +11,7 @@
                 <div class="branch-row">
                     <a href="{{ .Href }}">{{ .Name }}</a>
                     {{ if .IsDefault }}<span class="badge">default</span>{{ end }}
-                    <a href="{{ .CommitsHref }}" style="margin-left:auto; font-size:13px; color: var(--c-text-2)">commits →</a>
+                    <a href="{{ .CommitsHref }}" class="to-commits">commits →</a>
                 </div>
             {{ end }}
         {{ else }}
pkg/templates/commit.gohtml
@@ -60,7 +60,7 @@
                         {{ template "file_tree" (FileTreeParams .FileTree) }}
                     </div>
                 {{ else }}
-                    <div style="color: var(--c-text-3)">(no files)</div>
+                    <div class="no-files">(no files)</div>
                 {{ end }}
             </div>
         </div>
pkg/templates/svg.gohtml
@@ -1,5 +1,5 @@
 {{ define "svg" }}
-    <svg style="display: none" aria-hidden="true" focusable="false">
+    <svg class="hidden" aria-hidden="true" focusable="false">
         <symbol id="dir" viewBox="0 0 16 16">
             <path fill="currentColor"
                   d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"/>