Skip to content

Commit

Permalink
Add favicon; fix theme color.
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-md committed Dec 8, 2023
1 parent 377b3c9 commit 5d64ea0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ html.dark.dark body {
background-color: #121312;
}

a.nx-text-primary-600 {
color: #12ff80;
}

html[class~='dark'] .dark\:nx-bg-dark.dark\:nx-bg-dark {
background-color: #121312;
}
Expand All @@ -17,10 +13,7 @@ html[class~='dark'] .dark\:nx-bg-dark.dark\:nx-bg-dark {
background-color: transparent !important;
}

#__next
> div
> div.nextra-nav-container.nx-sticky.nx-top-0.nx-z-20.nx-w-full.nx-bg-transparent
> nav {
#__next > div > div > nav {
height: 94px;
}

Expand All @@ -40,6 +33,10 @@ html[class~='dark'] .dark\:nx-bg-dark.dark\:nx-bg-dark {
margin-bottom: 18px;
}

.nextra-breadcrumb.nextra-breadcrumb {
display: none;
}

.video-responsive {
overflow: hidden;
padding-bottom: 56.25%;
Expand All @@ -53,4 +50,4 @@ html[class~='dark'] .dark\:nx-bg-dark.dark\:nx-bg-dark {
height: 100%;
width: 100%;
position: absolute;
}
}
4 changes: 3 additions & 1 deletion theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import Footer from './components/Footer'
const config: DocsThemeConfig = {
darkMode: false,
nextThemes: {
forcedTheme: 'dark',
forcedTheme: 'dark'
},
primaryHue: 150,
logo: <SafeLogo />,
project: {
link: 'https://github.com/safe-global'
Expand All @@ -21,6 +22,7 @@ const config: DocsThemeConfig = {
sidebar: {
defaultMenuCollapseLevel: 1
},
head: <link rel='icon' type='image/png' sizes='32x32' href='/favicon.png' />,
useNextSeoProps: () => {
const { asPath } = useRouter()
if (asPath !== '/') {
Expand Down

0 comments on commit 5d64ea0

Please sign in to comment.