Anne31415 commited on
Commit
6c1b73b
·
1 Parent(s): 4172ec1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -13
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: 250px;">
31
  <div class="circle small"></div>
32
  <div class="circle medium"></div>
33
  <div class="circle large"></div>
@@ -42,10 +42,11 @@ def cloud_button(label, key=None, color=None):
42
  cursor: pointer;
43
  user-select: none;
44
  margin-right: 20px;
 
45
  }}
46
  .rectangle {{
47
  min-width: 120px;
48
- height: 60px;
49
  background-color: white;
50
  border-radius: 30px;
51
  position: absolute;
@@ -54,34 +55,37 @@ def cloud_button(label, key=None, color=None):
54
  display: flex;
55
  align-items: center;
56
  justify-content: center;
57
- font-size: 16px;
58
  font-weight: bold;
59
- padding: 0 20px;
60
  transition: background-color 0.4s;
61
  }}
62
  .circle {{
63
  position: absolute;
64
  background-color: white;
 
65
  }}
66
  .circle.small {{
67
- width: 40px;
68
- height: 40px;
69
- border-radius: 20px;
70
- top: 10px;
71
- left: 50px;
72
- }}
73
- .circle.medium {{
74
  width: 60px;
75
  height: 60px;
76
  border-radius: 30px;
 
 
77
  }}
78
- .circle.large {{
79
  width: 80px;
80
  height: 80px;
81
  border-radius: 40px;
82
- top: -10px;
83
  left: 40px;
84
  }}
 
 
 
 
 
 
 
 
85
  .cloud:hover .rectangle {{
86
  background-color: #008CBA;
87
  color: white;
 
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>
 
42
  cursor: pointer;
43
  user-select: none;
44
  margin-right: 20px;
45
+ font-size: 16px;
46
  }}
47
  .rectangle {{
48
  min-width: 120px;
49
+ height: auto;
50
  background-color: white;
51
  border-radius: 30px;
52
  position: absolute;
 
55
  display: flex;
56
  align-items: center;
57
  justify-content: center;
 
58
  font-weight: bold;
59
+ padding: 10px 20px;
60
  transition: background-color 0.4s;
61
  }}
62
  .circle {{
63
  position: absolute;
64
  background-color: white;
65
+ z-index: -1;
66
  }}
67
  .circle.small {{
 
 
 
 
 
 
 
68
  width: 60px;
69
  height: 60px;
70
  border-radius: 30px;
71
+ top: 30px;
72
+ left: 50px;
73
  }}
74
+ .circle.medium {{
75
  width: 80px;
76
  height: 80px;
77
  border-radius: 40px;
78
+ top: 20px;
79
  left: 40px;
80
  }}
81
+ .circle.large {{
82
+ width: 100px;
83
+ height: 100px;
84
+ border-radius: 50px;
85
+ top: 10px;
86
+ left: 30px;
87
+ }}
88
+
89
  .cloud:hover .rectangle {{
90
  background-color: #008CBA;
91
  color: white;