-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
55 lines (55 loc) · 1.09 KB
/
style.css
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Georgia, 'Times New Roman', Times, serif;
}
html{
scroll-behavior: smooth;
}
section{
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
font-size: 3rem;
align-items: center;
}
section:nth-child(even){
background: rgb(241, 241, 241);
}
nav{
top: 0;
left: 0;
width: 100%;
position: fixed;
background: rgb(194, 194, 194);
display: flex;
justify-content: space-between;
}
nav ul{
list-style-type: none;
}
nav ul li{
display: inline-block;
margin-left: 1rem;
}
nav a{
color: black;
display: block;
padding: 0.4rem 2rem;
text-decoration: none;
font-size: 1.3rem;
transition: all 0.5s linear;
-webkit-transition: all 0.5s linear;
-moz-transition: all 0.5s linear;
-ms-transition: all 0.5s linear;
-o-transition: all 0.5s linear;
}
nav a:hover,
section#one:hover ~ nav a[href="#one"],
section#two:hover ~ nav a[href="#two"],
section#three:hover ~ nav a[href="#three"]{
background: #272727;
color: #fff;
}