-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Please ensure the PR fulfills the following requirements! --> <!-- If this is your first PR, make sure to add your details to the AUTHORS.rst! --> ### Pull Request Checklist: - [ ] This PR addresses an already opened issue (for bug fixes / features) - This PR fixes #xyz - [x] (If applicable) Documentation has been added / updated (for bug fixes / features). - [ ] (If applicable) Tests have been added. - [x] CHANGELOG.rst has been updated (with summary of main changes). - [x] Link to issue (:issue:`number`) and pull request (:pull:`number`) has been added. ### What kind of change does this PR introduce? * Added a new logo for the xHydro repo and documentation. * Added some CSS modifications so that the logos render well in both light and dark themes (courtesy of @SarahG-579462) ### Does this PR introduce a breaking change? No. ### Other information: This logo was designed by Élyse Fournier (HQ) and Louise Arnal (Ouranos), with inputs from the xHydro team.
- Loading branch information
Showing
9 changed files
with
110 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@import url("styles/furo.css"); | ||
|
||
/* extend furo for inline ".only-dark" elements */ | ||
body .only-dark-inline, | ||
body .only-light-inline { | ||
display: none !important; | ||
} | ||
|
||
@media not print { | ||
body[data-theme="dark"] .only-dark-inline, | ||
body[data-theme="light"] .only-light-inline { | ||
display: inline !important; | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
body:not([data-theme="light"]) .only-dark-inline{ | ||
display: inline !important; | ||
} | ||
} | ||
@media (prefers-color-scheme: light) { | ||
body:not([data-theme="dark"]) .only-light-inline{ | ||
display: inline !important; | ||
} | ||
} | ||
} | ||
|
||
@media print { | ||
.only-light-inline{ | ||
display: inline !important; | ||
} | ||
.only-dark-inline{ | ||
display: none !important; | ||
} | ||
} | ||
|
||
img.xhydro-logo-small.only-dark-inline { | ||
width: 125px; | ||
height: 125px; | ||
margin: 0; | ||
padding: 0; | ||
background-color: transparent; | ||
background-repeat: no-repeat; | ||
border: none; | ||
border-image-width: 0; | ||
background-image: url("xhydro-logo-small-transparent.png"); | ||
} | ||
|
||
img.xhydro-logo-small.only-light-inline { | ||
width: 125px; | ||
height: 125px; | ||
margin: 0; | ||
padding: 0; | ||
background-color: transparent; | ||
background-repeat: no-repeat; | ||
border: none; | ||
border-image-width: 0; | ||
background-image: url("xhydro-logo-small-light.png"); | ||
} | ||
|
||
img.xhydro-logo-small.no-theme { | ||
display: none; | ||
width: 0; | ||
} | ||
|
||
button.copybtn.copybtn svg { | ||
stroke: var(--color-copybutton); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.