refactor: make choices object, move out style

this should allow to write 'isBeating' function over choices.
and maybe move to enums
This commit is contained in:
efim
2023-07-02 05:26:23 +00:00
parent 54af09d356
commit 02a5f41800
2 changed files with 61 additions and 30 deletions

View File

@@ -86,9 +86,9 @@
--translation: 50%;
position: absolute;
"
th:style="| --diameter: ${choiceBadgeData.c.diameter};
--bg-dark: ${choiceBadgeData.c.bgDark};
--bg-bright: ${choiceBadgeData.c.bgBright};
th:style="| --diameter: ${choiceBadgeData.s.diameter};
--bg-dark: ${choiceBadgeData.s.bgDark};
--bg-bright: ${choiceBadgeData.s.bgBright};
${choiceBadgeData.p.toStyle}; |"
>
<div