forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview/pages: unify workflow styles with the rest of the website

not many portions of the site use darkend backgrounds. this is very much
WIP.

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 87b0ac79 dce4b41d

verified
Changed files
+4 -7
appview
pages
templates
repo
pipelines
+3 -3
appview/pages/templates/repo/pipelines/fragments/logBlock.html
···
{{ define "repo/pipelines/fragments/logBlock" }}
<div id="lines" hx-swap-oob="beforeend">
-
<details id="step-{{ .Id }}" {{if not .Collapsed}}open{{end}} class="group bg-gray-100 pb-2 px-2 dark:bg-gray-900">
-
<summary class="sticky top-0 pt-2 group-open:pb-2 list-none cursor-pointer bg-gray-100 dark:bg-gray-900 hover:text-gray-500 hover:dark:text-gray-400">
+
<details id="step-{{ .Id }}" {{if not .Collapsed}}open{{end}} class="group pb-2 rounded-sm border border-gray-200 dark:border-gray-700">
+
<summary class="sticky top-0 pt-2 px-2 group-open:pb-2 group-open:mb-2 list-none cursor-pointer group-open:border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 hover:text-gray-500 hover:dark:text-gray-400">
<div class="group-open:hidden flex items-center gap-1">
{{ i "chevron-right" "w-4 h-4" }} {{ .Name }}
</div>
···
{{ i "chevron-down" "w-4 h-4" }} {{ .Name }}
</div>
</summary>
-
<div class="font-mono whitespace-pre overflow-x-auto"><div class="text-blue-600 dark:text-blue-300">{{ .Command }}</div><div id="step-body-{{ .Id }}"></div></div>
+
<div class="font-mono whitespace-pre overflow-x-auto px-2"><div class="text-blue-600 dark:text-blue-300">{{ .Command }}</div><div id="step-body-{{ .Id }}"></div></div>
</details>
</div>
{{ end }}
-3
appview/pages/templates/repo/pipelines/workflow.html
···
</section>
{{ end }}
-
{{ define "repoAfter" }}
-
{{ end }}
-
{{ define "sidebar" }}
{{ $active := .Workflow }}
{{ with .Pipeline }}
+1 -1
flake.nix
···
${pkgs.air}/bin/air -c /dev/null \
-build.cmd "${pkgs.go}/bin/go build -o ./out/${name}.out ./cmd/${name}/main.go" \
-build.bin "./out/${name}.out" \
-
-build.args_bin "${arg}"
+
-build.args_bin "${arg}" \
-build.stop_on_error "true" \
-build.include_ext "go"
'';