Skip to content

Commit 75fa693

Browse files
committed
Image blend
1 parent 78d1b1c commit 75fa693

File tree

9 files changed

+96
-76
lines changed

9 files changed

+96
-76
lines changed

Minimal.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3716,7 +3716,7 @@ body.minimal-focus-mode.show-view-header .view-content {
37163716
}
37173717

37183718
/* Invert */
3719-
div[src$="#multiply"],
3719+
div[src$="#blend"],
37203720
div[src$="#invert"] {
37213721
background-color: var(--background-primary);
37223722
}
@@ -3727,22 +3727,28 @@ div[src$="#invert"] {
37273727
filter: invert(1) hue-rotate(180deg);
37283728
mix-blend-mode: screen;
37293729
}
3730-
.theme-dark img[src$="#multiply"],
3731-
.theme-dark div[src$="#multiply"] img,
3732-
.theme-dark span[src$="#multiply"] img {
3730+
.theme-dark img[src$="#blend"],
3731+
.theme-dark div[src$="#blend"] img,
3732+
.theme-dark span[src$="#blend"] img {
3733+
mix-blend-mode: screen;
3734+
}
3735+
.theme-dark .img-blend {
37333736
mix-blend-mode: screen;
37343737
}
37353738

3736-
.theme-light img[src$="#multiply"],
3737-
.theme-light div[src$="#multiply"] img,
3738-
.theme-light span[src$="#multiply"] img {
3739+
.theme-light img[src$="#blend"],
3740+
.theme-light div[src$="#blend"] img,
3741+
.theme-light span[src$="#blend"] img {
37393742
mix-blend-mode: multiply;
37403743
}
37413744
.theme-light img[src$="#invertW"],
37423745
.theme-light div[src$="#invertW"] img,
37433746
.theme-light span[src$=invertW] img {
37443747
filter: invert(1) hue-rotate(180deg);
37453748
}
3749+
.theme-light .img-blend {
3750+
mix-blend-mode: multiply;
3751+
}
37463752

37473753
/* Circle */
37483754
img[src$="#circle"]:not(.emoji),

docs/Block types/Images.md

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,52 @@
1-
---
2-
permalink: images
3-
aliases:
4-
- Image filters
5-
cssclasses:
6-
- table-col-1-150
7-
---
8-
9-
#blocks
10-
11-
## Image-related features
12-
13-
Settings in [[Minimal Theme Settings]]:
14-
15-
- [[Block width]] allows you to control the width of image blocks in a note
16-
- [[Image grids]] allow for multi-column image layouts
17-
- **Maximize media** allows images to always fill the width of the line
18-
19-
Settings in [[Style Settings]]:
20-
21-
- [[Image zoom]] allows you to click and hold an image to zoom in
22-
23-
## Image filters
24-
25-
Image filters can be added to create the following effects. Use them by adding the filter name at the end of the image link, e.g. `![[image.jpeg#invert]]`
26-
27-
| Filter | Description |
28-
|:---------- |:---------------------------------------------------------------------------------- |
29-
| `#invert` | Invert images in dark mode — ideal for charts and handwriting on light backgrounds |
30-
| `#invertW` | Invert images in light mode — ideal for charts and handwriting on dark backgrounds |
31-
| `#circle` | Crop image to a circle |
32-
| `#outline` | Add outline around image |
33-
34-
## Hotkeys
35-
36-
Use [[Hotkeys]] to adjust images globally:
37-
38-
- Toggle [[image grids]] globally
39-
- Cycle through image width options
40-
41-
## Helper classes
42-
43-
Use [[Helper classes]] to control image grids on a note
44-
45-
| Class | Description |
46-
| ---------- | ---------------------------------------- |
47-
| `img-grid` | Sets image layout to grid mode |
48-
| `img-100` | Image blocks fill 100% of the pane width |
49-
| `img-max` | Image blocks fill the max line width |
50-
| `img-wide` | Image blocks fill the wide line width |
1+
---
2+
permalink: images
3+
aliases:
4+
- Image filters
5+
cssclasses:
6+
- table-col-1-150
7+
---
8+
9+
#blocks
10+
11+
## Image-related features
12+
13+
Settings in [[Minimal Theme Settings]]:
14+
15+
- [[Block width]] allows you to control the width of image blocks in a note
16+
- [[Image grids]] allow for multi-column image layouts
17+
- **Maximize media** allows images to always fill the width of the line
18+
19+
Settings in [[Style Settings]]:
20+
21+
- [[Image zoom]] allows you to click and hold an image to zoom in
22+
23+
## Image filters
24+
25+
Image filters can be added to create the following effects. Use them by adding the filter name at the end of the image link, e.g. `![[image.jpeg#invert]]`
26+
27+
| Filter | Description |
28+
|:---------- |:---------------------------------------------------------------------------------- |
29+
| `#blend` | Blend image into background |
30+
| `#circle` | Crop image to a circle |
31+
| `#invert` | Invert images in dark mode — ideal for charts and handwriting on light backgrounds |
32+
| `#invertW` | Invert images in light mode — ideal for charts and handwriting on dark backgrounds |
33+
| `#outline` | Add outline around image |
34+
35+
## Hotkeys
36+
37+
Use [[Hotkeys]] to adjust images globally:
38+
39+
- Toggle [[image grids]] globally
40+
- Cycle through image width options
41+
42+
## Helper classes
43+
44+
Use [[Helper classes]] to control image grids on a note
45+
46+
| Class | Description |
47+
| ----------- | ---------------------------------------- |
48+
| `img-blend` | Sets all images to blend with background |
49+
| `img-grid` | Sets image layout to grid mode |
50+
| `img-100`. | Image blocks fill 100% of the pane width |
51+
| `img-max` | Image blocks fill the max line width |
52+
| `img-wide` | Image blocks fill the wide line width |

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.7.14",
3+
"version": "7.7.15",
44
"minAppVersion": "1.6.1",
55
"author": "@kepano",
66
"authorUrl": "https://twitter.com/kepano",

src/css/main.css

Lines changed: 13 additions & 7 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/features/image-filters.scss

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/* Invert */
3535

3636
// Necessary to set background for screen/multiply to work
37-
div[src$="#multiply"],
37+
div[src$="#blend"],
3838
div[src$="#invert"] {
3939
background-color: var(--background-primary);
4040
}
@@ -46,24 +46,30 @@ div[src$="#invert"] {
4646
filter: invert(1) hue-rotate(180deg);
4747
mix-blend-mode: screen;
4848
}
49-
img[src$="#multiply"],
50-
div[src$="#multiply"] img,
51-
span[src$="#multiply"] img {
49+
img[src$="#blend"],
50+
div[src$="#blend"] img,
51+
span[src$="#blend"] img {
52+
mix-blend-mode: screen;
53+
}
54+
.img-blend {
5255
mix-blend-mode: screen;
5356
}
5457
}
5558

5659
.theme-light {
57-
img[src$="#multiply"],
58-
div[src$="#multiply"] img,
59-
span[src$="#multiply"] img {
60+
img[src$="#blend"],
61+
div[src$="#blend"] img,
62+
span[src$="#blend"] img {
6063
mix-blend-mode: multiply;
6164
}
6265
img[src$="#invertW"],
6366
div[src$="#invertW"] img,
6467
span[src$="invertW"] img {
6568
filter: invert(1) hue-rotate(180deg);
6669
}
70+
.img-blend {
71+
mix-blend-mode: multiply;
72+
}
6773
}
6874

6975
/* Circle */

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)