Skip to content

Commit

Permalink
Using standard emphasized link font weight (#2790)
Browse files Browse the repository at this point in the history
* standardizing emphasized links for social justice tag and spotlight at stanford

* using fw-medium
  • Loading branch information
hudajkhan authored Jan 10, 2025
1 parent 592c533 commit 6db2259
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions app/assets/stylesheets/modules/spotlight_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ h5,

&[href="/?tag=Social+justice"] {
color: var(--stanford-cardinal);
font-weight: 700;
font-weight: 500;

&::before {
// Licensed (required to change color) from:
Expand All @@ -198,6 +198,11 @@ h5,
vertical-align: top;
width: 1rem;
}

&.active {
font-weight: 600;
}

}
}

Expand All @@ -219,4 +224,4 @@ h5,
// instead of overlapping with the header.
#skip-link {
position: relative !important;
}
}
2 changes: 1 addition & 1 deletion app/views/shared/_user_util_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ul class="navbar-nav">
<li class="nav-item">
<%= link_to 'Spotlight at Stanford', main_app.root_path, class: 'nav-link fw-semibold' %>
<%= link_to 'Spotlight at Stanford', main_app.root_path, class: 'nav-link fw-medium' %>
</li>
<%= render '/spotlight/shared/locale_picker' %>
<% if current_user %>
Expand Down

0 comments on commit 6db2259

Please sign in to comment.