Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/layouts/default/header/menus/menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flex-direction: column;
}

ul {
ul:not(.container) {
font-size: 1.8rem;
font-weight: bold;
grid-row-gap: 2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function UpperMenu() {
const riceLogo = useOptimizedImage('https://openstax.org/dist/images/rice.webp', 80);

return (
<menu className="container" data-analytics-nav="Upper Menu">
<ul className="container no-bullets" data-analytics-nav="Upper Menu">
{
menuData.map(
({label, url}) => <MenuItem key={label} label={label} url={url} showButton={showButton} />
Expand All @@ -53,6 +53,6 @@ export default function UpperMenu() {
<img src={riceLogo} alt="Rice University logo" height="30" width="79" />
</a></li>
{showButton ? <JITLoad importFn={importGiveButton} /> : null}
</menu>
</ul>
);
}
10 changes: 6 additions & 4 deletions src/app/layouts/landing/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,19 @@
}

@include width-up-to($tablet-max) {
menu,
ul,
.pseudo-menu {
padding-inline-start: 4rem;
margin-block: 0;
width: 100%;
}
menu li {
ul li {
float: left;
}
menu li:last-child {
ul li:last-child {
float: right;
}
menu:first-child {
ul:first-child {
display: none;
}
}
Expand Down