-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Emmanuelle-Morlock
authored and
Emmanuelle-Morlock
committed
Feb 9, 2024
1 parent
682a283
commit 0563934
Showing
3 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" /> | ||
|
||
<title>pb-hightlight Demo</title> | ||
<style> | ||
pb-page { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
body { | ||
--pb-highlight-background-image: repeating-linear-gradient( | ||
315deg, | ||
mark, | ||
mark 5px, | ||
#F9E976 5px, | ||
#F9E976 10px | ||
); | ||
} | ||
</style> | ||
<!--scripts--> | ||
<script type="module" src="../node_modules/@teipublisher/pb-components/src/pb-page.js"></script> | ||
<script type="module" src="../src/pb-highlight.js"></script> | ||
<!--/scripts--> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>Highlight with a gradient background-image</h1> | ||
|
||
<pb-page locales="../i18n/{{ns}}/{{lng}}.json"> | ||
<div> | ||
<p> | ||
<pb-highlight key="s1" highlight-self="highlight-self">Lorem ipsum dolor sit amet, consetetur | ||
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et | ||
dolore magna aliquyam erat, sed diam voluptua.</pb-highlight> | ||
<pb-highlight key="s2">At vero eos et accusam et justo duo dolores et ea rebum.</pb-highlight> | ||
<pb-highlight key="s3">Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor | ||
sit amet.</pb-highlight> | ||
</p> | ||
</div> | ||
<div> | ||
<p> | ||
<pb-highlight key="s1">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy | ||
eirmod tempor invidunt ut labore et | ||
dolore magna aliquyam erat, sed diam voluptua.</pb-highlight> | ||
<pb-highlight key="s2">At vero eos et accusam et justo duo dolores et ea rebum.</pb-highlight> | ||
<pb-highlight key="s3">Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor | ||
sit amet.</pb-highlight> | ||
</p> | ||
</div> | ||
</pb-page> | ||
|
||
|
||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters