Skip to content

Commit a205b1c

Browse files
committed
Update circle opacity based on color condition
1 parent 33f62a2 commit a205b1c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • src/collective/behavior/banner/browser

src/collective/behavior/banner/browser/banner.pt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
<div class="hold-shape">
5151
<div class="shape-outer">
5252
<div class="fg-theme"
53-
tal:attributes="style python: 'color: #' + circle_color + ';; opacity: .9'">
54-
<svg class="shape abs-trbl" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
53+
tal:attributes="style python: 'color: #' + circle_color + ';; opacity: ' + ('0.5' if circle_color == 'f7b98f' else '.9')">
54+
<svg class="shape abs-trbl" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
5555
<circle cx="256" cy="256" r="256" fill="currentColor"/>
5656
</svg>
5757
</div>
@@ -130,7 +130,8 @@
130130
<div class="hold-shape">
131131
<div class="shape-outer">
132132
<div class="fg-theme"
133-
tal:attributes="style python: 'color: #' + circle_color + ';; opacity: .9'">
133+
tal:attributes="style python: 'color: #' + circle_color + ';; opacity: ' + ('0.5' if circle_color == 'f7b98f' else '.9')"
134+
>
134135
<svg class="shape abs-trbl" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
135136
<circle cx="256" cy="256" r="256" fill="currentColor"/>
136137
</svg>

0 commit comments

Comments
 (0)