Skip to content

Commit

Permalink
Merge pull request #1516 from CuBoulder/#1505
Browse files Browse the repository at this point in the history
Update ucb-brand-bar.css
  • Loading branch information
jcsparks authored and web-flow committed Dec 2, 2024
2 parents 088b506 + 0342983 commit 66ff259
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Update ucb-brand-bar.css
Adding consistent `max-width` and `width` to the logo's link container allows for the SVG to scale properly throughout all browsers.

Resolves #1505
---

- ### Class Notes List: special character fixes
Previously special characters from Class Notes wouldn't escape properly, such as `&nbsp`. They are now correctly decoded.

Expand Down
19 changes: 19 additions & 0 deletions css/ucb-brand-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@
padding: 1rem 0;
}

.ucb-home-link {
width: 100%;
max-width: 200px;
min-width: 160px;
height: auto;
}

.ucb-home-link:has(.ucb-homepage) {
max-width: 320px;
}

.ucb-brand-bar img.ucb-logo {
width: 100%;
max-width: 200px;
Expand All @@ -28,6 +39,14 @@
}

@media screen and (min-width: 768px) {
.ucb-home-link {
max-width: 240px;
}

.ucb-home-link:has(.ucb-homepage) {
max-width: 320px;
}

.ucb-brand-bar img.ucb-logo {
max-width: 240px;
}
Expand Down

0 comments on commit 66ff259

Please sign in to comment.