Skip to content

Commit

Permalink
Update styles on the Additional Topics box
Browse files Browse the repository at this point in the history
- 🌎 The cases page is getting a makeover
- β›” Right now the "Additional Topics" header is unstyled
- βœ… This commit styles it according to mockups, and makes it responsive
  to small screens
  • Loading branch information
okkays committed Nov 18, 2024
1 parent 4d53c4f commit 374654c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
4 changes: 1 addition & 3 deletions _pages/cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ lead: |-
- [Testing accommodations](https://www.justice.gov/crt/disability-rights-cases?search_api_fulltext=%22Testing+accommodations%22+&sort_by=field_date)
- [Transportation](https://www.justice.gov/crt/disability-rights-cases?search_api_fulltext=transportation&sort_by=field_date)

<div class="manylinks--bottom">
[Search Additional Topics](https://www.justice.gov/crt/disability-rights-cases)
</div>
[Search additional topics](https://www.justice.gov/crt/disability-rights-cases)

</section>

Expand Down
47 changes: 47 additions & 0 deletions assets/sass/custom/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,51 @@ span.usa-sr-only {
color: black;
}

.manylinks {
background-color: #E1E7F1;
padding: 1em;

ul {
@include at-media(mobile) {
columns: 1;
}
@include at-media(tablet) {
columns: 2;
}
@include at-media(desktop) {
columns: 3;
}
column-gap: 1em;
list-style-type: none;
padding: 0;
margin: 0;

li a {
color: #005EA2;
font-size: 20px;
font-family: "Merriweather", serif;
padding: 1em;
display: table-row;
}
}

& > p > a {
display: block;
margin-left: auto;
margin-right: auto;
width: fit-content;

color: white;
background-color: #005EA2;
border-radius: 4px;
margin-left: auto;
margin-right: auto;
text-decoration: none;
padding: 0.75em;
font-weight: bold;

&:hover {
color: #FFFFFF;
}
}
}

0 comments on commit 374654c

Please sign in to comment.