Skip to content

Commit 35355a3

Browse files
committed
Docs: Add floating bubbles
1 parent 938144d commit 35355a3

File tree

6 files changed

+236
-0
lines changed

6 files changed

+236
-0
lines changed

docs/assets/bubbles.css

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/* Floating bubbles styles */
2+
.floating-bubbles {
3+
position: fixed;
4+
bottom: 20px;
5+
right: 20px;
6+
display: flex;
7+
flex-direction: column;
8+
gap: 10px;
9+
z-index: 1000;
10+
}
11+
12+
.floating-bubbles-title {
13+
position: absolute;
14+
top: -30px;
15+
right: 0;
16+
font-size: 12px;
17+
color: #777;
18+
text-align: right;
19+
font-weight: bold;
20+
opacity: 0;
21+
visibility: hidden;
22+
transition:
23+
opacity 0.3s ease,
24+
visibility 0.3s ease;
25+
white-space: nowrap;
26+
}
27+
28+
.floating-bubbles:hover .floating-bubbles-title {
29+
opacity: 1;
30+
visibility: visible;
31+
}
32+
33+
.bubble {
34+
width: 40px;
35+
height: 40px;
36+
display: flex;
37+
justify-content: center;
38+
align-items: center;
39+
position: relative;
40+
transition: transform 0.3s ease;
41+
}
42+
43+
.bubble:hover {
44+
transform: scale(1.1);
45+
}
46+
47+
.bubble img {
48+
width: 40px;
49+
height: 40px;
50+
}
51+
52+
.bubble-tooltip {
53+
position: absolute;
54+
right: 60px;
55+
background-color: #333;
56+
color: white;
57+
padding: 5px 10px;
58+
border-radius: 4px;
59+
font-size: 14px;
60+
white-space: nowrap;
61+
opacity: 0;
62+
visibility: hidden;
63+
transition:
64+
opacity 0.3s ease,
65+
visibility 0.3s ease;
66+
}
67+
68+
.bubble:hover .bubble-tooltip {
69+
opacity: 1;
70+
visibility: visible;
71+
}
72+
73+
.floating-bubbles:hover .bubble-tooltip {
74+
opacity: 1;
75+
visibility: visible;
76+
}
77+
78+
/* Divider for separating bubbles */
79+
.bubble-divider {
80+
margin-top: 10px;
81+
padding-top: 15px;
82+
position: relative;
83+
}
84+
85+
.bubble-divider::before {
86+
content: "";
87+
position: absolute;
88+
top: -5px;
89+
left: 50%;
90+
transform: translateX(-50%);
91+
width: 20px;
92+
height: 1px;
93+
background-color: #ddd;
94+
}
95+
96+
/* Hide on mobile */
97+
@media (max-width: 768px) {
98+
.floating-bubbles {
99+
display: none;
100+
}
101+
}

docs/assets/sbcli_logo.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)