Anne31415 commited on
Commit
cfb0afd
·
1 Parent(s): c2af936

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -21
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: 200px;">
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; /* Set this to the color you want for the cloud */
49
  }}
50
  .rectangle {{
51
  min-width: 120px;
52
  height: auto;
53
  border-radius: 30px;
54
- position: absolute;
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: -1;
67
  }}
68
  .circle.small {{
69
- width: 40px;
70
- height: 40px;
71
- border-radius: 20px;
72
- top: 10px;
73
- left: 50px;
74
  }}
75
  .circle.medium {{
76
- width: 80px;
77
- height: 80px;
78
- border-radius: 40px;
79
- top: -10px;
80
- left: 40px;
81
  }}
82
  .circle.large {{
83
- width: 120px;
84
- height: 120px;
85
- border-radius: 60px;
86
- top: -30px;
87
- left: 20px;
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 {{