-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (86 loc) · 1.48 KB
/
styles.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
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
84
85
86
87
88
89
90
91
92
93
94
95
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
/* font-size: 62.5%; */
line-height: 1.5;
height: 100vh;
}
.nav__bar {
background-color: white;
width: 100%;
position: fixed;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
box-shadow: 0px 4px 8px rgba(43, 43, 44, 0.3);
transition: background-color 0.6s;
}
.nav__bar .logo {
text-decoration: none;
color: red;
font-weight: 600;
font-family: cursive;
cursor: pointer;
font-size: 2rem;
}
.items {
display: flex;
/* margin: 1rem; */
}
.item {
list-style-type: none;
margin: 0 1rem;
}
.item a {
text-decoration: none;
color: black;
font-family: cursive;
cursor: pointer;
font-size: 1.6rem;
}
.item a:hover {
color: red;
}
.hero--section {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
height: 100vh;
background: url(coding.webp);
background-attachment: scroll;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
width: 100%;
}
.heading {
color: white;
font-family: cursive;
font-size: 2.8rem;
font-weight: 800;
letter-spacing: 0.1rem;
}
.text {
margin: 3rem 2.5rem;
font-family: sans-serif;
text-align: justify;
letter-spacing: 0.05rem;
word-spacing: 0.03rem;
}
.active {
background-color: black;
}
.active .items .item a {
color: white;
}
.active .items .item a:hover {
color: red;
}