Skip to content

Commit 4cb95da

Browse files
committed
Navbar Update
1 parent 333b10b commit 4cb95da

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

responsive-navbar/style.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');
2+
13
* {
24
margin: 0;
35
padding: 0;
46
box-sizing: border-box;
5-
font-family: 'Times New Roman', Times, serif;
7+
font-family: 'Poppins', sans-serif;
68
}
79

810
.navbar {
@@ -26,7 +28,7 @@
2628

2729
.heading {
2830
width: 20%;
29-
font-size: 2em;
31+
font-size: 1.8em;
3032
padding: 0px 20px;
3133
margin-bottom: 5px;
3234
cursor: pointer;
@@ -40,7 +42,7 @@ ul {
4042
}
4143

4244
li {
43-
font-size: 1.3em;
45+
font-size: 1.1em;
4446
cursor: pointer;
4547
padding: 20px;
4648
}
@@ -89,14 +91,18 @@ ul:nth-child(5) {
8991
.bar1,
9092
.bar2,
9193
.bar3 {
92-
width: 35px;
93-
height: 5px;
94+
width: 30px;
95+
height: 3px;
9496
background-color: white;
9597
margin: 6px 0;
9698
}
9799

98100
.change .bar1 {
99-
transform: translate(0, 11px) rotate(-45deg);
101+
transform: translate(0, 8px) rotate(-45deg);
102+
-webkit-transform: translate(0, 8px) rotate(-45deg);
103+
-moz-transform: translate(0, 8px) rotate(-45deg);
104+
-ms-transform: translate(0, 8px) rotate(-45deg);
105+
-o-transform: translate(0, 8px) rotate(-45deg);
100106
}
101107

102108
.change .bar2 {

0 commit comments

Comments
 (0)