Skip to content

Commit d3bef2f

Browse files
authored
Add image color inversion and some actual images (#244)
1 parent 00c31b4 commit d3bef2f

17 files changed

Lines changed: 11791 additions & 404 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
<picture>
2-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/QuantumKitHub/PEPSKit.jl/blob/master/docs/src/assets/logo-dark.svg">
3-
<img alt="PEPSKit.jl logo" src="https://github.com/QuantumKitHub/PEPSKit.jl/blob/master/docs/src/assets/logo.svg" width="150">
4-
</picture>
1+
<img src="./docs/src/assets/logo_readme.svg" width="150">
52

63
# PEPSKit.jl
74

@@ -20,7 +17,7 @@
2017

2118
**Tools for working with projected entangled-pair states**
2219

23-
It contracts, it optimizes, it may break.
20+
*It contracts, it optimizes, it evolves.*
2421

2522
## Installation
2623

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ makedocs(;
5656
modules=[PEPSKit, MPSKitModels],
5757
sitename="PEPSKit.jl",
5858
format=Documenter.HTML(;
59-
prettyurls=get(ENV, "CI", nothing) == "true", mathengine, size_threshold=1024000
59+
prettyurls=true, mathengine, assets=["assets/custom.css"], size_threshold=1024000
6060
),
6161
pages=[
6262
"Home" => "index.md",

docs/src/assets/custom.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* set fixed non-trivial inversion and hue rotation */
2+
:root {
3+
--inversionFraction: 100%;
4+
--hueRotation: -180deg;
5+
}
6+
7+
/* color-invert images */
8+
.color-invertible {
9+
filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
10+
-ms-filter: invert(var(--inversionFraction)) !important;
11+
-webkit-filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
12+
}
13+
/* including the logo */
14+
.docs-logo {
15+
filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
16+
-ms-filter: invert(var(--inversionFraction)) !important;
17+
-webkit-filter: invert(var(--inversionFraction)) hue-rotate(var(--hueRotation)) !important;
18+
}
19+
20+
21+
/* but disable for the two light themes */
22+
.theme--documenter-light .color-invertible {
23+
filter: invert(0%) hue-rotate(0deg) !important;
24+
-ms-filter: invert(var(0%)) !important;
25+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
26+
}
27+
.theme--catppuccin-latte .color-invertible {
28+
filter: invert(0%) hue-rotate(0deg) !important;
29+
-ms-filter: invert(var(0%)) !important;
30+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
31+
}
32+
/* for the logo as well */
33+
.theme--documenter-light .docs-logo {
34+
filter: invert(0%) hue-rotate(0deg) !important;
35+
-ms-filter: invert(var(0%)) !important;
36+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
37+
}
38+
.theme--catppuccin-latte .docs-logo {
39+
filter: invert(0%) hue-rotate(0deg) !important;
40+
-ms-filter: invert(var(0%)) !important;
41+
-webkit-filter: invert(var(0%)) hue-rotate(0deg) !important;
42+
}

0 commit comments

Comments
 (0)