highlighter-pen 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/highlighter-pen.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ It behaves like a real highlighter: drag your mouse over text and see a custom o
|
|
|
34
34
|
### CDN (recommended)
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/gh/mimoklef/highlighter-pen@v1.0.
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/gh/mimoklef/highlighter-pen@v1.0.3/dist/highlighter-pen.js"></script>
|
|
38
38
|
<script>
|
|
39
39
|
HighlighterPen().init();
|
|
40
40
|
</script>
|
package/dist/highlighter-pen.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
const DEFAULTS = {
|
|
12
|
-
markerImage: "https://cdn.jsdelivr.net/gh/mimoklef/highlighter-pen@v1.0.
|
|
12
|
+
markerImage: "https://cdn.jsdelivr.net/gh/mimoklef/highlighter-pen@v1.0.3/assets/marker.png",
|
|
13
13
|
markerZIndex: 10, // marker overlays on text
|
|
14
14
|
hideNativeSelection: true, // hide ::selection (so only your marker is visible)
|
|
15
15
|
inputSelectionYellow: true, // keep native selection in inputs/textarea and tint it yellow
|
|
@@ -62,7 +62,7 @@ marker{
|
|
|
62
62
|
-webkit-box-decoration-break: clone;
|
|
63
63
|
box-decoration-break: clone;
|
|
64
64
|
padding: 0.8em 0;
|
|
65
|
-
mix-blend-mode:
|
|
65
|
+
mix-blend-mode: overlay;
|
|
66
66
|
opacity: 1;
|
|
67
67
|
z-index: ${opt.markerZIndex} !important;
|
|
68
68
|
}
|