Skip to content

Commit d8ee14f

Browse files
authored
Merge pull request #751 from YooAshu/gh-pages
fixed navbar issue in mobileView
2 parents 694807b + ce54d5f commit d8ee14f

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h1 class="main-heading">Awesome GitHub Profile READMEs</h1>
128128
class="search-input"
129129
placeholder="Search Nickname or Username..."
130130
/>
131-
<i class="fas fa-search" style="position: relative;right: 40px;"></i>
131+
<i class="fas fa-search" ></i>
132132
<i class="fa-solid fa-caret-down dropdown" id="caret-down"></i>
133133
</div>
134134
<!-- Modal Structure -->

styles/hamburger.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
.hamburger.active div:nth-child(1) {
24-
transform: translateY(6px) rotate(45deg);
24+
transform: translateY(14px) rotate(45deg);
2525
}
2626

2727
.hamburger.active div:nth-child(2) {
@@ -38,7 +38,7 @@
3838
align-items: center;
3939
background-color: #ffffff;
4040
width: 100%;
41-
position: absolute;
41+
position: fixed;
4242
top: 52px;
4343
left: 0;
4444
opacity: 0;

styles/styles.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,10 @@ a {
12771277
position: relative;
12781278
padding: 18px !important;
12791279
}
1280+
.fa-search{
1281+
position: relative;
1282+
right: 40px;
1283+
}
12801284

12811285
/* Media query for mobile view */
12821286
@media (max-width: 768px) {
@@ -1293,8 +1297,23 @@ a {
12931297
max-width: 90vw;
12941298
font-size: 12px; /* Adjust font size for smaller screens */
12951299
}
1300+
1301+
.search-input{
1302+
padding-right: 35px;
1303+
}
1304+
.fa-search{
1305+
position: relative;
1306+
right: 35px;
1307+
}
1308+
.fa-caret-down.dropdown{
1309+
position: relative;
1310+
right: 15px;
1311+
}
12961312
}
12971313

1314+
1315+
1316+
12981317
.line.show{
12991318
position: relative;
13001319
/* bottom: -20px; */

0 commit comments

Comments
 (0)