Skip to content

Commit 7e6ac82

Browse files
committed
Fix for #702 and small tweak to muted color
1 parent bf04c10 commit 7e6ac82

File tree

10 files changed

+31
-37
lines changed

10 files changed

+31
-37
lines changed

Minimal.css

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ body .excalidraw {
237237
hsl(
238238
var(--base-h),
239239
calc(var(--base-s) - 20%),
240-
calc(var(--base-l) - 45%)
240+
calc(var(--base-l) - 50%)
241241
);
242242
--tx3:
243243
hsl(
@@ -1574,14 +1574,12 @@ body {
15741574
.theme-dark .pdf-viewer .canvasWrapper {
15751575
opacity: var(--pdf-dark-opacity);
15761576
}
1577-
.theme-dark.pdf-invert-dark .workspace-leaf-content[data-type=pdf] .pdf-viewer .canvasWrapper,
1578-
.theme-dark.pdf-invert-dark .workspace-leaf-content[data-type=pdf] .pdf-thumbnail-view .thumbnailImage {
1577+
.theme-dark.pdf-invert-dark .workspace-leaf-content[data-type=pdf] .pdf-viewer .canvasWrapper {
15791578
filter: invert(1) hue-rotate(180deg);
15801579
mix-blend-mode: screen;
15811580
}
15821581

1583-
.theme-light.pdf-blend-light .workspace-leaf-content[data-type=pdf] .pdf-viewer .canvasWrapper,
1584-
.theme-light.pdf-blend-light .workspace-leaf-content[data-type=pdf] .pdf-thumbnail-view .thumbnailImage {
1582+
.theme-light.pdf-blend-light .workspace-leaf-content[data-type=pdf] .pdf-viewer .canvasWrapper {
15851583
mix-blend-mode: multiply;
15861584
}
15871585

@@ -3526,19 +3524,19 @@ body {
35263524

35273525
/* Image zoom */
35283526
/* MIT License | Copyright (c) Stephan Ango (@kepano) */
3529-
body:not(.zoom-off) .view-content div:not(.canvas-node-content) img {
3527+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content div:not(.canvas-node-content) img {
35303528
max-width: 100%;
35313529
cursor: zoom-in;
35323530
}
3533-
body:not(.zoom-off) .view-content img:active {
3531+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content img:active {
35343532
cursor: zoom-out;
35353533
}
3536-
body:not(.zoom-off) .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active {
3534+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active {
35373535
background-color: var(--background-primary);
35383536
padding: 10px;
35393537
}
3540-
body:not(.zoom-off) .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active,
3541-
body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active {
3538+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-preview-view img[referrerpolicy=no-referrer]:active,
3539+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active {
35423540
--container-img-width: 100%;
35433541
--container-img-max-width: 100%;
35443542
aspect-ratio: unset;
@@ -3558,7 +3556,7 @@ body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active
35583556
right: 0;
35593557
bottom: 0;
35603558
}
3561-
body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active:after {
3559+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active:after {
35623560
background-color: var(--background-primary);
35633561
opacity: 0.9;
35643562
content: " ";
@@ -3569,7 +3567,7 @@ body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active:
35693567
right: 1px;
35703568
z-index: 0;
35713569
}
3572-
body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active img {
3570+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .image-embed:not(.canvas-node-content):active img {
35733571
aspect-ratio: unset;
35743572
top: 50%;
35753573
z-index: 99;
@@ -3585,7 +3583,7 @@ body:not(.zoom-off) .view-content .image-embed:not(.canvas-node-content):active
35853583
position: absolute;
35863584
opacity: 1;
35873585
}
3588-
body:not(.zoom-off) .view-content .markdown-source-view.mod-cm6 .cm-content > [contenteditable=false]:has(.image-embed:not(.canvas-node-content):active) {
3586+
body:not(.zoom-off) .workspace-leaf-content[data-type=markdown] .view-content .markdown-source-view.mod-cm6 .cm-content > [contenteditable=false]:has(.image-embed:not(.canvas-node-content):active) {
35893587
contain: unset !important;
35903588
}
35913589

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Minimal",
3-
"version": "7.5.1",
3+
"version": "7.5.2",
44
"minAppVersion": "1.5.4",
55
"author": "@kepano",
66
"authorUrl": "https://twitter.com/kepano",

src/css/main.css

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/content/pdf.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ body {
2727
opacity: var(--pdf-dark-opacity);
2828
}
2929
&.pdf-invert-dark .workspace-leaf-content[data-type=pdf] {
30-
.pdf-viewer .canvasWrapper,
31-
.pdf-thumbnail-view .thumbnailImage {
30+
.pdf-viewer .canvasWrapper {
3231
filter: invert(1) hue-rotate(180deg);
3332
mix-blend-mode: screen;
3433
}
3534
}
3635
}
3736
.theme-light {
3837
&.pdf-blend-light .workspace-leaf-content[data-type=pdf] {
39-
.pdf-viewer .canvasWrapper,
40-
.pdf-thumbnail-view .thumbnailImage {
38+
.pdf-viewer .canvasWrapper {
4139
mix-blend-mode: multiply;
4240
}
4341
}

src/scss/features/image-zoom.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Image zoom */
22
/* MIT License | Copyright (c) Stephan Ango (@kepano) */
33

4-
body:not(.zoom-off) .view-content {
4+
body:not(.zoom-off) .workspace-leaf-content[data-type="markdown"] .view-content {
55
div:not(.canvas-node-content) img {
66
max-width:100%;
77
cursor:zoom-in;

src/scss/variables/dynamic-color.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ body .excalidraw {
9999
hsl(
100100
var(--base-h),
101101
calc(var(--base-s) - 20%),
102-
calc(var(--base-l) - 45%)
102+
calc(var(--base-l) - 50%)
103103
);
104104

105105
--tx3:

theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)