-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partial workaround for the broken in page search (next & previous don…
…'t work, but at least highlighting works)
- Loading branch information
Showing
6 changed files
with
104 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
57 changes: 57 additions & 0 deletions
57
src/public/libraries/electron-in-page-search/default-style.css
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,57 @@ | ||
html, body { | ||
margin: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Meiryo", sans-serif; | ||
overflow: hidden; | ||
} | ||
|
||
.inpage-search-body { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin: 8px; | ||
padding: 10px; | ||
border: solid #aaaaaa 1px; | ||
border-radius: 10px; | ||
background-color: #fafafa; | ||
} | ||
|
||
.inpage-search-input { | ||
width: 200px; | ||
} | ||
|
||
.inpage-search-matches { | ||
color: #999; | ||
font-size: 0.8em; | ||
} | ||
|
||
.inpage-search-back { | ||
margin-left: 2px; | ||
padding-left: 6px; | ||
padding-right: 2px; | ||
cursor: pointer; | ||
} | ||
|
||
.inpage-search-forward { | ||
padding-left: 2px; | ||
padding-right: 6px; | ||
cursor: pointer; | ||
} | ||
|
||
.inpage-search-close { | ||
margin-left: 4px; | ||
padding: 0 2px; | ||
cursor: pointer; | ||
} | ||
|
||
.inpage-search-back:hover, | ||
.inpage-search-forward:hover, | ||
.inpage-search-close:hover { | ||
background-color: #e2e0e2; | ||
border-radius: 0.2em; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/public/libraries/electron-in-page-search/search-window.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes" /> | ||
<link href="/libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="inpage-search-body"> | ||
<input class="inpage-search-input form-control form-control-sm" type="search" placeholder="Search..." autocomplete="off" autofocus/> | ||
|
||
<div class="inpage-search-matches">0/0</div> | ||
|
||
<div class="inpage-search-back" title="Previous result"><</div> | ||
|
||
<div class="inpage-search-forward" title="Next result">></div> | ||
|
||
<div class="inpage-search-close" title="Close search">✕</div> | ||
</div> | ||
</body> | ||
<script>var exports = {}</script> | ||
</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
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