refactor: start grouping brick attributes info

This commit is contained in:
efim
2023-11-23 14:07:36 +00:00
parent 2e68b8d8e7
commit 82a96ea9d7
7 changed files with 81 additions and 41 deletions

View File

@@ -1,5 +1,8 @@
<h2>Single templates</h2>
{{/* takes in rooms.GestureInfo as parameter */}}
{{ define "inactiveBrick" }}
<div
class="h-[var(--brick-height)] w-20 border-[hsl(var(--brick-color))]/25 border bg-[hsl(var(--brick-color))]/5"
@@ -28,7 +31,7 @@
{{ end }}
{{ define "markAndRaisedBrick" }}
<div
class="h-[var(--brick-height)] w-20 border-[hsl(var(--brick-color))] border bg-[hsl(var(--brick-color))]/25 grid place-content-center font-bold text-[hsl(var(--brick-color))]/50"
class="h-[var(--brick-height)] w-20 border-[hsl(var(--brick-color))] border-2 bg-[hsl(var(--brick-color))]/25 grid place-content-center font-bold text-[hsl(var(--brick-color))]/50"
style="--brick-color: var({{.}}); --brick-height: calc(var(--d)/5)"
>
X