blob: 690946473bdba905b3be7ce4fee16eaf04b4df1d (
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
|
:host {
position: absolute;
bottom: 10px;
right: 10px;
--items-count: 2;
}
#button {
position: relative;
width: 50px;
height: 50px;
background: var(--secondary);
border-radius: 50px;
cursor: pointer;
color: var(--color);
transition: 0.2s ease height;
display: grid;
justify-content: center;
align-content: end;
overflow: hidden;
}
#button.open {
height: calc(50px * (var(--items-count) + 1));
}
#menu {
width: 50px;
height: 50px;
background: red;
border-radius: 50px;
display: grid;
background: var(--primary);
}
.icon {
margin: auto;
width: fit-content;
height: fit-content;
padding-top: 4px;
}
.items {
height: calc(50px * var(--items-count));
display: grid;
grid-template-rows: repeat(var(--items-count), auto);
}
.item {
margin: auto;
width: 40px;
height: 40px;
border-radius: 40px;
display: grid;
}
.item * {
margin: auto;
}
.item:hover {
background: #5f5e9c;
}
|