Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,27 +28,25 @@ def cloud_button(label, key=None, color=None):
|
|
28 |
color_class = f"color-{color}" if color else ""
|
29 |
cloud_button_html = f"""
|
30 |
<div class="cloud {color_class}" id="{button_id}" style="margin-bottom: 20px;">
|
31 |
-
<div class="circle" style="width:
|
32 |
-
<div class="circle" style="width: 70px; height: 70px; left: -20px;"></div>
|
33 |
<div class="rectangle">{label}</div>
|
34 |
-
<div class="circle" style="width:
|
35 |
-
<div class="circle" style="width:
|
36 |
-
<div class="circle middle" style="width: 100px; height: 100px;"></div>
|
37 |
-
<div class="circle middle" style="width: 120px; height: 120px; top: -10px;"></div>
|
38 |
-
<div class="circle middle" style="width: 140px; height: 140px; top: -20px;"></div>
|
39 |
</div>
|
40 |
<style>
|
41 |
.cloud {{
|
42 |
position: relative;
|
43 |
-
display: inline-
|
|
|
44 |
cursor: pointer;
|
45 |
user-select: none;
|
46 |
font-size: 16px;
|
47 |
background-color: #f8f9fa;
|
48 |
white-space: nowrap;
|
|
|
|
|
49 |
}}
|
50 |
.rectangle {{
|
51 |
-
min-width: 120px;
|
52 |
height: auto;
|
53 |
border-radius: 30px;
|
54 |
position: relative;
|
@@ -59,6 +57,7 @@ def cloud_button(label, key=None, color=None):
|
|
59 |
padding: 10px 20px;
|
60 |
z-index: 2;
|
61 |
transition: background-color 0.4s;
|
|
|
62 |
}}
|
63 |
.circle {{
|
64 |
position: absolute;
|
|
|
28 |
color_class = f"color-{color}" if color else ""
|
29 |
cloud_button_html = f"""
|
30 |
<div class="cloud {color_class}" id="{button_id}" style="margin-bottom: 20px;">
|
31 |
+
<div class="circle" style="width: 60px; height: 60px; left: -30px;"></div>
|
|
|
32 |
<div class="rectangle">{label}</div>
|
33 |
+
<div class="circle" style="width: 60px; height: 60px; right: -30px;"></div>
|
34 |
+
<div class="circle middle" style="width: 60px; height: 60px;"></div>
|
|
|
|
|
|
|
35 |
</div>
|
36 |
<style>
|
37 |
.cloud {{
|
38 |
position: relative;
|
39 |
+
display: inline-flex;
|
40 |
+
align-items: center;
|
41 |
cursor: pointer;
|
42 |
user-select: none;
|
43 |
font-size: 16px;
|
44 |
background-color: #f8f9fa;
|
45 |
white-space: nowrap;
|
46 |
+
border-radius: 30px;
|
47 |
+
overflow: hidden;
|
48 |
}}
|
49 |
.rectangle {{
|
|
|
50 |
height: auto;
|
51 |
border-radius: 30px;
|
52 |
position: relative;
|
|
|
57 |
padding: 10px 20px;
|
58 |
z-index: 2;
|
59 |
transition: background-color 0.4s;
|
60 |
+
background-color: #f8f9fa;
|
61 |
}}
|
62 |
.circle {{
|
63 |
position: absolute;
|