Skip to content

Commit 74e0fa7

Browse files
committed
fix isolation, float, and abs position issues
1 parent be7d5a0 commit 74e0fa7

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the Pixel Banner plugin will be documented in this file.
44

5+
## [2.8.1] - 2024-11-07
6+
7+
### Fixed
8+
- Banner image overlapping with note content
9+
- Banner image impacting absolute-positioned and floated elements
10+
511
## [2.8.0] - 2024-11-04
612

713
### Added

UPDATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## 🎉 What's New
22

3+
### v2.8.1
4+
#### Fixed
5+
- Banner image overlapping with note content
6+
- Banner image impacting absolute-positioned and floated elements
7+
38
### v2.8.0
49
#### Added
510
- Unsplash API support

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "pexels-banner",
33
"name": "Pixel Banner",
4-
"version": "2.8.0",
4+
"version": "2.8.1",
55
"minAppVersion": "1.6.0",
66
"description": "Apply an image from various sources as a banner to your notes.",
77
"author": "Justin Parker",

styles.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
/* ------------------------------------------------------------------ */
2+
/* -- configure default: move banner image to top, fade/size, etc. -- */
3+
/* ------------------------------------------------------------------ */
14
@keyframes pixel-banner-image--fade-in {
25
from { opacity: 0; }
36
to { opacity: 1; }
47
}
5-
6-
/* ------------------------------------------------------------------ */
7-
/* -- configure default: move banner image to top, fade/size, etc. -- */
8-
/* ------------------------------------------------------------------ */
98
.pixel-banner-image {
109
position: absolute;
1110
top: 0;
@@ -23,13 +22,16 @@
2322
will-change: opacity;
2423
transform: translateZ(0);
2524
background-repeat: no-repeat;
26-
z-index: 0;
25+
z-index: -1;
2726
}
27+
2828
/* fix for banner image overlapping with note content */
29-
.pixel-banner-image ~ div {
30-
z-index: 1;
29+
/* isolate the banner image from the note content */
30+
.view-content.pixel-banner {
3131
position: relative;
32+
isolation: isolate;
3233
}
34+
3335
.cm-sizer .metadata-container,
3436
.markdown-preview-sizer .metadata-container {
3537
z-index: 1;

0 commit comments

Comments
 (0)