Skip to content

Commit

Permalink
fix(docs): restore images, data-theme now works
Browse files Browse the repository at this point in the history
  • Loading branch information
crashmax-dev committed Jul 18, 2023
1 parent f401e07 commit 104b865
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 26 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
18 changes: 0 additions & 18 deletions docs/public/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
--aside-width: 18rem;
}

[data-theme='dark'] {
display: none;
}

@media (prefers-color-scheme: dark) {
:root {
--fg: var(--fg-default-dark);
Expand All @@ -35,13 +31,6 @@
--bg1: var(--bg1-default-dark);
--code-filter: var(--code-filter-default-dark);
}

[data-theme='light'] {
display: none;
}
[data-theme='dark'] {
display: block;
}
}

@media (prefers-color-scheme: light) {
Expand All @@ -52,13 +41,6 @@
--bg1: var(--bg1-default-light);
--code-filter: var(--code-filter-default-light);
}

[data-theme='light'] {
display: block;
}
[data-theme='dark'] {
display: none;
}
}

html {
Expand Down
4 changes: 3 additions & 1 deletion docs/src/content/docs/compat/core-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ description: Reatom adapter for core-v2
<div align="center">
<br/>

[![reatom logo](https://reatom.js.org/logos/logo.svg)](https://github.com/artalar/reatom/tree/v2)
<a href="https://github.com/artalar/reatom/tree/v2">
<img src="/assets/logo_text.png" alt="reatom logo" width="100%" loading="lazy" />
</a>

</div>

Expand Down
4 changes: 3 additions & 1 deletion docs/src/content/docs/compat/react-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ description: React bindings for @reatom/core-v2
<div align="center">
<br/>

[![reatom logo](https://reatom.js.org/logos/logo.svg)](https://reatom.js.org)
<a href="/">
<img src="/assets/logo_text.png" alt="reatom logo" width="100%" loading="lazy" />
</a>

</div>

Expand Down
4 changes: 2 additions & 2 deletions docs/src/content/docs/guides/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Here is a scheme of the execution order of the build-in queues.
<!-- https://excalidraw.com/#json=NnnwgtZL8Euq_BpC4knMZ,ibz37ULiZzV0YmHPHpJsvQ -->

<img data-theme="light" src="/assets/queues_light1.png" width="100%" alt="scheme of update propagation flow and lifecycle hooks">
<img data-theme="dark" src="/assets/queues_dark1.png" width="100%" alt="scheme of update propagation flow and lifecycle hooks">
<img data-theme="light" src="/assets/queues_light1.png" width="100%" alt="scheme of update propagation flow and lifecycle hooks" loading="lazy" />
<img data-theme="dark" src="/assets/queues_dark1.png" width="100%" alt="scheme of update propagation flow and lifecycle hooks" loading="lazy" />

<br>
2 changes: 1 addition & 1 deletion docs/src/content/docs/package/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Every log record includes a number in the start of the name to fix autosorting k

Here is how it looks like ([from this example](/examples#search-component)):

<img width="100%" alt="logger console output" src="/assets/logger_example.png">
<img loading="lazy" width="100%" alt="logger console output" src="/assets/logger_example.png">
8 changes: 8 additions & 0 deletions docs/src/styles/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
:root {
--sl-color-accent: hsl(247deg 50% 30%) !important;
}

html[data-theme="light"] img[data-theme="dark"] {
display: none;
}

html[data-theme="dark"] img[data-theme="light"] {
display: none;
}
4 changes: 3 additions & 1 deletion packages/core-v2/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div align="center">
<br/>

[![reatom logo](https://reatom.js.org/logos/logo.svg)](https://github.com/artalar/reatom/tree/v2)
<a href="https://github.com/artalar/reatom/tree/v2">
<img src="https://www.reatom.dev/assets/logo_text.png" alt="reatom logo" width="100%" loading="lazy" />
</a>

</div>

Expand Down
2 changes: 1 addition & 1 deletion packages/logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ Every log record includes a number in the start of the name to fix autosorting k

Here is how it looks like ([from this example](https://www.reatom.dev/examples#search-component)):

<img width="100%" alt="logger console output" src="../../docs/public/assets/logger_example.png">
<img loading="lazy" width="100%" alt="logger console output" src="https://www.reatom.dev/assets/logger_example.png">
4 changes: 3 additions & 1 deletion packages/react-v2/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<div align="center">
<br/>

[![reatom logo](https://reatom.js.org/logos/logo.svg)](https://reatom.js.org)
<a href="https://www.reatom.dev/">
<img src="https://www.reatom.dev/assets/logo_text.png" alt="reatom logo" width="100%" loading="lazy" />
</a>

</div>

Expand Down

0 comments on commit 104b865

Please sign in to comment.