Skip to content

Commit

Permalink
use flexbox instead of magic height percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Aug 7, 2024
1 parent 02bbba2 commit 42cbd5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/app/styles/components/ilios-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
grid-area: user;
}
.user-guide-link {
display: flex;
grid-area: guide;
height: 72%;

@include m.for-phone-only {
height: 100%;
vertical-align: -0.25em;
}
}

Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/app/styles/components/user-guide-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $header-menu-background-color: color.adjust(c.$slightWhite, $lightness: -3%);
@include cm.font-size("small");
font-weight: normal;
margin-left: 0.8rem;
padding: 0.2em;
padding: 0.25em;

&:hover,
&:focus {
Expand All @@ -27,7 +27,6 @@ $header-menu-background-color: color.adjust(c.$slightWhite, $lightness: -3%);
@include cm.for-tablet-and-up {
display: inline;
margin-left: 0.5rem;
padding: 0.125em;
}

@include cm.for-phone-only {
Expand Down

0 comments on commit 42cbd5d

Please sign in to comment.