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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -18
app.py CHANGED
@@ -38,14 +38,12 @@ def cloud_button(label, key=None, color=None):
38
  <style>
39
  .cloud {{
40
  position: relative;
41
- display: inline-flex;
42
  cursor: pointer;
43
  user-select: none;
44
  margin-right: 20px;
45
  font-size: 16px;
46
- }}
47
- .rectangle, .circle {{
48
- background-color: #f8f9fa; /* Adjust the color as needed */
49
  }}
50
  .rectangle {{
51
  min-width: 120px;
@@ -62,28 +60,32 @@ def cloud_button(label, key=None, color=None):
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 {{
 
38
  <style>
39
  .cloud {{
40
  position: relative;
41
+ display: inline-block;
42
  cursor: pointer;
43
  user-select: none;
44
  margin-right: 20px;
45
  font-size: 16px;
46
+ background-color: #f8f9fa; /* Match the background color of the circles */
 
 
47
  }}
48
  .rectangle {{
49
  min-width: 120px;
 
60
  }}
61
  .circle {{
62
  position: absolute;
63
+ background-color: #f8f9fa; /* Adjust the color as needed */
64
  z-index: 1;
65
  }}
66
  .circle.small {{
67
+ width: 40px;
68
+ height: 40px;
69
+ border-radius: 20px;
70
+ top: 50%;
71
+ left: 10px;
72
+ transform: translateY(-50%);
73
+ }}
74
+ .circle.medium {{
75
  width: 60px;
76
  height: 60px;
77
  border-radius: 30px;
78
+ top: 50%;
79
+ left: 30px;
80
+ transform: translateY(-50%);
 
 
 
 
 
 
81
  }}
82
  .circle.large {{
83
+ width: 80px;
84
+ height: 80px;
85
+ border-radius: 40px;
86
+ top: 50%;
87
+ left: 50px;
88
+ transform: translateY(-50%);
89
  }}
90
 
91
  .cloud:hover .rectangle {{