Skip to content

Commit fba3dec

Browse files
committed
fix(styles): fix mobile styles for pagefind search input
1 parent c1fa951 commit fba3dec

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

public/css/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ header {
254254
height: 186px;
255255
display: flex;
256256
flex-wrap: wrap;
257-
padding: 0 20px;
257+
padding: 0 1.5rem;
258258
}
259259
header h1 {
260260
text-transform: uppercase;
@@ -500,7 +500,7 @@ a.ext-link .icon {
500500
left: 0;
501501
right: 0;
502502
background-color: var(--nav-background-color);
503-
z-index: 1;
503+
z-index: 5;
504504
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
505505
transform: translateX(100%);
506506
opacity: 0;
@@ -519,7 +519,7 @@ a.ext-link .icon {
519519
font-size: 1rem;
520520
}
521521
header {
522-
padding: 0 40px;
522+
padding: 0 2.5rem;
523523
}
524524
.nav {
525525
flex-direction: row;

public/css/search.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
}
44

55
#search {
6-
width: 100%;
76
position: relative;
7+
/* Leave space for the :before label, search icon, and gap */
8+
width: calc(100% - 85px - 22px - 1rem);
9+
margin-right: 22px;
10+
align-self: flex-end;
811
}
912
#search:before {
1013
content: 'Search Tickets';
@@ -115,7 +118,6 @@
115118
@media(min-width: 920px) {
116119
#search {
117120
width: auto;
118-
margin-right: 22px;
119121
}
120122
.pagefind-ui__search-input {
121123
width: 300px;

0 commit comments

Comments
 (0)