-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (80 loc) · 1.49 KB
/
style.css
File metadata and controls
83 lines (80 loc) · 1.49 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
78
79
80
81
82
83
:root {
--blue: #00acdc;
--nav-height: 56px;
}
body {
font-family: 'Roboto', Arial, sans-serif;
background-color: rgb(201, 204, 204);
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 500;
padding:0 40px;
background-color: #fff;
}
.logo img {
display: block;
width: 40px;
height: 40px;
src: url(images/logo.png);
}
.nav_list {
display: flex;
list-style: none;
}
.nav_item + .nav_item {
margin-left: 24px;
}
.nav_link {
text-transform: uppercase;
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
text-decoration: none;
cursor: pointer;
height: var(--nav-height);
color: #000;
font-size: 14px;
font-weight: 500;
transition: color 0.3s;
}
.nav_link:hover {
color: var(--blue);
}
.nav_link.is-active {
position: relative;
color: var(--blue);
}
.nav_link::after {
content: '';
position: absolute;
width: 100%;
left: 50%;
bottom: 2px;
height: 4px;
background-color: var(--blue);
border-radius: 8px;
opacity: 0;
transform-origin: center;
transition: opacity 0.2s ease, transform 0.2s ease;
transform: translateX(-50%) scaleX(0);
}
.nav_link:focus-visible{
color: var(--blue);
}
.nav_link:focus-visible::after{
transform: translateX(-50%) scaleX(1);
opacity: 1;
}
.nav_link:hover::after {
transform: translateX(-50%) scaleX(1);
color: var(--blue);
opacity: 1;
}
.nav_link.is-active::after {
transform: translateX(-50%) scaleX(1);
opacity: 1;
}