blob: 836e3b59c94c82a13caa641281c9b26bc1352ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#toggle {
--radius-open: 200px;
position: absolute;
right: 10px;
bottom: 10px;
width: 45px;
height: 45px;
border-radius: 100%;
background: red;
z-index: 500;
cursor: pointer;
text-align: center;
align-content: center;
transition:
border-radius 0.1s ease,
right 0.1s ease,
bottom 0.1s ease,
width 0.1s ease,
height 0.1s ease;
.bi {
baseline-shift: -2px;
}
.items {
position: relative;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
.item {
display: none;
width: 45px;
height: 45px;
border-radius: 100%;
background: blue;
position: absolute;
right: calc(cos(18deg * var(--index)) * var(--radius-open));
bottom: calc(sin(18deg * var(--index)) * var(--radius-open));
font-size: calc(var(--index) * 1px);
}
.item {
--index: sibling-index();
}
}
#toggle.open {
width: var(--radius-open);
height: var(--radius-open);
bottom: 0px;
right: 0px;
border-radius: 0px;
border-top-left-radius: 250px;
.bi {
display: none;
}
.item {
display: block;
}
}
|