Watermark for no screenshotting
This commit is contained in:
@@ -15,6 +15,20 @@
|
|||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body::after {
|
||||||
|
content: '';
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
pointer-events: none;
|
||||||
|
background-image: url('images/watermark.svg');
|
||||||
|
background-repeat: repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.root-dark-mode::after {
|
||||||
|
filter: invert(1);
|
||||||
|
}
|
||||||
|
|
||||||
.black-outline {
|
.black-outline {
|
||||||
text-shadow: /* also change .flow-item-row-with-prompt:hover::before */
|
text-shadow: /* also change .flow-item-row-with-prompt:hover::before */
|
||||||
-1px -1px 0 rgba(0, 0, 0, 0.6),
|
-1px -1px 0 rgba(0, 0, 0, 0.6),
|
||||||
|
|||||||
5
src/images/watermark.svg
Normal file
5
src/images/watermark.svg
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="140" viewBox="0 0 240 140">
|
||||||
|
<g transform="translate(120 70) rotate(-45)">
|
||||||
|
<text x="0" y="0" text-anchor="middle" dominant-baseline="middle" font-size="48" fill="rgba(0,0,0,0.016)" font-family="sans-serif">请勿截屏</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 305 B |
Reference in New Issue
Block a user