Anne31415 commited on
Commit
e08d0b4
·
1 Parent(s): a3fc68d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -39,7 +39,9 @@ def cloud_button(label, key=None, color=None, overlap=30):
39
  cloud_button_html = f"""
40
  <div class="cloud" id="{button_id}" style="margin-bottom: 20px;">
41
  <div class="wrapper {color_class}">
42
- {circles_html}
 
 
43
  </div>
44
  </div>
45
  <style>
@@ -56,6 +58,9 @@ def cloud_button(label, key=None, color=None, overlap=30):
56
  position: relative;
57
  padding: 10px 20px;
58
  }}
 
 
 
59
  .circle {{
60
  background-color: #FF6347;
61
  border-radius: 50%;
@@ -72,16 +77,12 @@ def cloud_button(label, key=None, color=None, overlap=30):
72
  z-index: 2;
73
  white-space: nowrap; /* Prevent line breaks */
74
  text-align: center; /* Center the text horizontally and vertically */
75
-
76
  }}
77
-
78
  /* Add this CSS for the hover effect and shadow */
79
- .cloud:hover .circle {{
80
- transform: scale(1.1); /* Scale up the circles on hover */
81
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow on hover */
82
  }}
83
-
84
-
85
 
86
  .color-1 .circle {{ background-color: #FFA07A; }}
87
  .color-2 .circle {{ background-color: #FF7F50; }}
 
39
  cloud_button_html = f"""
40
  <div class="cloud" id="{button_id}" style="margin-bottom: 20px;">
41
  <div class="wrapper {color_class}">
42
+ <div class="circle-container">
43
+ {circles_html}
44
+ </div>
45
  </div>
46
  </div>
47
  <style>
 
58
  position: relative;
59
  padding: 10px 20px;
60
  }}
61
+ .circle-container {{
62
+ position: relative;
63
+ }}
64
  .circle {{
65
  background-color: #FF6347;
66
  border-radius: 50%;
 
77
  z-index: 2;
78
  white-space: nowrap; /* Prevent line breaks */
79
  text-align: center; /* Center the text horizontally and vertically */
 
80
  }}
 
81
  /* Add this CSS for the hover effect and shadow */
82
+ .cloud:hover .circle-container {{
83
+ transform: scale(1.1); /* Scale up the circles on hover */
84
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow on hover */
85
  }}
 
 
86
 
87
  .color-1 .circle {{ background-color: #FFA07A; }}
88
  .color-2 .circle {{ background-color: #FF7F50; }}