From 5fdefbe2a9f8e826de83a2efb687d5c7ff940aaf Mon Sep 17 00:00:00 2001 From: steven-y-e Date: Wed, 2 Dec 2020 12:23:43 -0500 Subject: [PATCH] feat(css): automatically define variable --over50 derived from whether or not the percentage stored in --value is over 50 --- public/index.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/public/index.php b/public/index.php index 1cd0daa..fa36f98 100644 --- a/public/index.php +++ b/public/index.php @@ -98,19 +98,24 @@ background: var(--bg, #86c9a8); } #hinamizawa-used { - --value: ; + --value: ; + --over50: 50 ? '1' : '0'); ?> } #maebara-used { - --value: ; + --value: ; + --over50: 50 ? '1' : '0'); ?> } #houjou-used { - --value: ; + --value: ; + --over50: 50 ? '1' : '0'); ?> } #ryuuguu-used { - --value: ; + --value: ; + --over50: 50 ? '1' : '0'); ?> } #sonozaki-used { - --value: ; + --value: ; + --over50: 50 ? '1' : '0'); ?> }