Skip to content

Id 420 #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ In your application you will need to do the following:
* Replace references to `id7-bundle.min.js` with `id7-bundle.js`
* `id7-standalone.js` was removed from the distribution; you should build your own bundle if you are using this

## Using ID7.1

From version 2.9.7 onwards, you can apply the new "ID7.1" styling to the site masthead in your app. To do so:

* Add the `id7-point-1` class to any `id7-utility-masthead` elements in your templates
* Replace the logo image src `/dist/images/logo.png` with `/dist/images/logo.svg` in your templates
* Update anything app-specific that needs updating - the whole masthead region should have a white background

## Breaking changes

- **1.2.0** - Now uses a custom Modernizr build (see _What's included_ above) with a minimal range of tests. If your application relies on other tests or shims which were included in previous versions, they will likely fail.
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/masthead.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="id7-logo-row">
<div class="id7-logo">
<a href="https://warwick.ac.uk" title="University of Warwick homepage">
<img src="/dist/images/logo.png" alt="University of Warwick homepage">
<img src="/dist/images/logo.svg" alt="University of Warwick homepage">
</a>
</div>
<nav class="id7-site-links" aria-label="Site links">
Expand Down
23 changes: 23 additions & 0 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions less/masthead.less
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,8 @@
.id7-logo-column {
padding-left: 1px;

.id7-logo {
background-image: url("@{id7-image-root-dir}/logo-id7-point-1.svg");
background-repeat: no-repeat;
background-position-x: center;
background-position-y: top;
.id7-logo a img {
opacity: 1;
}
}
}
Expand Down
Loading