Skip to content

Commit

Permalink
Merge pull request #795 from oasisprotocol/matevz/style/rebranding-fo…
Browse files Browse the repository at this point in the history
…llowup

CSS: Rebranding followup
  • Loading branch information
matevz authored Apr 19, 2024
2 parents fb2500f + 314035a commit 679a200
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const config: Config = {
logo: {
alt: 'Oasis Docs',
src: 'img/logo.svg',
//srcDark: 'img/logo_dark.svg',
srcDark: 'img/logo_dark.svg', // Workaround for browsers that don't support @media (prefers-color-scheme: dark) in external SVGs.
// Uncomment src and style below to enable christmas mode ;)
//src: 'img/logo_christmas.png',
//style: {height: '48px', maxWidth: '58px', marginTop: '-15px', marginLeft: '-15px'},
Expand Down
7 changes: 7 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
border-radius: 0;
border: 1px solid black;
}
/* The primary dark mode color is too aggressive for the eye when hovering over
the hits. Ideally we should color the matched substrings with the primary
color, but highlight it with --ifm-navbar-search-input-background-color when
hovering over. Temporary fix: Use a less aggressive color for everything. */
html[data-theme="dark"] {
--search-local-highlight-color: #3ec8ff;
}

/* Make docccard and navcard border stronger */
.card,
Expand Down
4 changes: 2 additions & 2 deletions static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions static/img/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 679a200

Please sign in to comment.