aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/navbutton/index.css
blob: 4c1a138243f1f96187c091974aca920504c14a1e (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
: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;
}