Skip to content

Commit

Permalink
FIX: Main Nav width on Search page (#150)
Browse files Browse the repository at this point in the history
closes #150
  • Loading branch information
dwhieb committed Jul 17, 2024
1 parent 4bb7beb commit 3123588
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
6 changes: 0 additions & 6 deletions layouts/main/components/nav/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
font-size: 1.125em;
font-weight: 500;

/* Necessary to override the width setting for the `.sticky` class. */
&.sticky {
inline-size: 100vw;
max-inline-size: 100vw;
}

& a {

display: block;
Expand Down
40 changes: 20 additions & 20 deletions pages/Search/Search.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,6 @@ body {

}

.priority {
align-items: center;
background-color: var(--pink-swan);
block-size: 1em;
border-radius: 50%;
color: black;
content: attr(data-priority);
display: flex;
font-size: small;
inline-size: 1em;
inset-block-start: 0;
inset-inline-start: 0;
justify-content: center;
padding: 0.75em;
position: absolute;
text-align: center;
transform: translate(50%, -50%);
vertical-align: middle;
}

/* NB: The .sticky class is applied conditionally in the footer Handlebars template. */
.footer {

Expand Down Expand Up @@ -131,6 +111,26 @@ h2 {
box-shadow: 0px 15px 0px -14px black;
}

.priority {
align-items: center;
background-color: var(--pink-swan);
block-size: 1em;
border-radius: 50%;
color: black;
content: attr(data-priority);
display: flex;
font-size: small;
inline-size: 1em;
inset-block-start: 0;
inset-inline-start: 0;
justify-content: center;
padding: 0.75em;
position: absolute;
text-align: center;
transform: translate(50%, -50%);
vertical-align: middle;
}

#results {

border-collapse: separate; /* This is necessary for borders to stay fixed with position: sticky */
Expand Down

0 comments on commit 3123588

Please sign in to comment.