Skip to content

Commit c61291d

Browse files
authored
Merge pull request #1628 from hrx01-dev/added-header-logo-in-darktheme
Added header logo in dark theme
2 parents 722603f + 00dc2a6 commit c61291d

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

docusaurus.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ const config: Config = {
302302
EMAILJS_TEMPLATE_ID: process.env.EMAILJS_TEMPLATE_ID || "",
303303
algoliaSiteSearch: hasAlgoliaSiteSearch
304304
? {
305-
applicationId: algoliaAppId,
306-
apiKey: algoliaSearchApiKey,
307-
indexName: algoliaIndexName,
308-
}
305+
applicationId: algoliaAppId,
306+
apiKey: algoliaSearchApiKey,
307+
indexName: algoliaIndexName,
308+
}
309309
: null,
310310
hooks: {
311311
onBrokenMarkdownLinks: "warn",

src/css/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,22 @@ html[data-theme="dark"] .menu__link--active::after {
232232
}
233233

234234
.navbar__logo {
235+
width: 2.2rem;
235236
height: 2.2rem;
236237
margin-right: 0.5rem;
238+
transition: all 300ms ease-in-out;
239+
}
240+
241+
[data-theme="light"] .navbar__logo img {
242+
display: block !important;
243+
filter: none;
244+
transition: filter 300ms ease-in-out;
245+
}
246+
247+
[data-theme="dark"] .navbar__logo img {
248+
display: block !important;
249+
filter: invert(1);
250+
transition: filter 300ms ease-in-out;
237251
}
238252

239253
.navbar__title {
@@ -599,6 +613,7 @@ i,
599613
}
600614

601615
.navbar__logo {
616+
width: 32px !important;
602617
height: 32px !important;
603618
}
604619

0 commit comments

Comments
 (0)