Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfcd477

Browse files
committed
fix: dark mode issues with SVG
1 parent331255b commitdfcd477

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

‎src/css/custom.css‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,17 @@ header h1 {
377377
}
378378

379379
/** The site logo */
380-
[data-theme="dark"] .navbarimg {
380+
/*[data-theme="dark"] .navbar img {
381381
filter: invert(1);
382+
} */
383+
384+
/* Weird bug in Safari: it automatically inverts SVG images. By setting
385+
a filter with a very small value, we can prevent this. */
386+
[data-theme="dark"]headerimg[src$=".svg"] {
387+
filter:invert(0.001);
382388
}
383389

390+
384391
[data-theme="dark"] .navbar__link:hover,
385392
[data-theme="dark"] .navbar__link--active {
386393
--ifm-navbar-link-hover-color:var(--link-color);
@@ -547,3 +554,10 @@ nav.hidden h1, nav.hidden h2, nav.hidden h3 {
547554
font-size:0;
548555
line-height:0;
549556
}
557+
558+
559+
/* Docusaurus default style sets the html,body to 100% height, which is not what we want */
560+
html,body {
561+
height: auto!important;
562+
min-height:100%;
563+
}

‎static/img/hand-cube.psd‎

660 Bytes
Binary file not shown.

‎static/img/social-card.psd‎

1.59 KB
Binary file not shown.

‎submodules/cortex-js.github.io‎

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp