Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def cloud_button(label, key=None, color=None):
|
|
27 |
button_id = f"cloud-button-{key or label}"
|
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:
|
31 |
<div class="circle small"></div>
|
32 |
<div class="circle medium"></div>
|
33 |
<div class="circle large"></div>
|
@@ -45,46 +45,45 @@ def cloud_button(label, key=None, color=None):
|
|
45 |
font-size: 16px;
|
46 |
}}
|
47 |
.rectangle, .circle {{
|
48 |
-
background-color: #f8f9fa;
|
49 |
}}
|
50 |
.rectangle {{
|
51 |
min-width: 120px;
|
52 |
height: auto;
|
53 |
border-radius: 30px;
|
54 |
-
position:
|
55 |
-
top: 20px;
|
56 |
-
left: 20px;
|
57 |
display: flex;
|
58 |
align-items: center;
|
59 |
justify-content: center;
|
60 |
font-weight: bold;
|
61 |
padding: 10px 20px;
|
|
|
62 |
transition: background-color 0.4s;
|
63 |
}}
|
64 |
.circle {{
|
65 |
position: absolute;
|
66 |
-
z-index:
|
67 |
}}
|
68 |
.circle.small {{
|
69 |
-
width:
|
70 |
-
height:
|
71 |
-
border-radius:
|
72 |
-
top:
|
73 |
-
left:
|
74 |
}}
|
75 |
.circle.medium {{
|
76 |
-
width:
|
77 |
-
height:
|
78 |
-
border-radius:
|
79 |
-
top:
|
80 |
-
left:
|
81 |
}}
|
82 |
.circle.large {{
|
83 |
-
width:
|
84 |
-
height:
|
85 |
-
border-radius:
|
86 |
-
top: -
|
87 |
-
left:
|
88 |
}}
|
89 |
|
90 |
.cloud:hover .rectangle {{
|
|
|
27 |
button_id = f"cloud-button-{key or label}"
|
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 small"></div>
|
32 |
<div class="circle medium"></div>
|
33 |
<div class="circle large"></div>
|
|
|
45 |
font-size: 16px;
|
46 |
}}
|
47 |
.rectangle, .circle {{
|
48 |
+
background-color: #f8f9fa; /* Adjust the color as needed */
|
49 |
}}
|
50 |
.rectangle {{
|
51 |
min-width: 120px;
|
52 |
height: auto;
|
53 |
border-radius: 30px;
|
54 |
+
position: relative;
|
|
|
|
|
55 |
display: flex;
|
56 |
align-items: center;
|
57 |
justify-content: center;
|
58 |
font-weight: bold;
|
59 |
padding: 10px 20px;
|
60 |
+
z-index: 2;
|
61 |
transition: background-color 0.4s;
|
62 |
}}
|
63 |
.circle {{
|
64 |
position: absolute;
|
65 |
+
z-index: 1;
|
66 |
}}
|
67 |
.circle.small {{
|
68 |
+
width: 60px;
|
69 |
+
height: 60px;
|
70 |
+
border-radius: 30px;
|
71 |
+
top: 30px;
|
72 |
+
left: 20px;
|
73 |
}}
|
74 |
.circle.medium {{
|
75 |
+
width: 100px;
|
76 |
+
height: 100px;
|
77 |
+
border-radius: 50px;
|
78 |
+
top: 10px;
|
79 |
+
left: 10px;
|
80 |
}}
|
81 |
.circle.large {{
|
82 |
+
width: 140px;
|
83 |
+
height: 140px;
|
84 |
+
border-radius: 70px;
|
85 |
+
top: -10px;
|
86 |
+
left: 0px;
|
87 |
}}
|
88 |
|
89 |
.cloud:hover .rectangle {{
|