-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
170 lines (137 loc) · 3.03 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/* css to reset all the designs */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
letter-spacing: 0.8px;
}
html {
font-size: 62.5%;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
/* css to reset all the designs */
/* add styles on elements */
.header {
border-bottom: 1px solid #E2E8F0;
background-color: #ffffff;
box-shadow: 2px 2px 2px #b7b4b4;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 1.5rem;
}
.navbar img{
border-radius: 50%;
height: 10rem;
width: 11rem;
transition: 0.2s;
}
.hamburger {
display: none;
}
.bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
/* background-color: #101010; */
background-color: #000000;
}
.nav-menu {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-item {
margin-left: 5rem;
}
.nav-link {
/* font-size: 1.6rem; */
font-size: 2rem;
font-weight: 500;
/* color: #475569; */
color: #000000;
/* change */
}
.nav-link:hover {
color: #482ff7;
font-weight: 600;
border-bottom: 2px solid red;
}
.nav-logo {
/* font-size: 2.1rem; */
font-size: 3rem;
font-weight: 500;
/* color: #482ff7; */
color: #000000;
transition: 0.2s;
margin-right: 45rem;
}
.bg-hero-img{
height: 550px;
width: 100%;
margin-top: 10px;
}
@media only screen and (max-width: 768px) {
.nav-menu {
position: fixed;
left: -100%;
top: 12rem;
flex-direction: column;
background-color: #fff;
width: 100%;
border-radius: 10px;
text-align: center;
transition: 0.3s;
box-shadow:
0 10px 27px rgba(0, 0, 0, 0.05);
}
.nav-logo {
font-size: 2rem;
transition: 0.2s;
margin-right: 0;
}
.navbar img{
width: 10rem;
transition: 0.2s;
}
.nav-link {
color: #000000;
}
.nav-menu.active {
left: 0;
}
.nav-item {
margin: 1.5rem 0;
}
.hamburger {
display: block;
cursor: pointer;
}
.hamburger.active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
.bg-hero-img{
height: 470px;
width: 100%;
margin-top: 2px;
}
}
/* add styles on elements */