Skip to content

Commit f13a477

Browse files
committed
update pointer style and position
1 parent 6cdb48b commit f13a477

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

inject.js

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function showPeek(elem) {
4141
return false;
4242
elem.addClass('wikitip');
4343
elem.append('<span class="wikiinfo"><div class="wikititle"></div><div class="wikitext"></div></span>');
44+
45+
46+
4447
$('.wikiinfo .wikititle').text(wikiResponse[0]);
4548
$('.wikiinfo .wikitext').text(wikiResponse[1]);
4649
}

styles.css

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@
3333

3434
.wikiinfo:before{
3535
border: solid;
36-
border-color: #333 transparent;
36+
left: 0;
37+
bottom: -6px;
38+
border-color: #ccc;
39+
border-right-color: transparent;
40+
border-left-color: transparent;
3741
border-width: 6px 6px 0 6px;
38-
bottom: 20px;
3942
content: "";
40-
left: 50%;
4143
position: absolute;
4244
z-index: 100000;
4345
}

0 commit comments

Comments
 (0)