Anne31415 commited on
Commit
5751355
·
1 Parent(s): a7c76ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -15
app.py CHANGED
@@ -28,9 +28,11 @@ def cloud_button(label, key=None, color=None):
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>
 
 
34
  <div class="rectangle">{label}</div>
35
  <div class="circle medium right"></div>
36
  <div class="circle small right"></div>
@@ -61,39 +63,58 @@ def cloud_button(label, key=None, color=None):
61
  position: absolute;
62
  background-color: #f8f9fa;
63
  z-index: 1;
 
64
  }}
65
  .circle.small {{
66
  width: 40px;
67
  height: 40px;
68
- border-radius: 20px;
69
- top: 50%;
70
- left: -20px;
71
- transform: translateY(-50%);
72
  }}
73
  .circle.medium {{
74
  width: 60px;
75
  height: 60px;
76
- border-radius: 30px;
77
- top: 50%;
78
- left: -30px;
79
- transform: translateY(-50%);
80
  }}
81
  .circle.large {{
82
  width: 80px;
83
  height: 80px;
84
- border-radius: 40px;
 
 
 
 
 
85
  top: 50%;
86
- left: -40px;
87
  transform: translateY(-50%);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }}
89
  .circle.right.small {{
90
- left: auto;
91
  right: -20px;
92
  }}
93
  .circle.right.medium {{
94
- left: auto;
95
  right: -30px;
96
  }}
 
 
 
 
 
 
 
 
 
97
 
98
  .cloud:hover .rectangle {{
99
  background-color: #008CBA;
 
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 left"></div>
32
+ <div class="circle medium left"></div>
33
+ <div class="circle large left"></div>
34
+ <div class="circle medium middle"></div>
35
+ <div class="circle small middle"></div>
36
  <div class="rectangle">{label}</div>
37
  <div class="circle medium right"></div>
38
  <div class="circle small right"></div>
 
63
  position: absolute;
64
  background-color: #f8f9fa;
65
  z-index: 1;
66
+ border-radius: 50%;
67
  }}
68
  .circle.small {{
69
  width: 40px;
70
  height: 40px;
 
 
 
 
71
  }}
72
  .circle.medium {{
73
  width: 60px;
74
  height: 60px;
 
 
 
 
75
  }}
76
  .circle.large {{
77
  width: 80px;
78
  height: 80px;
79
+ }}
80
+ .left {{
81
+ top: 50%;
82
+ transform: translateY(-50%);
83
+ }}
84
+ .right {{
85
  top: 50%;
 
86
  transform: translateY(-50%);
87
+ right: 0;
88
+ }}
89
+ .middle {{
90
+ top: 50%;
91
+ left: 50%;
92
+ transform: translate(-50%, -50%);
93
+ }}
94
+ .circle.left.small {{
95
+ left: -20px;
96
+ }}
97
+ .circle.left.medium {{
98
+ left: -30px;
99
+ }}
100
+ .circle.left.large {{
101
+ left: -40px;
102
  }}
103
  .circle.right.small {{
 
104
  right: -20px;
105
  }}
106
  .circle.right.medium {{
 
107
  right: -30px;
108
  }}
109
+ .circle.right.large {{
110
+ right: -40px;
111
+ }}
112
+ .circle.middle.small {{
113
+ margin-left: -20px;
114
+ }}
115
+ .circle.middle.medium {{
116
+ margin-left: -30px;
117
+ }}
118
 
119
  .cloud:hover .rectangle {{
120
  background-color: #008CBA;