-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcomponent.navigation.css
More file actions
77 lines (70 loc) · 1.51 KB
/
Copy pathcomponent.navigation.css
File metadata and controls
77 lines (70 loc) · 1.51 KB
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
67
68
69
70
71
72
73
74
75
76
77
.nav {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: var(--level-3);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
border-radius: 20px;
padding: 20px;
display: flex;
justify-content: space-around;
opacity: 1;
transition: opacity 0.8s 0.4s ease;
}
.nav--hidden {
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.nav__background {
content: '';
z-index: var(--level-2);
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0.9;
border-radius: 20px;
backdrop-filter: blur(60px);
transition: background-color 0.8s ease;
}
.nav__link {
position: relative;
z-index: var(--level-4);
fill: var(--color__white);
outline: 0;
border-width: 0;
display: inline-flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color 0.3s ease, opacity 0.3s ease, color 0.3s ease;
border-radius: var(--border__radius--10px);
background-color: transparent;
padding: var(--spacing--10px) var(--spacing--12px);
opacity: 0.3;
width: 40px;
height: 40px;
&,
&:visited {
color: currentColor;
}
}
.nav__icon {
&,
& * {
fill: currentColor;
}
}
.nav__link--active {
opacity: 1;
background-color: var(--color__cta);
box-shadow: 0px var(--spacing--8px) var(--spacing--16px)
var(--color__glow--cta);
&,
&:visited {
color: var(--color__white);
}
}